public class TDTDReader
extends DTDHandlerBase
| Modifier | Constructor and Description |
|---|---|
protected |
TDTDReader(ErrorReceiver errorReceiver,
Options opts,
InputSource _bindInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(String elementName,
String attributeName,
String attributeType,
String[] enumeration,
short attributeUse,
String defaultValue) |
void |
childElement(String elementName,
short occurence) |
void |
connector(short connectorType) |
protected CPropertyInfo |
createAttribute(String elementName,
String attributeName,
String attributeType,
String[] enums,
short attributeUse,
String defaultValue) |
void |
endContentModel(String elementName,
short contentModelType) |
void |
endDTD() |
void |
endModelGroup(short occurence) |
protected void |
error(Locator loc,
String prop,
Object... args) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
static Model |
parse(InputSource dtd,
InputSource bindingInfo,
ErrorReceiver errorReceiver,
Options opts)
Parses DTD grammar and a binding information into BGM.
|
void |
setDocumentLocator(Locator loc) |
void |
startContentModel(String elementName,
short contentModelType) |
void |
startDTD(InputEntity entity) |
void |
startModelGroup() |
void |
warning(SAXParseException e) |
protected TDTDReader(ErrorReceiver errorReceiver, Options opts, InputSource _bindInfo) throws AbortException
AbortExceptionpublic static Model parse(InputSource dtd, InputSource bindingInfo, ErrorReceiver errorReceiver, Options opts)
This method is just a utility method that covers 80% of the use cases.
bindingInfo - binding information file, if any. Can be null.public void startDTD(InputEntity entity)
throws SAXException
SAXExceptionpublic void endDTD()
throws SAXException
SAXExceptionpublic void attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue) throws SAXException
SAXExceptionprotected CPropertyInfo createAttribute(String elementName, String attributeName, String attributeType, String[] enums, short attributeUse, String defaultValue) throws SAXException
SAXExceptionpublic void startContentModel(String elementName, short contentModelType) throws SAXException
SAXExceptionpublic void endContentModel(String elementName, short contentModelType) throws SAXException
SAXExceptionpublic void startModelGroup()
throws SAXException
SAXExceptionpublic void endModelGroup(short occurence)
throws SAXException
SAXExceptionpublic void connector(short connectorType)
throws SAXException
SAXExceptionpublic void childElement(String elementName, short occurence) throws SAXException
SAXExceptionpublic void setDocumentLocator(Locator loc)
public void error(SAXParseException e) throws SAXException
SAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
SAXExceptionpublic void warning(SAXParseException e) throws SAXException
SAXExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.