|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.source.stream.PropertiesSourceFormat
public final class PropertiesSourceFormat
The source type representing an properties source. $Id: PropertiesSourceFormat.java 1345818 2012-06-04 03:05:40Z tfischer $
Field Summary | |
---|---|
static String |
ENTRY_ELEMENT_NAME
The name of the entry element. |
static String |
KEY_ATTRIBUTE_NAME
The name of the key attribute of the entry element. |
static String |
ROOT_ELEMENT_NAME
The name of the root element. |
Constructor Summary | |
---|---|
PropertiesSourceFormat()
|
Method Summary | |
---|---|
boolean |
equals(Object other)
Checks whether other is equal to this instance. |
String |
getFilenameExtension()
Gets the filename extension this source type typically has. |
String |
getKey()
Returns an unique key for the source type. |
int |
hashCode()
Returns a hash code of this instance consistent with equals. |
SourceElement |
parse(InputStream inputStream,
ControllerState controllerState)
Parses a Stream in Properties format and returns the root element of the created element tree. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ROOT_ELEMENT_NAME
public static final String ENTRY_ELEMENT_NAME
public static final String KEY_ATTRIBUTE_NAME
Constructor Detail |
---|
public PropertiesSourceFormat()
Method Detail |
---|
public String getKey()
getKey
in interface StreamSourceFormat
public String getFilenameExtension()
getFilenameExtension
in interface StreamSourceFormat
public SourceElement parse(InputStream inputStream, ControllerState controllerState) throws SourceException
parse
in interface StreamSourceFormat
inputStream
- the input stream to parse, not null.ControllerState
- the controller state.
SourceException
- if an error occurred when reading from the
input stream.
IllegalArgumentException
- if the input stream contains a
malformed unicode escape sequence.
NullPointerException
- if inputStream is null.public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
other
is a PropertiesSourceType, false
otherwise.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |