vub.starlab.ontoserver.database.ontologyobjects
Class Lexon

java.lang.Object
  |
  +--vub.starlab.ontoserver.database.ontologyobjects.Lexon
All Implemented Interfaces:
ILexon, IOntologyObject

public class Lexon
extends java.lang.Object
implements ILexon


Constructor Summary
Lexon(ITerm firstTerm, java.lang.String role, ITerm secondTerm)
           
 
Method Summary
 ITerm getFirstTerm()
          Accessor method returning the first term of the lexon triple
 java.lang.String getRole()
          Return the role (relation) for this lexon
 ITerm getSecondTerm()
          Accessor method returning the second term of the lexon triple
 void print()
          Prints the content of the ontology object
 void setFirstTerm(ITerm firstTerm)
          Accessor method setting the first term for this lexon
 void setRole(java.lang.String role)
          Accessor method setting the role (relation) for this lexon
 void setSecondTerm(ITerm secondTerm)
          Accessor method setting the second term for this lexon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lexon

public Lexon(ITerm firstTerm,
             java.lang.String role,
             ITerm secondTerm)
Method Detail

print

public void print()
Description copied from interface: IOntologyObject
Prints the content of the ontology object
Specified by:
print in interface IOntologyObject

getFirstTerm

public ITerm getFirstTerm()
Description copied from interface: ILexon
Accessor method returning the first term of the lexon triple
Specified by:
getFirstTerm in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Returns:
ITerm object implementing the ITerm interface which is the first term of this lexon triple

getRole

public java.lang.String getRole()
Description copied from interface: ILexon
Return the role (relation) for this lexon
Specified by:
getRole in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Returns:
String the role for this lexon

getSecondTerm

public ITerm getSecondTerm()
Description copied from interface: ILexon
Accessor method returning the second term of the lexon triple
Specified by:
getSecondTerm in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Returns:
ITerm object implementing the ITerm interface which is the second term of this lexon triple

setFirstTerm

public void setFirstTerm(ITerm firstTerm)
Description copied from interface: ILexon
Accessor method setting the first term for this lexon
Specified by:
setFirstTerm in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Parameters:
FirstTerm - object implementing the ITerm interface which is to be first term for this lexon

setRole

public void setRole(java.lang.String role)
Description copied from interface: ILexon
Accessor method setting the role (relation) for this lexon
Specified by:
setRole in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Parameters:
Role - the role (relation) for this lexon

setSecondTerm

public void setSecondTerm(ITerm secondTerm)
Description copied from interface: ILexon
Accessor method setting the second term for this lexon
Specified by:
setSecondTerm in interface ILexon
Following copied from interface: vub.starlab.ontoserver.database.ontologyobjects.ILexon
Parameters:
SecondTerm - object implementing the ITerm interface which is to be second term for this lexon