|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.source.stream.XmlSourceFormat
public final class XmlSourceFormat
The source type representing an XML source. $Id: XmlSourceFormat.java 1406804 2012-11-07 21:04:28Z tfischer $
| Constructor Summary | |
|---|---|
XmlSourceFormat()
|
|
| 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 xmlStream,
ControllerState controllerState)
Parses a stream containing xml data and creates a source element hierarchy from it. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlSourceFormat()
| Method Detail |
|---|
public String getKey()
getKey in interface StreamSourceFormatpublic String getFilenameExtension()
getFilenameExtension in interface StreamSourceFormat
public SourceElement parse(InputStream xmlStream,
ControllerState controllerState)
throws SourceException
parse in interface StreamSourceFormatxmlStream - the stream containing the xml data, not null.controllerState - the controller state, not null.
SourceException - if an error occurs reading the input stream,
parsing the XML data or if the SAX parser is not configured
correctly.public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother is a XmlSourceType, 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 | |||||||||