public class DTDGrammarUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DTDGrammar |
fDTDGrammar |
protected boolean |
fNamespaces
Namespaces.
|
protected SymbolTable |
fSymbolTable
Symbol table.
|
protected static String |
NAMESPACES |
protected static String |
SYMBOL_TABLE
Property identifier: symbol table.
|
| Constructor and Description |
|---|
DTDGrammarUtil(DTDGrammar grammar,
SymbolTable symbolTable) |
DTDGrammarUtil(DTDGrammar grammar,
SymbolTable symbolTable,
NamespaceContext namespaceContext) |
DTDGrammarUtil(SymbolTable symbolTable)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDTDDefaultAttrs(QName elementName,
XMLAttributes attributes)
Add default attributes and validate.
|
void |
endCDATA(Augmentations augs)
The end of a CDATA section.
|
void |
endElement(QName element)
The end of an element.
|
protected void |
handleEndElement(QName element)
Handle end element.
|
protected void |
handleStartElement(QName element,
XMLAttributes attributes)
Handle element
|
boolean |
isIgnorableWhiteSpace(XMLString text) |
boolean |
isInElementContent() |
void |
reset(XMLComponentManager componentManager) |
void |
startCDATA(Augmentations augs)
The start of a CDATA section.
|
void |
startElement(QName element,
XMLAttributes attributes)
The start of an element.
|
protected static final String SYMBOL_TABLE
protected static final String NAMESPACES
protected DTDGrammar fDTDGrammar
protected boolean fNamespaces
protected SymbolTable fSymbolTable
public DTDGrammarUtil(SymbolTable symbolTable)
public DTDGrammarUtil(DTDGrammar grammar, SymbolTable symbolTable)
public DTDGrammarUtil(DTDGrammar grammar, SymbolTable symbolTable, NamespaceContext namespaceContext)
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException
XMLConfigurationExceptionpublic void startElement(QName element, XMLAttributes attributes) throws XNIException
element - The name of the element.attributes - The element attributes.augs - Additional information that may include infoset augmentationsXNIException - Thrown by handler to signal an error.public void endElement(QName element) throws XNIException
element - The name of the element.augs - Additional information that may include infoset augmentationsXNIException - Thrown by handler to signal an error.public void startCDATA(Augmentations augs) throws XNIException
augs - Additional information that may include infoset augmentationsXNIException - Thrown by handler to signal an error.public void endCDATA(Augmentations augs) throws XNIException
augs - Additional information that may include infoset augmentationsXNIException - Thrown by handler to signal an error.public void addDTDDefaultAttrs(QName elementName, XMLAttributes attributes) throws XNIException
XNIExceptionprotected void handleStartElement(QName element, XMLAttributes attributes) throws XNIException
XNIExceptionprotected void handleEndElement(QName element) throws XNIException
XNIExceptionpublic boolean isInElementContent()
public boolean isIgnorableWhiteSpace(XMLString text)
Copyright © 2018–2021 mhoffrogge. All rights reserved.