|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.TypeHierarchy | +--notio.ConceptTypeHierarchy
The concept type hierarchy class.
Field Summary | |
static java.lang.String |
ABSURD_TYPE_LABEL
The predefined type label for the absurd type. |
static java.lang.String |
UNIVERSAL_TYPE_LABEL
The predefined type label for the universal type. |
Constructor Summary | |
ConceptTypeHierarchy()
Constructs a new concept type hierarchy. |
Method Summary | |
void |
addSubTypesToType(ConceptType subjectType,
ConceptType[] newSubTypes)
Adds the specified list of subtypes as sub types to the subject type. |
void |
addSubTypeToType(ConceptType subjectType,
ConceptType newSubType)
Adds the specified subtype to the subject type. |
void |
addSuperTypesToType(ConceptType subjectType,
ConceptType[] newSuperTypes)
Adds the specified list of supertypes as super types to the subject type. |
void |
addSuperTypeToType(ConceptType subjectType,
ConceptType newSuperType)
Adds the specified supertype to the subject type. |
void |
addTypeToHierarchy(ConceptType newType)
Adds a new type to this hierarchy with the Universal type as its only supertype, and the Absurd type as its only subtype. |
void |
addTypeToHierarchy(ConceptType newType,
ConceptType[] supertypes,
ConceptType[] subtypes)
Adds a new type to the hierarchy with the specified supertypes and subtypes. |
void |
addTypeToHierarchy(ConceptType newType,
ConceptType supertype,
ConceptType subtype)
Adds a new type to this hierarchy with the specified supertype and subtype. |
boolean |
getCaseSensitiveLabels()
Returns true if the processing of type labels in this hierarchy is case-sensitive. |
ConceptType[] |
getImmediateSubTypesOf(ConceptType subjectType)
Returns the immediate subtypes of the subject type in no particular order. |
ConceptType[] |
getImmediateSuperTypesOf(ConceptType subjectType)
Returns the immediate subtypes of the subject type in no particular order. |
ConceptType[] |
getProperSubTypesOf(ConceptType subjectType)
Returns all the subtypes of the subject type, not just the immediate subtypes, in no particular order. |
ConceptType[] |
getProperSuperTypesOf(ConceptType subjectType)
Returns all the supertypes of the subject type, not just the immediate supertypes, in no particular order. |
ConceptType |
getTypeByLabel(java.lang.String label)
Looks up and returns the type object associated with the specified label. |
ConceptType[] |
getUnlabelledTypes()
Returns all unlabelled types in this hierarchy in no particular order. |
boolean |
isProperSubTypeOf(ConceptType subject,
ConceptType object)
Determines whether subject is a subtype of object. |
boolean |
isProperSuperTypeOf(ConceptType subject,
ConceptType object)
Determines whether subject is a proper supertype of object. |
boolean |
isSubTypeOf(ConceptType subject,
ConceptType object)
Determines whether subject is a subtype of object. |
boolean |
isSuperTypeOf(ConceptType subject,
ConceptType object)
Determines whether subject is a supertype of object. |
void |
removeTypeFromHierarchy(ConceptType deadType)
Removes a type from this hierarchy. |
void |
setCaseSensitiveLabels(boolean flag)
Sets a flag indicating whether or not the processing of type labels within this hierarchy is case-sensitive. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String UNIVERSAL_TYPE_LABEL
public static final java.lang.String ABSURD_TYPE_LABEL
Constructor Detail |
public ConceptTypeHierarchy()
Method Detail |
public void addTypeToHierarchy(ConceptType newType, ConceptType[] supertypes, ConceptType[] subtypes) throws TypeAddError, TypeChangeError
newType
- the type being added.supertypes
- the array of supertypes to be used, or null (assumes
universal type as only supertype).subtypes
- the array of subtypes to be used, or null (assumes
absurd type as only subtype).public void addTypeToHierarchy(ConceptType newType, ConceptType supertype, ConceptType subtype) throws TypeAddError, TypeChangeError
newType
- the type being added.supertype
- the single supertype to be used, or null (assumes
universal type as subtype).subtype
- the single subtype to be used, or null (assumes
absurd type as subtype).public void addTypeToHierarchy(ConceptType newType) throws TypeAddError
newType
- the type being added.public void addSuperTypesToType(ConceptType subjectType, ConceptType[] newSuperTypes) throws TypeChangeError
subjectType
- the type having supertypes added.newSuperTypes
- the array of types to be added as supertypes.public void addSuperTypeToType(ConceptType subjectType, ConceptType newSuperType) throws TypeChangeError
subjectType
- the type having a supertype added.newSuperType
- the supertype to be added.public void addSubTypesToType(ConceptType subjectType, ConceptType[] newSubTypes) throws TypeChangeError
subjectType
- the type having subtypes added.newSubTypes
- the array of types to be added as subtypes.public void addSubTypeToType(ConceptType subjectType, ConceptType newSubType) throws TypeChangeError
subjectType
- the type having a subtype added.newSubType
- the subtype to be added.public void removeTypeFromHierarchy(ConceptType deadType) throws TypeRemoveError
deadType
- the type being removed.public ConceptType getTypeByLabel(java.lang.String label)
label
- the label used to lookup.public ConceptType[] getUnlabelledTypes()
public ConceptType[] getProperSuperTypesOf(ConceptType subjectType)
subjectType
- the type whose supertypes will be returned.public ConceptType[] getProperSubTypesOf(ConceptType subjectType)
subjectType
- the type whose subtypes will be returned.public ConceptType[] getImmediateSuperTypesOf(ConceptType subjectType)
subjectType
- the type whose immediate subtypes will be returned.public ConceptType[] getImmediateSubTypesOf(ConceptType subjectType)
subjectType
- the type whose immediate subtypes will be returned.public boolean isSubTypeOf(ConceptType subject, ConceptType object)
subject
- the potential subtype being tested.object
- the potential supertype being tested.public boolean isSuperTypeOf(ConceptType subject, ConceptType object)
subject
- the potential supertype being tested.object
- the potential subtype being tested.public boolean isProperSubTypeOf(ConceptType subject, ConceptType object)
subject
- the potential subtype being tested.object
- the potential supertype being tested.public boolean isProperSuperTypeOf(ConceptType subject, ConceptType object)
subject
- the potential supertype being tested.object
- the potential subtype being tested.public void setCaseSensitiveLabels(boolean flag)
flag
- the flag setting for case-sensitivity.public boolean getCaseSensitiveLabels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |