|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.misc.GenericScheherID
story.scheherazade.misc.NounName
public class NounName
Extension of GenericScheherID that semantically represents the name of a Noun.
Constructor Summary | |
---|---|
NounName(NounName name,
NounType nounType)
Constructor used internally that provides some metadata about the named noun. |
|
NounName(java.lang.String name,
NounFlavor flavor)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
NounFlavor |
getNounFlavor()
|
GenericScheherID |
getType()
Get the GenericScheherID's type (or supertype, if it's already a type). |
WordNetOffset |
getWordNetOffset()
Get the GenericScheherID's WordNet synset offset |
boolean |
isAnonymous()
|
java.lang.StringBuffer |
render()
Render the ID in a StringBuffer. |
Methods inherited from class story.scheherazade.misc.GenericScheherID |
---|
equals, getIDType, isEveryType, isGenericType, isGroupType, isUniversalType, toRawString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface story.scheherazade.misc.ScheherIDWithType |
---|
isUniversalType |
Constructor Detail |
---|
public NounName(java.lang.String name, NounFlavor flavor) throws Scheherexception
Scheherexception
public NounName(NounName name, NounType nounType) throws Scheherexception
Scheherexception
Method Detail |
---|
public GenericScheherID getType()
ScheherIDWithType
getType
in interface ScheherIDWithType
public java.lang.StringBuffer render() throws Scheherexception
GenericScheherID
render
in interface RenderableObject
render
in class GenericScheherID
Scheherexception
public int compareTo(java.lang.Object other) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
compareTo
in class GenericScheherID
java.lang.ClassCastException
public boolean isAnonymous()
public NounFlavor getNounFlavor()
public WordNetOffset getWordNetOffset()
ScheherIDWithType
getWordNetOffset
in interface ScheherIDWithType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |