T
- the class to create.public class ConfigurableClassSaxHandler<T> extends DefaultHandler
Constructor and Description |
---|
ConfigurableClassSaxHandler(ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor,
String tagNameToProcess)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String rawName) |
T |
getConfiguredClass()
Returns the configured class.
|
boolean |
isFinished()
Returns the configuration filled with the contents of the parsed snippet.
|
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ConfigurableClassSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, String tagNameToProcess)
configurationProvider
- The access object for the configuration
files, not null.unitDescriptor
- The description of the generation unit, not null.tagNameToProcess
- the name of the XML Tag to process, not null.NullPointerException
- if an argument is null.public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public T getConfiguredClass()
public boolean isFinished()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.