|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface NOMElement.SharedEl
This inner interface provides some utility functions for shared NOM users
Method Summary | |
---|---|
void |
addAfterSibling(NOMView view,
NOMElement sibling)
add the element as a sibling of the given element. |
void |
addAttribute(NOMView view,
NOMAttribute attribute)
add an attribute to the element. |
void |
addBeforeSibling(NOMView view,
NOMElement sibling)
add the element as a sibling of the given element. |
void |
addChild(NOMView view,
NOMElement child)
adds a child to this element. |
void |
addChildAboveChildren(NOMView view,
NOMElement newchild,
java.util.List old_children)
Adds the NOMElement newchild in place of the given child list, making the current children children of the newly added node. |
void |
addChildAfter(NOMView view,
NOMElement oldchild,
NOMElement newchild)
adds the NOMElement newchild immediately after the given existing child, or reports an exception if the child cannot be found. |
void |
addChildBefore(NOMView view,
NOMElement oldchild,
NOMElement newchild)
adds the NOMElement newchild immediately before the given existing child, or reports an exception if the child cannot be found. |
void |
addExternalPointer(NOMView view,
java.lang.String role,
java.lang.String value)
Set the href value of the external pointer from this element. |
void |
addFirstChild(NOMView view,
NOMElement child)
adds the NOMElement as the first child. |
void |
addLastChild(NOMView view,
NOMElement child)
adds the NOMElement as the last child. |
void |
addPointer(NOMView view,
NOMPointer pointer)
add a pointer to the element. |
void |
addToCorpus(NOMView view)
add an element to the corpus with no information about location. |
void |
deleteChild(NOMView view,
NOMElement child)
Delete an element. |
void |
insertParent(NOMView view,
NOMElement newparent,
NOMElement oldparent)
Insert a new parent node, making me and my siblings children of the new parent and making our current parent the parent of the new parent |
void |
removeAttribute(NOMView view,
java.lang.String name)
Remove an attribute from the element completely. |
void |
removeChild(NOMView view,
NOMElement child)
Remove a nite:child from an element without actually deleting the element referred to. |
void |
removeParentAndAdjust(NOMView view,
NOMElement par)
Remove the parent node, making me and my siblings children of our grandparent. |
void |
removePointer(NOMView view,
NOMPointer pointer)
remove a pointer from the element. |
void |
setDoubleAttribute(NOMView view,
java.lang.String name,
java.lang.Double value)
Set the value of a named Double attribute. |
void |
setEndTime(NOMView view,
double et)
Set the end time of this element. |
void |
setStartTime(NOMView view,
double st)
Set the start time of this element. |
void |
setStringAttribute(NOMView view,
java.lang.String name,
java.lang.String value)
Set the value of a named string attribute. |
void |
setText(NOMView view,
java.lang.String chars)
sets the textual content of an element. |
Method Detail |
---|
void setStringAttribute(NOMView view, java.lang.String name, java.lang.String value) throws NOMException
NOMException
void setDoubleAttribute(NOMView view, java.lang.String name, java.lang.Double value) throws NOMException
NOMException
void removeAttribute(NOMView view, java.lang.String name) throws NOMException
NOMException
void addAttribute(NOMView view, NOMAttribute attribute) throws NOMException
NOMException
void addPointer(NOMView view, NOMPointer pointer) throws NOMException
NOMException
void removePointer(NOMView view, NOMPointer pointer) throws NOMException
NOMException
void addFirstChild(NOMView view, NOMElement child) throws NOMException
NOMException
void addLastChild(NOMView view, NOMElement child) throws NOMException
NOMException
void addChildBefore(NOMView view, NOMElement oldchild, NOMElement newchild) throws NOMException
NOMException
void addChildAfter(NOMView view, NOMElement oldchild, NOMElement newchild) throws NOMException
NOMException
void addChildAboveChildren(NOMView view, NOMElement newchild, java.util.List old_children) throws NOMException
NOMException
void removeParentAndAdjust(NOMView view, NOMElement par) throws NOMException
NOMException
void insertParent(NOMView view, NOMElement newparent, NOMElement oldparent) throws NOMException
NOMException
void removeChild(NOMView view, NOMElement child) throws NOMException
NOMException
void deleteChild(NOMView view, NOMElement child) throws NOMException
NOMException
void addChild(NOMView view, NOMElement child) throws NOMException
NOMException
void setText(NOMView view, java.lang.String chars) throws NOMException
NOMException
void setStartTime(NOMView view, double st) throws NOMException
NOMException
void setEndTime(NOMView view, double et) throws NOMException
NOMException
void addToCorpus(NOMView view) throws NOMException
NOMException
void addBeforeSibling(NOMView view, NOMElement sibling) throws NOMException
NOMException
void addAfterSibling(NOMView view, NOMElement sibling) throws NOMException
NOMException
void addExternalPointer(NOMView view, java.lang.String role, java.lang.String value) throws NOMException
NOMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |