|
||||||||||
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.NounType
public class NounType
An class for GenericScheherIDs for the noun type classes in particular (locationType, propType, characterType).
Field Summary | |
---|---|
static NodeID |
GROUP_BEHAVIOR_NODEID
|
static NodeID |
GROUP_CHARACTER_NODEID
|
static NodeID |
GROUP_LOCATION_NODEID
|
static NodeID |
GROUP_PROP_NODEID
|
static NodeID |
PROTOTYPE_BEHAVIOR_NODEID
|
static NodeID |
PROTOTYPE_CHARACTER_NODEID
|
static NodeID |
PROTOTYPE_LOCATION_NODEID
|
static NodeID |
PROTOTYPE_NOUN_NODEID
|
static NodeID |
PROTOTYPE_PROP_NODEID
|
static NodeID |
PROTOTYPE_QUALITY_NODEID
|
Constructor Summary | |
---|---|
NounType(NounFlavor flavor,
java.lang.String name)
|
|
NounType(NounType noun,
NounType supertype,
java.lang.String menuName,
WordNetOffset offset,
java.lang.String pluralForm,
boolean proper,
PropDiscreteness discreteness,
CharacterGender gender)
Constructor that adds metadata to a basic descriptor. |
Method Summary | |
---|---|
static boolean |
allowsGroups(NounFlavor flavor)
|
int |
compareTo(java.lang.Object other)
|
static java.lang.String |
getBoundaryString(NounFlavor flavor)
|
PropDiscreteness |
getDiscreteness()
|
CharacterGender |
getGender()
|
static NodeAddress |
getGroupNodeAddress(NounFlavor flavor)
|
static NounType |
getGroupNounType(NounFlavor flavor)
|
java.lang.String |
getMenuName()
|
NounFlavor |
getNounFlavor()
|
static LinkType |
getNounFlavorDeclarationLinkType(NounFlavor flavor)
|
static LinkType |
getNounFlavorDefinitionLinkType(NounFlavor flavor)
|
static NodeID |
getNounFlavorPrototypeNodeID(NounFlavor flavor)
|
java.lang.String |
getPluralForm()
|
boolean |
getProper()
|
GenericScheherID |
getType()
Get the GenericScheherID's type (or supertype, if it's already a type). |
static NodeAddress |
getUniversalNodeAddress(NounFlavor flavor)
|
static NounType |
getUniversalNounType(NounFlavor flavor)
|
WordNetOffset |
getWordNetOffset()
Get the GenericScheherID's WordNet synset offset |
boolean |
isCompleteType()
Returns true if this is a complete descriptor, with plural form, proper, and other metadata. |
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 |
Field Detail |
---|
public static final NodeID PROTOTYPE_CHARACTER_NODEID
public static final NodeID PROTOTYPE_PROP_NODEID
public static final NodeID PROTOTYPE_LOCATION_NODEID
public static final NodeID PROTOTYPE_QUALITY_NODEID
public static final NodeID PROTOTYPE_BEHAVIOR_NODEID
public static final NodeID GROUP_CHARACTER_NODEID
public static final NodeID GROUP_LOCATION_NODEID
public static final NodeID GROUP_PROP_NODEID
public static final NodeID GROUP_BEHAVIOR_NODEID
public static final NodeID PROTOTYPE_NOUN_NODEID
Constructor Detail |
---|
public NounType(NounFlavor flavor, java.lang.String name) throws Scheherexception
Scheherexception
public NounType(NounType noun, NounType supertype, java.lang.String menuName, WordNetOffset offset, java.lang.String pluralForm, boolean proper, PropDiscreteness discreteness, CharacterGender gender) throws Scheherexception
Scheherexception
Method Detail |
---|
public boolean isCompleteType()
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 GenericScheherID getType() throws Scheherexception
ScheherIDWithType
getType
in interface ScheherIDWithType
Scheherexception
public NounFlavor getNounFlavor()
public WordNetOffset getWordNetOffset() throws Scheherexception
ScheherIDWithType
getWordNetOffset
in interface ScheherIDWithType
Scheherexception
public PropDiscreteness getDiscreteness() throws Scheherexception
Scheherexception
public CharacterGender getGender() throws Scheherexception
Scheherexception
public java.lang.String getMenuName() throws Scheherexception
Scheherexception
public java.lang.String getPluralForm() throws Scheherexception
Scheherexception
public boolean getProper() throws Scheherexception
Scheherexception
public static java.lang.String getBoundaryString(NounFlavor flavor) throws Scheherexception
Scheherexception
public static NodeAddress getUniversalNodeAddress(NounFlavor flavor) throws Scheherexception
Scheherexception
public static NodeAddress getGroupNodeAddress(NounFlavor flavor) throws Scheherexception
Scheherexception
public static NounType getUniversalNounType(NounFlavor flavor) throws Scheherexception
Scheherexception
public static NounType getGroupNounType(NounFlavor flavor) throws Scheherexception
Scheherexception
public static boolean allowsGroups(NounFlavor flavor) throws Scheherexception
Scheherexception
public static NodeID getNounFlavorPrototypeNodeID(NounFlavor flavor) throws Scheherexception
Scheherexception
public static LinkType getNounFlavorDeclarationLinkType(NounFlavor flavor) throws Scheherexception
Scheherexception
public static LinkType getNounFlavorDefinitionLinkType(NounFlavor flavor) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |