java.lang.Objectucot.parser.Link
public class Link
Named link that points to some word. This class is used to mark subjects and objects and other structural information in sentence.
Word
,
Sentence
Field Summary | |
---|---|
private java.lang.String |
name
The name of the link. |
private Word |
to
The target word this class poitns to. |
Constructor Summary | |
---|---|
Link(java.lang.String name,
Word to)
Creates new named link that points to given word. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of the link. |
Word |
getTo()
Returns the target of the link. |
void |
setName(java.lang.String name)
Sets the name of the link. |
void |
setTo(Word to)
Sets the target of the link. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
ParserInterface.SUBJECT
,
ParserInterface.OBJECT
private Word to
Constructor Detail |
---|
public Link(java.lang.String name, Word to)
name
- The name of the link.to
- The target word.Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public Word getTo()
public void setTo(Word to)
to
- The target for the link.public java.lang.String toString()
toString
in class java.lang.Object