public class OutletConfigurationSaxHandler extends DefaultHandler
| Constructor and Description |
|---|
OutletConfigurationSaxHandler(ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor,
ConfigurationHandlers configurationHandlers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String rawName) |
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
List<MergepointMapping> |
getMergepointMappings()
Returns all mergepoint mappings which were configured
outside the outlets in the parsed outlet configuration file.
|
OutletSaxHandler |
getOutletHandler(QualifiedName outletName,
String outletType)
Returns the correct handler for a outlet tag.
|
List<Outlet> |
getOutlets()
Returns all outlets which were configured in the parsed outlet
configuration file.
|
static String |
getOutletType(Attributes attributes)
Reads the outlet type from the attributes of the outlet XML tag.
|
InputSource |
resolveEntity(String publicId,
String systemId)
EntityResolver implementation.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
warning(SAXParseException exception) |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic OutletConfigurationSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)
configurationProvider - The access object for the configuration
files, not null.unitDescriptor - The description of the generation unit, not null.configurationHandlers - The available configuration handlers,
not null.NullPointerException - if an argument is null.public List<Outlet> getOutlets()
public List<MergepointMapping> getMergepointMappings()
public void startElement(String uri, String localName, String qName, 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 OutletSaxHandler getOutletHandler(QualifiedName outletName, String outletType) throws SAXException
outletName - the name for the outlet which configuration
will be read in by the generated SaxHandlerFactory,
or null if the name of the outlet should be determined from
the parsed XML.outletType - the type of the outlet, not null.SAXException - if no matching handler can be identified,
or if an error occurs while creating the handler.public static String getOutletType(Attributes attributes) throws SAXException
attributes - the attributes of the XML tag, not null.SAXException - if the xsi:type attribute is not set.public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerpublicId - The public identifier of the external entity.systemId - The system identifier of the external entity.SAXExceptionIOExceptionConfigurationEntityResolver.resolveEntity(String, String)public void error(SAXParseException exception) throws SAXParseException
error in interface ErrorHandlererror in class DefaultHandlerSAXParseExceptionpublic void fatalError(SAXParseException exception) throws SAXParseException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXParseExceptionpublic void warning(SAXParseException exception) throws SAXParseException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXParseExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.