|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrl.mml.Tag
A class for the representation of an tag element (XML element).
By default, the class represents a start empty tag.
| Constructor Summary | |
Tag()
The default constructor. |
|
Tag(java.lang.String name)
The constructor. |
|
Tag(java.lang.String name,
boolean isStart,
boolean isEmpty)
The constructor. |
|
| Method Summary | |
void |
addAttribute(Attribute att)
Adds an attribute to the element. |
java.lang.String |
getName()
Returns the name of the element. |
boolean |
isEmpty()
Returns true if the element is an empty one. |
boolean |
isEndTag(Tag start)
Returns true if the instance if the end tag of the specified one. |
boolean |
isStart()
Returns true if the tag is an start one. |
void |
setIsEmpty(boolean isEmpty)
Sets the element as empty. |
void |
setIsStart(boolean isStart)
Sets the element as start element. |
void |
setName(java.lang.String name)
Sets the name of the element. |
java.lang.String |
toString()
Returns the string representation of the element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Tag()
public Tag(java.lang.String name)
name - the name of the element
public Tag(java.lang.String name,
boolean isStart,
boolean isEmpty)
name - the name of the elementisStart - true if the tag is an start one. false otherwise.isEmpty - true if the element is an empty one. false otherwise.| Method Detail |
public void setName(java.lang.String name)
name - the name of the element.public java.lang.String getName()
public void addAttribute(Attribute att)
att - the attribute to add.public boolean isEmpty()
true if the element is an empty one. false otherwise.
public void setIsEmpty(boolean isEmpty)
isEmpty - true if the element is an empty one. false otherwise.public boolean isStart()
true if the tag is an start one. false otherwise.
public void setIsStart(boolean isStart)
isStart - true if the element is an start one. false otherwise.public boolean isEndTag(Tag start)
true if the instance if the end tag of the specified one. false
otherwise.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||