|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.nom.nomwrite.impl.NOMWritePointer
public class NOMWritePointer
A simple implementation of a pointer in a NOM corpus.
Nested Class Summary | |
---|---|
class |
NOMWritePointer.SharedPointer
This inner class provides a utility function for shared NOM users |
Nested classes/interfaces inherited from interface net.sourceforge.nite.nom.nomwrite.NOMPointer |
---|
NOMPointer.SharedPoint |
Constructor Summary | |
---|---|
NOMWritePointer(NOMCorpus corpus,
java.lang.String role,
NOMElement source,
NOMElement target)
|
|
NOMWritePointer(NOMCorpus corpus,
java.lang.String role,
NOMElement source,
java.lang.String targetstr)
|
Method Summary | |
---|---|
java.lang.String |
getComment()
returns the contents of the reserved comment String (or null if not set) |
NOMCorpus |
getCorpus()
Simply return the Corpus that this pointer is a part of |
NOMElement |
getFromElement()
returns the element which is the source of the pointer |
java.lang.String |
getLink()
Return the full link to the pointed to element |
java.lang.String |
getRole()
returns the role of the pointer |
NOMPointer.SharedPoint |
getShared()
return a shared view of this pointer which simply provides a utility function for editing the pointer without thinking about locking and unlocking the corpus. |
NOMElement |
getToElement()
returns the element which is the destination of the pointer |
java.lang.String |
getToElementString()
returns the element which is the destination of the pointer as a string (the original href string from the loaded corpus) |
void |
setComment(java.lang.String comment)
set the contents of the reserved comment attribute |
void |
setRole(java.lang.String role)
set the role of this pointer |
void |
setToElement(NOMElement targ)
set the element to which this pointer points |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NOMWritePointer(NOMCorpus corpus, java.lang.String role, NOMElement source, java.lang.String targetstr)
public NOMWritePointer(NOMCorpus corpus, java.lang.String role, NOMElement source, NOMElement target)
Method Detail |
---|
public java.lang.String getRole()
getRole
in interface NOMPointer
public NOMElement getFromElement()
getFromElement
in interface NOMPointer
public NOMElement getToElement()
getToElement
in interface NOMPointer
public NOMCorpus getCorpus()
public void setRole(java.lang.String role)
setRole
in interface NOMPointer
public void setToElement(NOMElement targ) throws NOMException
setToElement
in interface NOMPointer
NOMException
public java.lang.String getToElementString()
getToElementString
in interface NOMPointer
public java.lang.String getLink()
getLink
in interface NOMPointer
public NOMPointer.SharedPoint getShared()
getShared
in interface NOMPointer
public java.lang.String getComment()
getComment
in interface NOMPointer
public void setComment(java.lang.String comment)
setComment
in interface NOMPointer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |