edu.ucsb.adl.reports
Class XmlDtd.Element

java.lang.Object
  |
  +--edu.ucsb.adl.reports.XmlDtd.Element
Enclosing class:
XmlDtd

public static final class XmlDtd.Element
extends java.lang.Object

Represents an element.


Field Summary
 boolean anyContent
          Indicates if the element's content model is ANY.
 XmlDtd.Attribute[] attributes
          The element's attributes, indexed by attribute code.
 boolean captureContent
          Indicates if the element's textual content is to be captured and passed on to the parser handler.
 int initialState
          The index of the element's initial state in stateTable.
 java.lang.String name
          The element's name.
 
Constructor Summary
XmlDtd.Element(java.lang.String name, int initialState, boolean captureContent, boolean anyContent, XmlDtd.Attribute[] attributes)
          Creates an Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
The element's name. Element names are local to, and unique within, a DTD.


initialState

public final int initialState
The index of the element's initial state in stateTable.


captureContent

public final boolean captureContent
Indicates if the element's textual content is to be captured and passed on to the parser handler. Equivalently, indicates if the element's content model includes #PCDATA.


anyContent

public final boolean anyContent
Indicates if the element's content model is ANY.


attributes

public final XmlDtd.Attribute[] attributes
The element's attributes, indexed by attribute code.

Constructor Detail

XmlDtd.Element

public XmlDtd.Element(java.lang.String name,
                      int initialState,
                      boolean captureContent,
                      boolean anyContent,
                      XmlDtd.Attribute[] attributes)
Creates an Element.

Parameters:
name - The element's name.
initialState - The element's initial state in stateTable.
captureContent - Indicates if the element's textual content is to be captured.
anyContent - Indicates if the element's content model is ANY.
attributes - The element's attributes, indexed by attribute code.