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, warningpublic 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 ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String rawName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic T getConfiguredClass()
public boolean isFinished()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.