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
AbortException
public 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
SAXException
public void endDTD() throws SAXException
SAXException
public void attributeDecl(String elementName, String attributeName, String attributeType, String[] enumeration, short attributeUse, String defaultValue) throws SAXException
SAXException
protected CPropertyInfo createAttribute(String elementName, String attributeName, String attributeType, String[] enums, short attributeUse, String defaultValue) throws SAXException
SAXException
public void startContentModel(String elementName, short contentModelType) throws SAXException
SAXException
public void endContentModel(String elementName, short contentModelType) throws SAXException
SAXException
public void startModelGroup() throws SAXException
SAXException
public void endModelGroup(short occurence) throws SAXException
SAXException
public void connector(short connectorType) throws SAXException
SAXException
public void childElement(String elementName, short occurence) throws SAXException
SAXException
public void setDocumentLocator(Locator loc)
public void error(SAXParseException e) throws SAXException
SAXException
public void fatalError(SAXParseException e) throws SAXException
SAXException
public void warning(SAXParseException e) throws SAXException
SAXException
Copyright © 2020 JBoss by Red Hat. All rights reserved.