|
|||||||||
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
net.sourceforge.nite.nom.nomread.impl.NOMReadElement
public abstract class NOMReadElement
Extends the nomread version with methods for adding & deleting elements & attributes
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sourceforge.nite.nom.nomwrite.impl.NOMWriteElement |
---|
NOMWriteElement.SharedElement, NOMWriteElement.XMLComment |
Nested classes/interfaces inherited from interface net.sourceforge.nite.nom.nomwrite.NOMElement |
---|
NOMElement.SharedEl |
Field Summary |
---|
Fields inherited from interface net.sourceforge.nite.nom.nomwrite.NOMElement |
---|
FEATURAL_LAYER, IMPLICIT_ORDER, STRUCTURAL_LAYER, TEMPORAL_ORDER, TIME_ALIGNED_LAYER, UNORDERED, UNTIMED |
Method Summary | |
---|---|
void |
addAfterSibling(NOMElement sibling)
add the element as a sibling of the given element. |
void |
addAttribute(NOMAttribute attribute)
add an attribute to the element or if it exists already, just set it |
void |
addBeforeSibling(NOMElement sibling)
add the element as a sibling of the given element. |
void |
addChild(NOMElement child)
adds a child to this element. |
void |
addChildAfter(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(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 |
addFirstChild(NOMElement child)
adds the NOMElement as the first child |
void |
addLastChild(NOMElement child)
adds the NOMElement as the last child |
void |
addPointer(NOMPointer pointer)
add a pointer to the element |
void |
addToCorpus()
add an element to the corpus with no information about location. |
void |
appendText(java.lang.String chars)
appends to the textual content of an element. |
void |
deleteChild(NOMElement child)
Delete an element. |
java.lang.String |
getLink()
returns a string containing a full Link to this element including filename - we override the nomwrite version to add coder-specific path in case we're in reliability mode. |
NOMElement.SharedEl |
getShared()
return a shared view of this element which simply provides utility functions for editing the element without thinking about locking and unlocking the corpus. |
void |
removeAttribute(java.lang.String name)
Remove an attribute completely from an element |
void |
removeChild(NOMElement child)
Remove a nite:child from an element without actually deleting the element referred to. |
void |
removePointer(NOMPointer pointer)
remove a pointer from the element |
void |
setComment(java.lang.String comment)
set the contents of the reserved comment attribute |
void |
setDoubleAttribute(java.lang.String name,
java.lang.Double value)
Set the value of a named Double attribute |
void |
setEndTime(double time)
Set the end time of this element. |
void |
setGVM(java.lang.String name)
sets the Graphical Visual Markup string for this element |
void |
setName(java.lang.String name)
sets the name of the element - not commonly used! |
void |
setStartTime(double time)
Set the start time of this element. |
void |
setStringAttribute(java.lang.String name,
java.lang.String value)
Set the value of a named string attribute |
void |
setText(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 |
Method Detail |
---|
public void setStringAttribute(java.lang.String name, java.lang.String value) throws NOMException
setStringAttribute
in interface NOMElement
setStringAttribute
in class NOMWriteElement
NOMException
public void setDoubleAttribute(java.lang.String name, java.lang.Double value) throws NOMException
setDoubleAttribute
in interface NOMElement
setDoubleAttribute
in class NOMWriteElement
NOMException
public void addAttribute(NOMAttribute attribute) throws NOMException
addAttribute
in interface NOMElement
addAttribute
in class NOMWriteElement
NOMException
public void removeAttribute(java.lang.String name) throws NOMException
removeAttribute
in interface NOMElement
removeAttribute
in class NOMWriteElement
NOMException
public void addPointer(NOMPointer pointer) throws NOMException
addPointer
in interface NOMElement
addPointer
in class NOMWriteElement
NOMException
public void removePointer(NOMPointer pointer) throws NOMException
removePointer
in interface NOMElement
removePointer
in class NOMWriteElement
NOMException
public void setStartTime(double time) throws NOMException
setStartTime
in interface NOMElement
setStartTime
in class NOMWriteElement
NOMException
public void setEndTime(double time) throws NOMException
setEndTime
in interface NOMElement
setEndTime
in class NOMWriteElement
NOMException
public void addFirstChild(NOMElement child) throws NOMException
addFirstChild
in interface NOMElement
addFirstChild
in class NOMWriteElement
NOMException
public void addLastChild(NOMElement child) throws NOMException
addLastChild
in interface NOMElement
addLastChild
in class NOMWriteElement
NOMException
public void addChildBefore(NOMElement oldchild, NOMElement newchild) throws NOMException
addChildBefore
in interface NOMElement
addChildBefore
in class NOMWriteElement
NOMException
public void addChildAfter(NOMElement oldchild, NOMElement newchild) throws NOMException
addChildAfter
in interface NOMElement
addChildAfter
in class NOMWriteElement
NOMException
public void removeChild(NOMElement child) throws NOMException
removeChild
in interface NOMElement
removeChild
in class NOMWriteElement
NOMException
public void deleteChild(NOMElement child) throws NOMException
deleteChild
in interface NOMElement
deleteChild
in class NOMWriteElement
NOMException
public void setText(java.lang.String chars) throws NOMException
setText
in interface NOMElement
setText
in class NOMWriteElement
NOMException
public void appendText(java.lang.String chars) throws NOMException
appendText
in interface NOMElement
appendText
in class NOMWriteElement
NOMException
public void setName(java.lang.String name)
setName
in interface NOMElement
setName
in class NOMWriteElement
public void setGVM(java.lang.String name)
setGVM
in interface NOMElement
setGVM
in class NOMWriteElement
public void addToCorpus() throws NOMException
addToCorpus
in interface NOMElement
addToCorpus
in class NOMWriteElement
NOMException
public void addBeforeSibling(NOMElement sibling) throws NOMException
addBeforeSibling
in interface NOMElement
addBeforeSibling
in class NOMWriteElement
NOMException
public void addAfterSibling(NOMElement sibling) throws NOMException
addAfterSibling
in interface NOMElement
addAfterSibling
in class NOMWriteElement
NOMException
public void addChild(NOMElement child) throws NOMException
addChild
in interface NOMElement
addChild
in class NOMWriteElement
NOMException
public NOMElement.SharedEl getShared()
getShared
in interface NOMElement
getShared
in class NOMWriteElement
public void setComment(java.lang.String comment)
setComment
in interface NOMElement
setComment
in class NOMWriteElement
public java.lang.String getLink()
getLink
in interface NOMElement
getLink
in class NOMWriteElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |