|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.site.elkb.Path
public class Path
Represents a path in Roget's Thesaurus between two words or phrases. This is mostly used in an old version of SemDist and may not be too useful.
Constructor Summary | |
---|---|
Path()
Default constructor. |
|
Path(java.util.ArrayList<java.lang.String> path)
Constructor that initialized this Path object with a Path. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
Compares two paths. |
java.lang.String |
getKeyWord1()
Returns the keyword of the the first word or phrase in this Path. |
java.lang.String |
getKeyWord2()
Returns the keyword of the the second word or phrase in this Path. |
java.lang.String |
getPath()
Returns the path between the first and second word or phrase. |
java.lang.String |
getPathInfo1()
Returns the location in the ontology of the first word or phrase in this Path. |
java.lang.String |
getPathInfo2()
Returns the location in the ontology of the second word or phrase in this Path. |
java.lang.String |
getPos1()
Returns the part-of-speech of the the first word or phrase in this Path. |
java.lang.String |
getPos2()
Returns the part-of-speech of the the second word or phrase in this Path. |
java.lang.String |
getWord1()
Returns the first word or phrase in this Path. |
java.lang.String |
getWord2()
Returns the second word or phrase in this Path. |
int |
length()
Returns the number of elements in this Path. |
int |
size()
Returns the length in this Path. |
java.lang.String |
toString()
Converts to a string representation the Path object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Path()
public Path(java.util.ArrayList<java.lang.String> path)
path
- Method Detail |
---|
public int length()
public int size()
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public java.lang.String getKeyWord1()
public java.lang.String getPos1()
public java.lang.String getKeyWord2()
public java.lang.String getPos2()
public java.lang.String getPathInfo1()
public java.lang.String getPathInfo2()
public java.lang.String getWord1()
public java.lang.String getWord2()
public java.lang.String getPath()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |