|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.source.stream.PropertiesSourceFormat
public final class PropertiesSourceFormat
The source type representing an properties source. $Id: PropertiesSourceFormat.java 1406804 2012-11-07 21:04:28Z 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 StreamSourceFormatpublic String getFilenameExtension()
getFilenameExtension in interface StreamSourceFormat
public SourceElement parse(InputStream inputStream,
ControllerState controllerState)
throws SourceException
parse in interface StreamSourceFormatinputStream - 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 Objectpublic boolean equals(Object other)
equals in class Objectother 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 | |||||||||