|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.reports.XmlDtd
Represents an XML DTD. Specifically, an instance of (a concrete subclass of) this abstract class contains the tables and other information needed by the high-performance validating XML parser to parse documents with respect to a given DTD.
$Log: XmlDtd.java,v $ Revision 1.1 2003/03/17 13:43:40 gjanee Initial revision
| Nested Class Summary | |
static class |
XmlDtd.Attribute
Represents an attribute. |
static class |
XmlDtd.Element
Represents an element. |
| Field Summary | |
java.util.Hashtable |
elementNameCodeMapping
Maps element names (e.g., " foo") to element codes
(e.g., Integer(27)). |
XmlDtd.Element[] |
elements
The DTD's elements, indexed by element code. |
boolean[] |
finalStates
Indicates which states in stateTable are final
(i.e., accepting) states for the corresponding elements. |
byte[][] |
stateTable
The processing states and transitions for the element content models. |
| Constructor Summary | |
XmlDtd(XmlDtd.Element[] elements,
java.util.Hashtable elementNameCodeMapping,
byte[][] stateTable,
boolean[] finalStates)
Creates an XmlDtd. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final XmlDtd.Element[] elements
public final java.util.Hashtable elementNameCodeMapping
foo") to element codes
(e.g., Integer(27)).
public final byte[][] stateTable
elements array, above; finalStates,
below, indicates which states are accepting states.
In practice, some conventions are followed. The states required to process a given element's content model are grouped together. The content model for the document as a whole is located first in the table and consists of two states. State 0 has a transition to state 1 on the DTD's root element, and is not an accepting state; state 1 has no transitions and is an accepting state.
public final boolean[] finalStates
stateTable are final
(i.e., accepting) states for the corresponding elements.
Indexed by state.
| Constructor Detail |
public XmlDtd(XmlDtd.Element[] elements,
java.util.Hashtable elementNameCodeMapping,
byte[][] stateTable,
boolean[] finalStates)
XmlDtd. No error checking is performed
on the arguments.
elements - The element array.elementNameCodeMapping - The element name-to-code mapping.stateTable - The parsing state/transition table.finalStates - The final states array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||