net.sourceforge.nite.nom.nomread.impl
Class NOMReadPointer
java.lang.Object
net.sourceforge.nite.nom.nomwrite.impl.NOMWritePointer
net.sourceforge.nite.nom.nomread.impl.NOMReadPointer
- All Implemented Interfaces:
- NOMPointer
public class NOMReadPointer
- extends NOMWritePointer
Extends the nomwrite version restricting methods for editing pointers
- Author:
- jonathan
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOMReadPointer
public NOMReadPointer(NOMCorpus corpus,
java.lang.String role,
NOMElement source,
java.lang.String targetstr)
NOMReadPointer
public NOMReadPointer(NOMCorpus corpus,
java.lang.String role,
NOMElement source,
NOMElement target)
setToElement
public void setToElement(NOMElement target)
throws NOMException
- set the element to which this pointer points
- Specified by:
setToElement
in interface NOMPointer
- Overrides:
setToElement
in class NOMWritePointer
- Throws:
NOMException
getShared
public NOMPointer.SharedPoint getShared()
- return null since this is a read-only corpus.
- Specified by:
getShared
in interface NOMPointer
- Overrides:
getShared
in class NOMWritePointer
setComment
public void setComment(java.lang.String comment)
- set the contents of the reserved comment attribute - do
nothing since we're read-only.
- Specified by:
setComment
in interface NOMPointer
- Overrides:
setComment
in class NOMWritePointer