|
Matra DTD Parser 0.8b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.conradroche.matra.decl.ElementType
Class to hold an Element Type declaration.
Constructor Summary | |
ElementType()
Element constructor comment. |
|
ElementType(String content)
ElementType constructor. |
Method Summary | |
AttList |
getAttList()
Returns the attribute list for this element type. |
String[] |
getAttributeNames()
Returns the attribute names for the attributes of this element type. |
String |
getChildOptionality(String childName)
Returns the cardinality for a child in the content spec of this element type. |
ElementType[] |
getChildren()
Returns the child element types for this Element Type. |
String[] |
getChildrenNames()
Returns the names of the child element types for this element type. |
String |
getName()
Returns the name of this element type. |
String[] |
getParentNames()
Returns the parent element names. |
boolean |
hasChildren()
Checks if this element type has any children. |
boolean |
isAnyContentModel()
Checks if the content model of this element type is ANY. |
boolean |
isEmptyContentModel()
Checks if the content model of this element type is empty. |
void |
load(Hashtable elementList,
Hashtable AttributeList)
Loads the data for this element type. |
void |
setAttList(AttList attlist)
Sets the attribute list for this elemen type. |
void |
setAttributeNames(String[] newAttributeNames)
Sets the attribute names for this element type. |
void |
setChildren(ElementType[] newChildren)
Sets the child elements for this element type. |
void |
setChildrenNames(String[] newChildrenNames)
Sets the child element names. |
void |
setName(String newName)
Sets the name for this element type. |
void |
setParentNames(String[] newParentNames)
Sets the parent element names. |
String |
toString()
Returns a DTD String representation for this element type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ElementType()
public ElementType(String content) throws DTDException
content
- The element type declaration.DTDException
- if syntax error is encountered.Method Detail |
public AttList getAttList()
setAttList(com.conradroche.matra.decl.AttList)
public String[] getAttributeNames()
setAttributeNames(java.lang.String[])
public String getChildOptionality(String childName)
childName
- The name of the child element.public ElementType[] getChildren()
setChildren(com.conradroche.matra.decl.ElementType[])
public String[] getChildrenNames()
setChildrenNames(java.lang.String[])
public String getName()
setName(java.lang.String)
public String[] getParentNames()
setParentNames(java.lang.String[])
public boolean hasChildren()
true
if this element
type has any children; false
otherwise.public boolean isAnyContentModel()
true
if the content
model is ANY; false
otherwise.public boolean isEmptyContentModel()
true
if the content
model is empty; false
otherwise.public void load(Hashtable elementList, Hashtable AttributeList)
elementList
- The list of all element types
in this DTD.AttributeList
- The list of all attributes
for this element type.public void setAttList(AttList attlist)
attlist
- The attribute list.getAttList()
public void setAttributeNames(String[] newAttributeNames)
newAttributeNames
- The attribute names.getAttributeNames()
public void setChildren(ElementType[] newChildren)
newChildren
- The child elements.getChildren()
public void setChildrenNames(String[] newChildrenNames)
newChildrenNames
- The child element names.getChildrenNames()
public void setName(String newName)
newName
- The element name.getName()
public void setParentNames(String[] newParentNames)
newParentNames
- The parent element names.getParentNames()
public String toString()
toString
in class Object
|
Matra DTD Parser 0.8b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |