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.DTDEventListener
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void internalGeneralEntityDecl(String name, String value) throws SAXException
internalGeneralEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void externalGeneralEntityDecl(String name, String publicId, String systemId) throws SAXException
externalGeneralEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void internalParameterEntityDecl(String name, String value) throws SAXException
internalParameterEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void externalParameterEntityDecl(String name, String publicId, String systemId) throws SAXException
externalParameterEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void startDTD(com.sun.xml.dtdparser.InputEntity in) throws SAXException
startDTD
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void endDTD() throws SAXException
endDTD
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void comment(String text) throws SAXException
comment
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void warning(SAXParseException err) throws SAXException
warning
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void startContentModel(String elementName, short contentModelType) throws SAXException
startContentModel
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void endContentModel(String elementName, short contentModelType) throws SAXException
endContentModel
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue) throws SAXException
attributeDecl
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void childElement(String elementName, short occurence) throws SAXException
childElement
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void mixedElement(String elementName) throws SAXException
mixedElement
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void startModelGroup() throws SAXException
startModelGroup
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void endModelGroup(short occurence) throws SAXException
endModelGroup
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
public void connector(short connectorType) throws SAXException
connector
in interface com.sun.xml.dtdparser.DTDEventListener
SAXException
Copyright © 2024 JBoss by Red Hat. All rights reserved.