|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ontopoly.model.Topic ontopoly.model.AbstractTypingTopic ontopoly.model.TopicType
public class TopicType
INTERNAL: Represents a topic type.
Constructor Summary | |
---|---|
TopicType(TopicIF currTopic,
TopicMap tm)
|
Method Summary | |
---|---|
FieldAssignment |
addField(FieldDefinition fieldDefinition)
|
AssociationType |
createAssociationType()
|
Topic |
createInstance(java.lang.String name)
Create a new topic instance of this topic type. |
NameType |
createNameType()
|
OccurrenceType |
createOccurrenceType()
|
QueryField |
createQueryField()
|
java.util.Collection<TopicType> |
getAllSubTypes()
Gets the all subtypes (direct and indirect) of this type. |
java.util.Collection<? extends FieldDefinition> |
getDeclaredByFields()
Returns the field definitions that are declared for this typing topic. |
java.util.Collection<TopicType> |
getDirectSubTypes()
Gets the direct subtypes of this type. |
java.util.List<FieldAssignment> |
getFieldAssignments()
Returns the FieldAssignments for this topic type. |
java.util.List<FieldAssignment> |
getFieldAssignments(FieldsView view)
|
java.util.List<FieldsView> |
getFieldViews(FieldsView fieldsView)
|
java.util.List<Topic> |
getInstances()
Returns the set of all instances of this topic type. |
LocatorIF |
getLocatorIF()
Gets the LocatorIF for this typing topic. |
TopicType |
getSuperType()
Returns the supertype of this type, or null if there is none. |
boolean |
hasHierarchy()
Tests whether this topic type has a hierarchy-forming association type attached to it. |
boolean |
isAbstract()
Tests whether this topic type is abstract. |
boolean |
isLargeInstanceSet()
Tests whether this topic type has a large instance set. |
void |
removeField(FieldDefinition fieldDefinition)
|
java.util.List<Topic> |
searchAll(java.lang.String searchTerm)
Returns the topics that matches the given search term. |
Methods inherited from class ontopoly.model.AbstractTypingTopic |
---|
isHidden, isReadOnly |
Methods inherited from class ontopoly.model.Topic |
---|
addTopicType, copyCharacteristics, equals, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, hashCode, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TopicType(TopicIF currTopic, TopicMap tm)
Method Detail |
---|
public boolean isAbstract()
public boolean isLargeInstanceSet()
public boolean hasHierarchy()
public java.util.Collection<TopicType> getDirectSubTypes()
public java.util.Collection<TopicType> getAllSubTypes()
public TopicType getSuperType()
public FieldAssignment addField(FieldDefinition fieldDefinition)
public void removeField(FieldDefinition fieldDefinition)
public NameType createNameType()
public QueryField createQueryField()
public OccurrenceType createOccurrenceType()
public AssociationType createAssociationType()
public java.util.List<FieldAssignment> getFieldAssignments()
Note that if isSystemTopic(), the list of fields will always contain the default name type with the "exactly one" cardinality at the very top
public java.util.List<FieldAssignment> getFieldAssignments(FieldsView view)
public java.util.List<Topic> getInstances()
public Topic createInstance(java.lang.String name)
public LocatorIF getLocatorIF()
AbstractTypingTopic
getLocatorIF
in class AbstractTypingTopic
public java.util.List<Topic> searchAll(java.lang.String searchTerm)
public java.util.Collection<? extends FieldDefinition> getDeclaredByFields()
AbstractTypingTopic
getDeclaredByFields
in class AbstractTypingTopic
public java.util.List<FieldsView> getFieldViews(FieldsView fieldsView)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |