|
||||||||||
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.XmlSourceFormat
public final class XmlSourceFormat
The source type representing an XML source. $Id: XmlSourceFormat.java 1331190 2012-04-27 02:41:35Z 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 StreamSourceFormat
public String getFilenameExtension()
getFilenameExtension
in interface StreamSourceFormat
public SourceElement parse(InputStream xmlStream, ControllerState controllerState) throws SourceException
parse
in interface StreamSourceFormat
xmlStream
- 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 Object
public boolean equals(Object other)
equals
in class Object
other
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 |