ucot.parser
Class Link

java.lang.Object
  extended by ucot.parser.Link

public class Link
extends java.lang.Object

Named link that points to some word. This class is used to mark subjects and objects and other structural information in sentence.

See Also:
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

name

private java.lang.String name
The name of the link.

See Also:
ParserInterface.SUBJECT, ParserInterface.OBJECT

to

private Word to
The target word this class poitns to.

Constructor Detail

Link

public Link(java.lang.String name,
            Word to)
Creates new named link that points to given word.

Parameters:
name - The name of the link.
to - The target word.
Method Detail

getName

public java.lang.String getName()
Returns the name of the link.

Returns:
The name of the link.

setName

public void setName(java.lang.String name)
Sets the name of the link.

Parameters:
name -

getTo

public Word getTo()
Returns the target of the link.

Returns:
The target of the link.

setTo

public void setTo(Word to)
Sets the target of the link.

Parameters:
to - The target for the link.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object