|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.Type | +--notio.ConceptType
The concept type class. This class encapsulates all available information about a concept type. The type can be defined by a label and/or a type definition.
Constructor Summary | |
ConceptType(ConceptTypeDefinition newDefinition)
Constructs an unlabelled ConceptType with the specified type definition. |
|
ConceptType(java.lang.String newLabel)
Constructs a labelled ConceptType with the specified type label and no type definition. |
|
ConceptType(java.lang.String newLabel,
ConceptTypeDefinition newDefinition)
Constructs a labelled ConceptType with the specified type label and type definition. |
Method Summary | |
java.lang.String |
getComment()
Returns the comment string for this type. |
ConceptType[] |
getImmediateSubTypes()
Returns the immediate subtypes of this type. |
ConceptType[] |
getImmediateSuperTypes()
Returns the immediate supertypes of this type. |
java.lang.String |
getLabel()
Returns the type label for this type. |
ConceptType[] |
getProperSubTypes()
Returns all subtypes of this type. |
ConceptType[] |
getProperSuperTypes()
Returns all supertypes of this type. |
ConceptTypeDefinition |
getTypeDefinition()
Returns the type definition for this type (if any). |
boolean |
hasProperSubType(ConceptType queryType)
Tests whether the specified type is a proper subtype of this type. |
boolean |
hasProperSuperType(ConceptType queryType)
Tests whether the specified type is a proper supertype of this type. |
boolean |
hasSubType(ConceptType queryType)
Tests whether the specified type is a subtype of this type. |
boolean |
hasSuperType(ConceptType queryType)
Tests whether the specified type is a supertype of this type. |
static boolean |
matchConceptTypes(ConceptType first,
ConceptType second,
MatchingScheme matchingScheme)
Compares two concept types to decide if they match. |
void |
setComment(java.lang.String newComment)
Sets the comment string for this type. |
void |
setLabel(java.lang.String newLabel)
Sets the type label for this type. |
void |
setTypeDefinition(ConceptTypeDefinition newDefinition)
Sets the type definition for this type. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ConceptType(java.lang.String newLabel, ConceptTypeDefinition newDefinition)
newLabel
- the type label for this type.newDefinition
- the type definition for this type.public ConceptType(java.lang.String newLabel)
newLabel
- the type label for this type.public ConceptType(ConceptTypeDefinition newDefinition)
newDefinition
- the type definition for this type.Method Detail |
public void setLabel(java.lang.String newLabel) throws TypeChangeError
newLabel
- the string that is the label for this type.public java.lang.String getLabel()
public void setTypeDefinition(ConceptTypeDefinition newDefinition)
newDefinition
- the new type definition for this type.public ConceptTypeDefinition getTypeDefinition()
public ConceptType[] getProperSubTypes()
public ConceptType[] getProperSuperTypes()
public ConceptType[] getImmediateSubTypes()
public ConceptType[] getImmediateSuperTypes()
public boolean hasSubType(ConceptType queryType)
queryType
- the type being tested.public boolean hasSuperType(ConceptType queryType)
queryType
- the type being tested.public boolean hasProperSubType(ConceptType queryType)
queryType
- the type being tested.public boolean hasProperSuperType(ConceptType queryType)
queryType
- the type being tested.public static boolean matchConceptTypes(ConceptType first, ConceptType second, MatchingScheme matchingScheme)
first
- the first concept type being matched.second
- the second concept type being matched.matchingScheme
- the matching scheme that determines how the match is performed.public void setComment(java.lang.String newComment)
newComment
- the new comment string for this type.public java.lang.String getComment()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |