
public class MetadataDtdEventListener extends Object implements com.sun.xml.dtdparser.DTDEventListener
metadata information when a dtd file is parsed.CHOICE, CONTENT_MODEL_ANY, CONTENT_MODEL_CHILDREN, CONTENT_MODEL_EMPTY, CONTENT_MODEL_MIXED, OCCURENCE_ONCE, OCCURENCE_ONE_OR_MORE, OCCURENCE_ZERO_OR_MORE, OCCURENCE_ZERO_OR_ONE, SEQUENCE, USE_FIXED, USE_IMPLIED, USE_NORMAL, USE_REQUIRED| Constructor and Description |
|---|
MetadataDtdEventListener(Metadata metadata,
boolean isVerbose)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(String elementName,
String attributeName,
String attributeType,
String[] enumeration,
short attributeUse,
String defaultValue) |
void |
characters(char[] ch,
int start,
int length) |
void |
childElement(String elementName,
short occurence) |
void |
comment(String text) |
void |
connector(short connectorType) |
void |
endCDATA() |
void |
endContentModel(String elementName,
short contentModelType) |
void |
endDTD() |
void |
endModelGroup(short occurence) |
void |
error(SAXParseException e) |
void |
externalGeneralEntityDecl(String name,
String publicId,
String systemId) |
void |
externalParameterEntityDecl(String name,
String publicId,
String systemId) |
void |
fatalError(SAXParseException e) |
Metadata |
getMetadata() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
internalGeneralEntityDecl(String name,
String value) |
void |
internalParameterEntityDecl(String name,
String value) |
void |
mixedElement(String elementName) |
void |
notationDecl(String name,
String publicId,
String systemId) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator loc) |
void |
startCDATA() |
void |
startContentModel(String elementName,
short contentModelType) |
void |
startDTD(com.sun.xml.dtdparser.InputEntity in) |
void |
startModelGroup() |
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName) |
void |
warning(SAXParseException err) |
public MetadataDtdEventListener(Metadata metadata, boolean isVerbose)
public Metadata getMetadata()
public void setDocumentLocator(Locator loc)
setDocumentLocator in interface com.sun.xml.dtdparser.DTDEventListenerpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void internalGeneralEntityDecl(String name, String value) throws SAXException
internalGeneralEntityDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void externalGeneralEntityDecl(String name, String publicId, String systemId) throws SAXException
externalGeneralEntityDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void internalParameterEntityDecl(String name, String value) throws SAXException
internalParameterEntityDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void externalParameterEntityDecl(String name, String publicId, String systemId) throws SAXException
externalParameterEntityDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void startDTD(com.sun.xml.dtdparser.InputEntity in)
throws SAXException
startDTD in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void endDTD()
throws SAXException
endDTD in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void comment(String text) throws SAXException
comment in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void startCDATA()
throws SAXException
startCDATA in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void warning(SAXParseException err) throws SAXException
warning in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void startContentModel(String elementName, short contentModelType) throws SAXException
startContentModel in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void endContentModel(String elementName, short contentModelType) throws SAXException
endContentModel in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue) throws SAXException
attributeDecl in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void childElement(String elementName, short occurence) throws SAXException
childElement in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void mixedElement(String elementName) throws SAXException
mixedElement in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void startModelGroup()
throws SAXException
startModelGroup in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void endModelGroup(short occurence)
throws SAXException
endModelGroup in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionpublic void connector(short connectorType)
throws SAXException
connector in interface com.sun.xml.dtdparser.DTDEventListenerSAXExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.