ca.site.elkb
Class SemRel

java.lang.Object
  extended by ca.site.elkb.Reference
      extended by ca.site.elkb.SemRel
All Implemented Interfaces:
java.io.Serializable

public class SemRel
extends Reference

Represents a Roget's Thesaurus relation between a word or phrase. This can be a Cross-reference or a See reference. For example:

Relation types currently used by the ELKB are cref and see.

Version:
1.4 2013
Author:
Mario Jarmasz and Alistsair Kennedy
See Also:
Serialized Form

Constructor Summary
SemRel()
          Default constructor.
SemRel(java.lang.String t, int headNum, java.lang.String refName)
          Constructor which sets the relation type, Head number and Reference name.
SemRel(java.lang.String t, int headNum, java.lang.String refName, java.lang.String pos, int paraNum, int sgNum)
          Constructor which sets the relation type, Head number and Reference name.
 
Method Summary
 java.lang.String getType()
          Returns the relation type.
 void print()
          Prints this relation to the standard output.
 void setType(java.lang.String t)
          Sets the relation type.
 java.lang.String toString()
          Converts to a string representation the SemRel object.
 
Methods inherited from class ca.site.elkb.Reference
getHeadNum, getIndexEntry, getPos, getRefName, setHeadNum, setIndexEntry, setPos, setRefName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemRel

public SemRel()
Default constructor.


SemRel

public SemRel(java.lang.String t,
              int headNum,
              java.lang.String refName)
Constructor which sets the relation type, Head number and Reference name.

Parameters:
t -
headNum -
refName -

SemRel

public SemRel(java.lang.String t,
              int headNum,
              java.lang.String refName,
              java.lang.String pos,
              int paraNum,
              int sgNum)
Constructor which sets the relation type, Head number and Reference name.

Parameters:
t -
headNum -
refName -
pos -
paraNum -
sgNum -
Method Detail

getType

public java.lang.String getType()
Returns the relation type.

Returns:
returns type

setType

public void setType(java.lang.String t)
Sets the relation type.

Parameters:
t -

toString

public java.lang.String toString()
Converts to a string representation the SemRel object.

Overrides:
toString in class Reference

print

public void print()
Prints this relation to the standard output.

Overrides:
print in class Reference