|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.lexicon.Concept
public class Concept
A semantic concept which can be viewed as an abstract meaning of one or more words. Concepts in the STANDUP lexicon are taken directly from WordNet synsets.
Instances of this class are obtained by calling
Dictionary.getConcept(String)
, which accesses a serialized
hashtable, and thus does not require access to the SQL lexical database.
Concept
s are essentially read-only objects, they cannot be altered.
Field Summary | |
---|---|
private String |
cachedBriefGloss
|
private LexemeSet |
cachedLexemes
|
private String |
gloss
|
private String |
id
|
private String[] |
lexemeIDs
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Concept(String id,
String gloss,
String[] lexemeIDs)
Constructor that provides all necessary details. |
Method Summary | |
---|---|
int |
compareTo(Object arg0)
|
boolean |
equals(Object obj)
|
String |
getBriefGloss()
Returns a shortened version of the gloss, i.e. |
String |
getGloss()
Returns the full gloss of this Concept . |
String |
getID()
Returns the unique ID of this Concept . |
LexemeSet |
getLexemes()
Returns a LexemeSet of all Lexeme s that mean
this Concept . |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final String id
private final String gloss
private final String[] lexemeIDs
private transient String cachedBriefGloss
private transient LexemeSet cachedLexemes
Constructor Detail |
---|
public Concept(String id, String gloss, String[] lexemeIDs)
ProtoConcept.buildSerializedCache(String)
when building
the serialized hashtable of Concept
s to be used by
Dictionary
.
id
- unique ID -- see STANDUP lexical database documentation for
detailsgloss
- sentence describing this Concept
, e.g. a dictionary
definition, along with example usagelexemeIDs
- a String
array of IDs of Lexeme
s that mean
this Concept
Method Detail |
---|
public String getID()
Concept
.
public String getGloss()
Concept
.
public String getBriefGloss()
Concept
, excluding example usage.
public LexemeSet getLexemes()
LexemeSet
of all Lexeme
s that mean
this Concept
. This method actually creates a cached
LexemeSet
the first time it is called, and returns the same
instance on subsequent calls, so be sure to create a
LexemeSet.duplicate()
of it if you intend to modify it.
public int hashCode()
hashCode
in class Object
public int compareTo(Object arg0)
compareTo
in interface Comparable
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |