com.sun.xml.stream.dtd
Class DTDGrammarUtil

java.lang.Object
  extended by com.sun.xml.stream.dtd.DTDGrammarUtil

public class DTDGrammarUtil
extends java.lang.Object


Field Summary
protected  DTDGrammar fDTDGrammar
           
protected  boolean fNamespaces
          Namespaces.
protected  org.apache.xerces.util.SymbolTable fSymbolTable
          Symbol table.
protected static java.lang.String NAMESPACES
           
protected static java.lang.String SYMBOL_TABLE
          Property identifier: symbol table.
 
Constructor Summary
DTDGrammarUtil(DTDGrammar grammar, org.apache.xerces.util.SymbolTable symbolTable)
           
DTDGrammarUtil(org.apache.xerces.util.SymbolTable symbolTable)
          Default constructor.
 
Method Summary
 void addDTDDefaultAttrs(org.apache.xerces.xni.QName elementName, org.apache.xerces.xni.XMLAttributes attributes)
          Add default attributes and validate.
 void endCDATA(org.apache.xerces.xni.Augmentations augs)
          The end of a CDATA section.
 void endElement(org.apache.xerces.xni.QName element)
          The end of an element.
protected  void handleEndElement(org.apache.xerces.xni.QName element)
          Handle end element.
protected  void handleStartElement(org.apache.xerces.xni.QName element)
          Handle element
 boolean isIgnorableWhiteSpace(org.apache.xerces.xni.XMLString text)
           
 boolean isInElementContent()
           
 void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
           
 void startCDATA(org.apache.xerces.xni.Augmentations augs)
          The start of a CDATA section.
 void startElement(org.apache.xerces.xni.QName element)
          The start of an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYMBOL_TABLE

protected static final java.lang.String SYMBOL_TABLE
Property identifier: symbol table.

See Also:
Constant Field Values

NAMESPACES

protected static final java.lang.String NAMESPACES
See Also:
Constant Field Values

fDTDGrammar

protected DTDGrammar fDTDGrammar

fNamespaces

protected boolean fNamespaces
Namespaces.


fSymbolTable

protected org.apache.xerces.util.SymbolTable fSymbolTable
Symbol table.

Constructor Detail

DTDGrammarUtil

public DTDGrammarUtil(org.apache.xerces.util.SymbolTable symbolTable)
Default constructor.


DTDGrammarUtil

public DTDGrammarUtil(DTDGrammar grammar,
                      org.apache.xerces.util.SymbolTable symbolTable)
Method Detail

reset

public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
           throws org.apache.xerces.xni.parser.XMLConfigurationException
Throws:
org.apache.xerces.xni.parser.XMLConfigurationException

startElement

public void startElement(org.apache.xerces.xni.QName element)
                  throws org.apache.xerces.xni.XNIException
The start of an element.

Parameters:
element - The name of the element.
attributes - The element attributes.
augs - Additional information that may include infoset augmentations
Throws:
org.apache.xerces.xni.XNIException - Thrown by handler to signal an error.

endElement

public void endElement(org.apache.xerces.xni.QName element)
                throws org.apache.xerces.xni.XNIException
The end of an element.

Parameters:
element - The name of the element.
augs - Additional information that may include infoset augmentations
Throws:
org.apache.xerces.xni.XNIException - Thrown by handler to signal an error.

startCDATA

public void startCDATA(org.apache.xerces.xni.Augmentations augs)
                throws org.apache.xerces.xni.XNIException
The start of a CDATA section.

Parameters:
augs - Additional information that may include infoset augmentations
Throws:
org.apache.xerces.xni.XNIException - Thrown by handler to signal an error.

endCDATA

public void endCDATA(org.apache.xerces.xni.Augmentations augs)
              throws org.apache.xerces.xni.XNIException
The end of a CDATA section.

Parameters:
augs - Additional information that may include infoset augmentations
Throws:
org.apache.xerces.xni.XNIException - Thrown by handler to signal an error.

addDTDDefaultAttrs

public void addDTDDefaultAttrs(org.apache.xerces.xni.QName elementName,
                               org.apache.xerces.xni.XMLAttributes attributes)
                        throws org.apache.xerces.xni.XNIException
Add default attributes and validate.

Throws:
org.apache.xerces.xni.XNIException

handleStartElement

protected void handleStartElement(org.apache.xerces.xni.QName element)
                           throws org.apache.xerces.xni.XNIException
Handle element

Throws:
org.apache.xerces.xni.XNIException

handleEndElement

protected void handleEndElement(org.apache.xerces.xni.QName element)
                         throws org.apache.xerces.xni.XNIException
Handle end element.

Throws:
org.apache.xerces.xni.XNIException

isInElementContent

public boolean isInElementContent()

isIgnorableWhiteSpace

public boolean isIgnorableWhiteSpace(org.apache.xerces.xni.XMLString text)


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.