Package ontopoly.model
Class OccurrenceField
- java.lang.Object
-
- ontopoly.model.Topic
-
- ontopoly.model.FieldDefinition
-
- ontopoly.model.OccurrenceField
-
public class OccurrenceField extends FieldDefinition
Represents an occurrence field.
-
-
Field Summary
-
Fields inherited from class ontopoly.model.FieldDefinition
FIELD_TYPE_IDENTITY, FIELD_TYPE_NAME, FIELD_TYPE_OCCURRENCE, FIELD_TYPE_QUERY, FIELD_TYPE_ROLE
-
-
Constructor Summary
Constructors Constructor Description OccurrenceField(TopicIF topic, TopicMap tm)
OccurrenceField(TopicIF topic, TopicMap tm, OccurrenceType occurrenceType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(Topic topic, Object _value, LifeCycleListener listener)
boolean
equals(Object obj)
DataType
getDataType()
Returns the data type of the occurrence type.String
getFieldName()
Returns the name of this field definition.int
getFieldType()
int
getHeight()
Returns the assigned height of the occurrence text field.LocatorIF
getLocator()
OccurrenceType
getOccurrenceType()
Gets the occurrence type to which this field is assigned.List<OccurrenceIF>
getValues(Topic topic)
int
getWidth()
Returns the assigned width of the occurrence text field.void
removeValue(Topic topic, Object _value, LifeCycleListener listener)
-
Methods inherited from class ontopoly.model.FieldDefinition
getCardinality, getFieldDefinition, getFieldDefinition, getFieldDefinition, getValidationType, getValueView, getViewModes, hashCode, setCardinality
-
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
-
-
-
-
Constructor Detail
-
OccurrenceField
public OccurrenceField(TopicIF topic, TopicMap tm, OccurrenceType occurrenceType)
-
-
Method Detail
-
getFieldType
public int getFieldType()
- Specified by:
getFieldType
in classFieldDefinition
- Returns:
- an int that identifies this fieldType
-
getFieldName
public String getFieldName()
Description copied from class:FieldDefinition
Returns the name of this field definition.- Specified by:
getFieldName
in classFieldDefinition
-
getLocator
public LocatorIF getLocator()
- Specified by:
getLocator
in classFieldDefinition
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classFieldDefinition
-
getOccurrenceType
public OccurrenceType getOccurrenceType()
Gets the occurrence type to which this field is assigned.- Returns:
- the occurrence type.
-
getDataType
public DataType getDataType()
Returns the data type of the occurrence type.
-
getHeight
public int getHeight()
Returns the assigned height of the occurrence text field.
-
getWidth
public int getWidth()
Returns the assigned width of the occurrence text field.
-
getValues
public List<OccurrenceIF> getValues(Topic topic)
- Specified by:
getValues
in classFieldDefinition
-
addValue
public void addValue(Topic topic, Object _value, LifeCycleListener listener)
- Specified by:
addValue
in classFieldDefinition
-
removeValue
public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
- Specified by:
removeValue
in classFieldDefinition
-
-