|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.dtd.DTDObject de.ispsoft.jaxme.generator.dtd.DTDElement
Stores one element declaration from the DTD.
Field Summary | |
static int |
TYPE_ANY
A valid DTDElement type: ANY |
static int |
TYPE_CHOICE
A valid DTDElement type: Choice |
static int |
TYPE_EMPTY
A valid DTDElement type: EMPTY |
static int |
TYPE_PCDATA
A valid DTDElement type: #PCDATA |
static int |
TYPE_SEQUENCE
A valid DTDElement type: Sequence |
Constructor Summary | |
DTDElement(java.lang.String pName,
java.lang.String pModel)
Constructor for DTDElement. |
Method Summary | |
void |
addAttribute(DTDAttribute pAttr)
Adds an attribute to the element. |
void |
addAttributes(java.util.List pElements)
Adds the attributes to the element. |
void |
addChild(DTDElement pChild)
Adds an element to the list of childs. |
void |
clearAttributes()
Clears the elements attribute list. |
void |
clearChilds()
Clears the elements child list. |
protected DTDElement |
cloneMe()
|
java.util.Iterator |
getAttributes()
Returns an iterator to the attribute list. |
java.util.Iterator |
getChilds()
Returns an iterator to the child list. |
java.lang.String |
getModel()
Returns the model as a string. |
int |
getType()
Returns the element type. |
boolean |
isAttribute()
Returns whether this object is an Attribute. |
protected void |
parseChilds(java.util.List pElements,
java.lang.String pSeparator)
Parses the child list. |
void |
parseModel()
Parses the model to determine the element type. |
void |
parseModel(java.util.List pElements)
Parses the model in order to build the list of childs. |
void |
setType(int pType)
Sets the element type. |
Methods inherited from class de.ispsoft.jaxme.generator.dtd.DTDObject |
getMaxOccurs, getMinOccurs, getName, setMaxOccurs, setMinOccurs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_PCDATA
A valid DTDElement type: #PCDATA
public static final int TYPE_ANY
A valid DTDElement type: ANY
public static final int TYPE_EMPTY
A valid DTDElement type: EMPTY
public static final int TYPE_SEQUENCE
A valid DTDElement type: Sequence
public static final int TYPE_CHOICE
A valid DTDElement type: Choice
Constructor Detail |
public DTDElement(java.lang.String pName, java.lang.String pModel)
Method Detail |
public java.lang.String getModel()
Returns the model as a string.
public int getType()
Returns the element type.
public void setType(int pType)
Sets the element type.
public void addAttribute(DTDAttribute pAttr)
Adds an attribute to the element.
public java.util.Iterator getAttributes()
Returns an iterator to the attribute list.
public void clearAttributes()
Clears the elements attribute list.
public void addChild(DTDElement pChild)
Adds an element to the list of childs.
public java.util.Iterator getChilds()
Returns an iterator to the child list.
public void clearChilds()
Clears the elements child list.
protected void parseChilds(java.util.List pElements, java.lang.String pSeparator) throws SchemaException
Parses the child list.
SchemaException
public void addAttributes(java.util.List pElements)
Adds the attributes to the element.
public void parseModel() throws SchemaException
Parses the model to determine the element type. No child or attribute lists are built.
SchemaException
public void parseModel(java.util.List pElements) throws SchemaException
Parses the model in order to build the list of childs.
pElements
- List of DTDElement objects
SchemaException
public final boolean isAttribute()
DTDObject
Returns whether this object is an Attribute.
isAttribute
in class DTDObject
protected DTDElement cloneMe()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |