com.sun.tools.xjc.reader.dtd

Class Element

final class Element extends Term implements Comparable<Element>

DTD Element.

This class extends Term to participate in the content model tree.

This class is repsonsible for binding the element.

Field Summary
List<CPropertyInfo>attributes
List of attribute properties on this element
booleanisReferenced
True if this element is referenced from another element.
Stringname
Name of the element.
Constructor Summary
Element(TDTDReader owner, String name)
Method Summary
voidaddAllElements(Block b)
voidbind()
intcompareTo(Element that)
voiddefine(short contentModelType, Term contentModel, Locator locator)
Define its content model.
CClassInfogetClassInfo()
Return null if this class is not bound to a class.
booleanisOptional()
booleanisRepeated()
voidnormalize(List<Block> r, boolean optional)

Field Detail

attributes

final List<CPropertyInfo> attributes
List of attribute properties on this element

isReferenced

boolean isReferenced
True if this element is referenced from another element.

name

final String name
Name of the element.

Constructor Detail

Element

public Element(TDTDReader owner, String name)

Method Detail

addAllElements

void addAllElements(Block b)

bind

void bind()

compareTo

public int compareTo(Element that)

define

void define(short contentModelType, Term contentModel, Locator locator)
Define its content model.

getClassInfo

CClassInfo getClassInfo()
Return null if this class is not bound to a class.

isOptional

boolean isOptional()

isRepeated

boolean isRepeated()

normalize

void normalize(List<Block> r, boolean optional)