This class extends Term to participate in the content model tree.
This class is repsonsible for binding the element.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final List | attributes
List of attribute properties on this element |
| private CClassInfo | classInfo
If this element maps to a class, that class representation. |
| private boolean | classInfoComputed
True if |
| private Term | |
| private short | |
| pack-priv boolean | isReferenced
True if this element is referenced from another element. |
| private Locator | locator
The source location where this element is defined. |
| private boolean | mustBeClass
True if this element needs to be a class. |
| pack-priv final String | name
Name of the element. |
| private final List | normalizedBlocks
Normalized blocks of the content model. |
| private final TDTDReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| private CClassInfo | |
| public int | compareTo(Element that)
Implements java. Compares this object with the specified object for order. |
| private CClassInfo | |
| pack-priv void | |
| pack-priv CClassInfo | |
| private TypeUse | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | normalize(List<Block> r, boolean optional)
Implements abstract com.
|
| attributes | back to summary |
|---|---|
| pack-priv final List<CPropertyInfo> attributes List of attribute properties on this element | |
| classInfo | back to summary |
|---|---|
| private CClassInfo classInfo If this element maps to a class, that class representation. Otherwise null. | |
| classInfoComputed | back to summary |
|---|---|
| private boolean classInfoComputed True if | |
| contentModel | back to summary |
|---|---|
| private Term contentModel | |
| contentModelType | back to summary |
|---|---|
| private short contentModelType | |
| isReferenced | back to summary |
|---|---|
| pack-priv boolean isReferenced True if this element is referenced from another element. | |
| locator | back to summary |
|---|---|
| private Locator locator The source location where this element is defined. | |
| mustBeClass | back to summary |
|---|---|
| private boolean mustBeClass True if this element needs to be a class. Currently, if an element is referenced from a construct like (A|B|C), we require those A,B, and C to be a class. | |
| name | back to summary |
|---|---|
| pack-priv final String name Name of the element. | |
| normalizedBlocks | back to summary |
|---|---|
| private final List<Block> normalizedBlocks Normalized blocks of the content model. | |
| owner | back to summary |
|---|---|
| private final TDTDReader owner | |
| Element | back to summary |
|---|---|
| public Element(TDTDReader owner, String name) | |
| addAllElements | back to summary |
|---|---|
| pack-priv void addAllElements(Block b) Implements abstract com.
| |
| bind | back to summary |
|---|---|
| pack-priv void bind() | |
| calcClass | back to summary |
|---|---|
| private CClassInfo calcClass() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Element that) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| createDefaultClass | back to summary |
|---|---|
| private CClassInfo createDefaultClass() | |
| define | back to summary |
|---|---|
| pack-priv void define(short contentModelType, Term contentModel, Locator locator) Define its content model. | |
| getClassInfo | back to summary |
|---|---|
| pack-priv CClassInfo getClassInfo() Return null if this class is not bound to a class. | |
| getConversion | back to summary |
|---|---|
| private TypeUse getConversion() When this element is an PCDATA-only content model, returns the conversion for it. Otherwise the behavior is undefined. | |
| isOptional | back to summary |
|---|---|
| pack-priv boolean isOptional() Implements abstract com.
| |
| isRepeated | back to summary |
|---|---|
| pack-priv boolean isRepeated() Implements abstract com.
| |
| normalize | back to summary |
|---|---|
| pack-priv void normalize(List<Block> r, boolean optional) Implements abstract com.
| |