public class ConfigXmlHandler extends XmlHandler
MoML_DTD_1, MoML_PUBLIC_ID_1
Constructor and Description |
---|
ConfigXmlHandler(ConfigXmlTree tree,
java.lang.String systemId,
java.util.Set<java.lang.String> includedClasses)
Construct an XML handler.
|
Modifier and Type | Method and Description |
---|---|
void |
addExcludedFile(java.lang.String canonicalPath)
Exclude the specified XML document from the scan.
|
void |
addExcludedFiles(java.util.Collection<java.lang.String> canonicalPaths)
Exclude the specified XML documents from the scan.
|
void |
endElement(java.lang.String elementName)
Handle the end tag of an XML element.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Process the instruction given in the data.
|
void |
startElement(java.lang.String elementName)
Handle the start tag of an XML element.
|
attribute, charData, doctypeDecl, endDocument, endExternalEntity, error, getCurrentTree, getSystemId, ignorableWhitespace, resolveEntity, startDocument, startExternalEntity
ConfigXmlHandler(ConfigXmlTree tree, java.lang.String systemId, java.util.Set<java.lang.String> includedClasses)
tree
- The XML tree to be scanned.systemId
- The system ID representing the location of the original
XML document.includedClasses
- The classes in the original XML document that
should be transformed in the new XML document.public void addExcludedFile(java.lang.String canonicalPath)
canonicalPath
- The canonical path of the XML document to be
excluded.public void addExcludedFiles(java.util.Collection<java.lang.String> canonicalPaths)
canonicalPaths
- The canonical paths of the XML documents to be
excluded.public void endElement(java.lang.String elementName) throws java.lang.Exception
endElement
in interface XmlHandler
endElement
in class XmlHandler
elementName
- The name of the XML element.java.lang.Exception
- If the overriding method in the superclass throws an
Exception.XmlHandler.startElement(java.lang.String)
,
XmlParser.declaredElements()
,
XmlParser.getElementContentType(java.lang.String)
public void processingInstruction(java.lang.String target, java.lang.String data) throws java.lang.Exception
processingInstruction
in interface XmlHandler
processingInstruction
in class XmlHandler
target
- The target (the name at the start of the processing
instruction).data
- The data, if any (the rest of the processing instruction).java.lang.Exception
- If the MoML parser throws an exception.public void startElement(java.lang.String elementName) throws java.lang.Exception
startElement
in interface XmlHandler
startElement
in class XmlHandler
elementName
- The name of the XML element.java.lang.Exception
- If the overridden method in the superclass throws
an Exception.XmlHandler.attribute(java.lang.String, java.lang.String, boolean)
,
XmlHandler.endElement(java.lang.String)
,
XmlParser.declaredElements()
,
XmlParser.getElementContentType(java.lang.String)