|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectModelElement
This is a wrapper for NOM and JDOM elements so that NXT can use either of these object models. Jonathan, you might want to change this or put it in a different package at some point
Method Summary | |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value)
Replace the specified attribute of this element with the specified element Or create the specified attribute if it did not previously exist |
void |
addChild(ObjectModelElement e,
int pos)
Add the specified child element to this at the specified position in the child list |
void |
addContent(java.lang.String content)
Replace the current textual content with the specified textual content |
void |
addPointer(java.lang.String role,
ObjectModelElement el)
|
void |
addSibling(ObjectModelElement e,
int pos)
|
ObjectModelElement |
copy()
Returns a new objectmodelelement which is a copy of this one |
void |
deleteElement()
Delete this element |
java.util.List |
getAttributes()
Returns list of string, string tuples representing the attributes and values of this element |
java.lang.String |
getAttributeValue(java.lang.String s)
Returns the value of the specified attribute |
int |
getChildIndex()
Returns the index of this element into its parent's child list. |
java.util.List |
getChildren()
Returns the children of this element as a list of ObjectModelElements |
java.lang.String |
getDisplayedAttribute()
Returns the name of the attribute which is displayed on-screen by this object model element |
java.lang.String |
getID()
Returns the unique ID of this element |
java.lang.String |
getName()
Method getName. |
java.lang.String |
getNamespace()
Returns the namespace which this element is in |
ObjectModelElement |
getParent()
|
java.lang.String |
getTextualContent()
Returns the textual content of this element |
ObjectModelElement |
makeElement()
Returns a new (empty) object model element. |
void |
removeChild(ObjectModelElement e)
Remove the specified child from this element |
void |
removePointer(java.lang.String role,
ObjectModelElement e)
|
void |
setChildIndex(int i)
Sets the index of this element into its parent's children list |
void |
setDisplayedAttribute(java.lang.String a)
Keeps a record of which attribute this object displays on-screen |
void |
setNamespace(java.lang.String namespace)
|
void |
setParent(ObjectModelElement e)
|
Method Detail |
---|
java.lang.String getID()
void addAttribute(java.lang.String name, java.lang.String value)
void addContent(java.lang.String content)
void removeChild(ObjectModelElement e)
void deleteElement()
ObjectModelElement makeElement()
void addPointer(java.lang.String role, ObjectModelElement el)
void removePointer(java.lang.String role, ObjectModelElement e)
java.lang.String getTextualContent()
java.lang.String getAttributeValue(java.lang.String s)
java.lang.String getDisplayedAttribute()
void setDisplayedAttribute(java.lang.String a)
a
- void addChild(ObjectModelElement e, int pos)
void addSibling(ObjectModelElement e, int pos)
ObjectModelElement getParent()
void setParent(ObjectModelElement e)
java.util.List getChildren()
int getChildIndex()
void setChildIndex(int i)
i
- java.util.List getAttributes()
java.lang.String getName()
java.lang.String getNamespace()
void setNamespace(java.lang.String namespace)
ObjectModelElement copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |