public class TopicType extends AbstractTypingTopic
| Constructor and Description |
|---|
TopicType(TopicIF currTopic,
TopicMap tm) |
| Modifier and Type | Method and Description |
|---|---|
FieldAssignment |
addField(FieldDefinition fieldDefinition) |
AssociationType |
createAssociationType() |
Topic |
createInstance(String name)
Create a new topic instance of this topic type.
|
NameType |
createNameType() |
OccurrenceType |
createOccurrenceType() |
QueryField |
createQueryField() |
protected static FieldDefinition |
findFieldDefinitionImpl(TopicMap tm,
TopicIF fieldDefinitionTopic,
TopicIF fieldDefinitionType) |
Collection<TopicType> |
getAllSubTypes()
Gets the all subtypes (direct and indirect) of this type.
|
Collection<? extends FieldDefinition> |
getDeclaredByFields()
Returns the field definitions that are declared for this typing topic.
|
Collection<TopicType> |
getDirectSubTypes()
Gets the direct subtypes of this type.
|
List<FieldAssignment> |
getFieldAssignments()
Returns the FieldAssignments for this topic type.
|
List<FieldAssignment> |
getFieldAssignments(FieldsView view) |
List<FieldsView> |
getFieldViews(FieldsView fieldsView) |
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) |
List<Topic> |
searchAll(String searchTerm)
Returns the topics that matches the given search term.
|
isHidden, isReadOnlyaddTopicType, 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, toStringpublic boolean isAbstract()
public boolean isLargeInstanceSet()
public boolean hasHierarchy()
public Collection<TopicType> getDirectSubTypes()
public 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 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 List<FieldAssignment> getFieldAssignments(FieldsView view)
protected static FieldDefinition findFieldDefinitionImpl(TopicMap tm, TopicIF fieldDefinitionTopic, TopicIF fieldDefinitionType)
public List<Topic> getInstances()
public Topic createInstance(String name)
public LocatorIF getLocatorIF()
AbstractTypingTopicgetLocatorIF in class AbstractTypingTopicpublic List<Topic> searchAll(String searchTerm)
public Collection<? extends FieldDefinition> getDeclaredByFields()
AbstractTypingTopicgetDeclaredByFields in class AbstractTypingTopicpublic List<FieldsView> getFieldViews(FieldsView fieldsView)