com.sun.tools.xjc.reader.dtd
Class Element

java.lang.Object
  extended by com.sun.tools.xjc.reader.dtd.Term
      extended by com.sun.tools.xjc.reader.dtd.Element
All Implemented Interfaces:
Comparable<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
(package private)  List<CPropertyInfo> attributes
          List of attribute properties on this element
(package private)  boolean isReferenced
          True if this element is referenced from another element.
(package private)  String name
          Name of the element.
 
Fields inherited from class com.sun.tools.xjc.reader.dtd.Term
EMPTY
 
Constructor Summary
Element(TDTDReader owner, String name)
           
 
Method Summary
(package private)  void addAllElements(Block b)
           
(package private)  void bind()
           
 int compareTo(Element that)
           
(package private)  void define(short contentModelType, Term contentModel, Locator locator)
          Define its content model.
(package private)  CClassInfo getClassInfo()
          Return null if this class is not bound to a class.
(package private)  boolean isOptional()
           
(package private)  boolean isRepeated()
           
(package private)  void normalize(List<Block> r, boolean optional)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

final String name
Name of the element.


isReferenced

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


attributes

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

Constructor Detail

Element

public Element(TDTDReader owner,
               String name)
Method Detail

normalize

void normalize(List<Block> r,
               boolean optional)
Specified by:
normalize in class Term

addAllElements

void addAllElements(Block b)
Specified by:
addAllElements in class Term

isOptional

boolean isOptional()
Specified by:
isOptional in class Term

isRepeated

boolean isRepeated()
Specified by:
isRepeated in class Term

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.


bind

void bind()

compareTo

public int compareTo(Element that)
Specified by:
compareTo in interface Comparable<Element>