org.jboss.shrinkwrap.descriptor.metadata.dtd
Class MetadataDtdEventListener
java.lang.Object
org.jboss.shrinkwrap.descriptor.metadata.dtd.MetadataDtdEventListener
- All Implemented Interfaces:
- com.sun.xml.dtdparser.DTDEventListener, EventListener
public class MetadataDtdEventListener
- extends Object
- implements com.sun.xml.dtdparser.DTDEventListener
This class is able to produce metadata
information when a dtd file
is parsed.
- Author:
- Ralf Battenfeld
Fields inherited from interface com.sun.xml.dtdparser.DTDEventListener |
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 |
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataDtdEventListener
public MetadataDtdEventListener(Metadata metadata,
boolean isVerbose)
- Creates a new instance.
getMetadata
public Metadata getMetadata()
setDocumentLocator
public void setDocumentLocator(Locator loc)
- Specified by:
setDocumentLocator
in interface com.sun.xml.dtdparser.DTDEventListener
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
notationDecl
public void notationDecl(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
notationDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
unparsedEntityDecl
public void unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
throws SAXException
- Specified by:
unparsedEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
internalGeneralEntityDecl
public void internalGeneralEntityDecl(String name,
String value)
throws SAXException
- Specified by:
internalGeneralEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
externalGeneralEntityDecl
public void externalGeneralEntityDecl(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
externalGeneralEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
internalParameterEntityDecl
public void internalParameterEntityDecl(String name,
String value)
throws SAXException
- Specified by:
internalParameterEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
externalParameterEntityDecl
public void externalParameterEntityDecl(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
externalParameterEntityDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
startDTD
public void startDTD(com.sun.xml.dtdparser.InputEntity in)
throws SAXException
- Specified by:
startDTD
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Specified by:
endDTD
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
comment
public void comment(String text)
throws SAXException
- Specified by:
comment
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
startCDATA
public void startCDATA()
throws SAXException
- Specified by:
startCDATA
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
endCDATA
public void endCDATA()
throws SAXException
- Specified by:
endCDATA
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
fatalError
public void fatalError(SAXParseException e)
throws SAXException
- Specified by:
fatalError
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
error
public void error(SAXParseException e)
throws SAXException
- Specified by:
error
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
warning
public void warning(SAXParseException err)
throws SAXException
- Specified by:
warning
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
startContentModel
public void startContentModel(String elementName,
short contentModelType)
throws SAXException
- Specified by:
startContentModel
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
endContentModel
public void endContentModel(String elementName,
short contentModelType)
throws SAXException
- Specified by:
endContentModel
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
attributeDecl
public void attributeDecl(String elementName,
String attributeName,
String attributeType,
String[] enumeration,
short attributeUse,
String defaultValue)
throws SAXException
- Specified by:
attributeDecl
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
childElement
public void childElement(String elementName,
short occurence)
throws SAXException
- Specified by:
childElement
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
mixedElement
public void mixedElement(String elementName)
throws SAXException
- Specified by:
mixedElement
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
startModelGroup
public void startModelGroup()
throws SAXException
- Specified by:
startModelGroup
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
endModelGroup
public void endModelGroup(short occurence)
throws SAXException
- Specified by:
endModelGroup
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
connector
public void connector(short connectorType)
throws SAXException
- Specified by:
connector
in interface com.sun.xml.dtdparser.DTDEventListener
- Throws:
SAXException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.