public class Element extends Object
Attribute
and Attributes
classes. Element
also provides no "context" information (ie, the
places where a given element can occur), but this information is available
through the ModelBuilder
class.Constructor and Description |
---|
Element(String eName,
String eModel,
int order)
Creates a new instance of the class
|
Modifier and Type | Method and Description |
---|---|
ContentModel |
getContentModel()
Returns the ContentModel object associated with this element definition.
|
int |
getDTDOrder()
Returns the number indicating the order of this element declaration
relative to other elements in the DTD
|
Location |
getLocation()
Returns the location of the element declaration in the DTD (file name and line number)
|
String |
getMinifiedModel()
Returns the minified content model string for the element declaration
|
String |
getName()
Returns the name of the element
|
boolean |
isReachable()
Returns the value of the reachable flag.
|
boolean |
isRoot()
Returns the value of the isRoot flag.
|
void |
setIsRoot()
Sets the value of the isRoot flag to true.
|
void |
setLocation(Location loc)
Sets the location for this element declaration inside the DTD.
|
void |
setUnreachable()
Sets the reachable flag to false.
|
public int getDTDOrder()
public Location getLocation()
public ContentModel getContentModel()
public String getMinifiedModel()
public String getName()
public void setLocation(Location loc)
loc
- Location informationpublic void setIsRoot()
public boolean isRoot()
public void setUnreachable()
public boolean isReachable()