|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.nom.nomwrite.impl.NOMWriteElement.SharedElement
public class NOMWriteElement.SharedElement
This inner class provides some utility functions for shared NOM users
| Constructor Summary | |
|---|---|
NOMWriteElement.SharedElement(NOMWriteElement nwa)
|
|
| 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 chilren 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 an new parent node, making me and my siblings children of our 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NOMWriteElement.SharedElement(NOMWriteElement nwa)
| Method Detail |
|---|
public void setStringAttribute(NOMView view,
java.lang.String name,
java.lang.String value)
throws NOMException
setStringAttribute in interface NOMElement.SharedElNOMException
public void setDoubleAttribute(NOMView view,
java.lang.String name,
java.lang.Double value)
throws NOMException
setDoubleAttribute in interface NOMElement.SharedElNOMException
public void removeAttribute(NOMView view,
java.lang.String name)
throws NOMException
removeAttribute in interface NOMElement.SharedElNOMException
public void addAttribute(NOMView view,
NOMAttribute attribute)
throws NOMException
addAttribute in interface NOMElement.SharedElNOMException
public void addPointer(NOMView view,
NOMPointer pointer)
throws NOMException
addPointer in interface NOMElement.SharedElNOMException
public void removePointer(NOMView view,
NOMPointer pointer)
throws NOMException
removePointer in interface NOMElement.SharedElNOMException
public void addFirstChild(NOMView view,
NOMElement child)
throws NOMException
addFirstChild in interface NOMElement.SharedElNOMException
public void addLastChild(NOMView view,
NOMElement child)
throws NOMException
addLastChild in interface NOMElement.SharedElNOMException
public void addChildBefore(NOMView view,
NOMElement oldchild,
NOMElement newchild)
throws NOMException
addChildBefore in interface NOMElement.SharedElNOMException
public void addChildAfter(NOMView view,
NOMElement oldchild,
NOMElement newchild)
throws NOMException
addChildAfter in interface NOMElement.SharedElNOMException
public void removeChild(NOMView view,
NOMElement child)
throws NOMException
removeChild in interface NOMElement.SharedElNOMException
public void deleteChild(NOMView view,
NOMElement child)
throws NOMException
deleteChild in interface NOMElement.SharedElNOMException
public void addChild(NOMView view,
NOMElement child)
throws NOMException
addChild in interface NOMElement.SharedElNOMException
public void addChildAboveChildren(NOMView view,
NOMElement newchild,
java.util.List old_children)
throws NOMException
addChildAboveChildren in interface NOMElement.SharedElNOMException
public void removeParentAndAdjust(NOMView view,
NOMElement par)
throws NOMException
removeParentAndAdjust in interface NOMElement.SharedElNOMException
public void insertParent(NOMView view,
NOMElement newparent,
NOMElement oldparent)
throws NOMException
insertParent in interface NOMElement.SharedElNOMException
public void setText(NOMView view,
java.lang.String chars)
throws NOMException
setText in interface NOMElement.SharedElNOMException
public void setStartTime(NOMView view,
double st)
throws NOMException
setStartTime in interface NOMElement.SharedElNOMException
public void setEndTime(NOMView view,
double et)
throws NOMException
setEndTime in interface NOMElement.SharedElNOMException
public void addToCorpus(NOMView view)
throws NOMException
addToCorpus in interface NOMElement.SharedElNOMException
public void addBeforeSibling(NOMView view,
NOMElement sibling)
throws NOMException
addBeforeSibling in interface NOMElement.SharedElNOMException
public void addAfterSibling(NOMView view,
NOMElement sibling)
throws NOMException
addAfterSibling in interface NOMElement.SharedElNOMException
public void addExternalPointer(NOMView view,
java.lang.String role,
java.lang.String value)
throws NOMException
addExternalPointer in interface NOMElement.SharedElNOMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||