|
|||||||||
| 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 NOMElementsetStringAttribute in class NOMWriteElementNOMException
public void setDoubleAttribute(java.lang.String name,
java.lang.Double value)
throws NOMException
setDoubleAttribute in interface NOMElementsetDoubleAttribute in class NOMWriteElementNOMException
public void addAttribute(NOMAttribute attribute)
throws NOMException
addAttribute in interface NOMElementaddAttribute in class NOMWriteElementNOMException
public void removeAttribute(java.lang.String name)
throws NOMException
removeAttribute in interface NOMElementremoveAttribute in class NOMWriteElementNOMException
public void addPointer(NOMPointer pointer)
throws NOMException
addPointer in interface NOMElementaddPointer in class NOMWriteElementNOMException
public void removePointer(NOMPointer pointer)
throws NOMException
removePointer in interface NOMElementremovePointer in class NOMWriteElementNOMException
public void setStartTime(double time)
throws NOMException
setStartTime in interface NOMElementsetStartTime in class NOMWriteElementNOMException
public void setEndTime(double time)
throws NOMException
setEndTime in interface NOMElementsetEndTime in class NOMWriteElementNOMException
public void addFirstChild(NOMElement child)
throws NOMException
addFirstChild in interface NOMElementaddFirstChild in class NOMWriteElementNOMException
public void addLastChild(NOMElement child)
throws NOMException
addLastChild in interface NOMElementaddLastChild in class NOMWriteElementNOMException
public void addChildBefore(NOMElement oldchild,
NOMElement newchild)
throws NOMException
addChildBefore in interface NOMElementaddChildBefore in class NOMWriteElementNOMException
public void addChildAfter(NOMElement oldchild,
NOMElement newchild)
throws NOMException
addChildAfter in interface NOMElementaddChildAfter in class NOMWriteElementNOMException
public void removeChild(NOMElement child)
throws NOMException
removeChild in interface NOMElementremoveChild in class NOMWriteElementNOMException
public void deleteChild(NOMElement child)
throws NOMException
deleteChild in interface NOMElementdeleteChild in class NOMWriteElementNOMException
public void setText(java.lang.String chars)
throws NOMException
setText in interface NOMElementsetText in class NOMWriteElementNOMException
public void appendText(java.lang.String chars)
throws NOMException
appendText in interface NOMElementappendText in class NOMWriteElementNOMExceptionpublic void setName(java.lang.String name)
setName in interface NOMElementsetName in class NOMWriteElementpublic void setGVM(java.lang.String name)
setGVM in interface NOMElementsetGVM in class NOMWriteElement
public void addToCorpus()
throws NOMException
addToCorpus in interface NOMElementaddToCorpus in class NOMWriteElementNOMException
public void addBeforeSibling(NOMElement sibling)
throws NOMException
addBeforeSibling in interface NOMElementaddBeforeSibling in class NOMWriteElementNOMException
public void addAfterSibling(NOMElement sibling)
throws NOMException
addAfterSibling in interface NOMElementaddAfterSibling in class NOMWriteElementNOMException
public void addChild(NOMElement child)
throws NOMException
addChild in interface NOMElementaddChild in class NOMWriteElementNOMExceptionpublic NOMElement.SharedEl getShared()
getShared in interface NOMElementgetShared in class NOMWriteElementpublic void setComment(java.lang.String comment)
setComment in interface NOMElementsetComment in class NOMWriteElementpublic java.lang.String getLink()
getLink in interface NOMElementgetLink in class NOMWriteElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||