Package ontopoly.model
Class FieldDefinition
java.lang.Object
ontopoly.model.Topic
ontopoly.model.FieldDefinition
- Direct Known Subclasses:
IdentityField,NameField,OccurrenceField,QueryField,RoleField
Represents a field type, which may be a name type, an occurrence type, an
identity field, or a combination of an association role and an association
type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddValue(Topic topic, Object _value, LifeCycleListener listener) booleanReturns the cardinality of the field on this topic type.static FieldDefinitiongetFieldDefinition(String fieldId, int fieldType, TopicMap tm) static FieldDefinitiongetFieldDefinition(String fieldId, TopicMap tm) static FieldDefinitiongetFieldDefinition(TopicIF fieldTopic, TopicMap tm) abstract StringReturns the name of this field definition.abstract intabstract LocatorIFReturns the validation type.abstract Collection<? extends Object>getValueView(FieldsView view) getViewModes(FieldsView view) inthashCode()abstract voidremoveValue(Topic topic, Object _value, LifeCycleListener listener) voidsetCardinality(Cardinality cardinality) Sets the cardinality of the field on this topic type.Methods inherited from class ontopoly.model.Topic
addTopicType, copyCharacteristics, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString
-
Field Details
-
FIELD_TYPE_ROLE
public static final int FIELD_TYPE_ROLE- See Also:
-
FIELD_TYPE_OCCURRENCE
public static final int FIELD_TYPE_OCCURRENCE- See Also:
-
FIELD_TYPE_NAME
public static final int FIELD_TYPE_NAME- See Also:
-
FIELD_TYPE_IDENTITY
public static final int FIELD_TYPE_IDENTITY- See Also:
-
FIELD_TYPE_QUERY
public static final int FIELD_TYPE_QUERY- See Also:
-
-
Constructor Details
-
FieldDefinition
-
-
Method Details
-
getFieldType
public abstract int getFieldType()- Returns:
- an int that identifies this fieldType
-
getFieldName
Returns the name of this field definition. -
getLocator
-
getViewModes
-
getValueView
-
getCardinality
Returns the cardinality of the field on this topic type. -
setCardinality
Sets the cardinality of the field on this topic type. -
getValidationType
Returns the validation type. -
getValues
-
addValue
-
removeValue
-
equals
-
hashCode
public int hashCode() -
getFieldDefinition
-
getFieldDefinition
-
getFieldDefinition
-