|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.torque.generator.configuration.source.EntityReferenceSaxHandler
public class EntityReferenceSaxHandler
Reads an entity reference from the controller configuration file.
Constructor Summary | |
---|---|
EntityReferenceSaxHandler(ConfigurationProvider configurationProvider,
ProjectPaths projectPaths)
Constructor. |
Method Summary | |
---|---|
String |
getResource()
Returns the parsed resource path. |
String |
getSystemId()
|
boolean |
isFinished()
Returns whether this handler has finished parsing. |
byte[] |
readResource()
Reads the resource defined in the parsed XML . |
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityReferenceSaxHandler(ConfigurationProvider configurationProvider, ProjectPaths projectPaths)
configurationProvider
- The access object for the configuration
files, not null.projectPaths
- The paths of the surrounding project, not null.
NullPointerException
- if an argument is null.Method Detail |
---|
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public String getResource()
public String getSystemId()
public boolean isFinished()
public byte[] readResource() throws ConfigurationException
ConfigurationException
- if an error occurs
while reading the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |