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 voidaddValue(Topic topic, Object _value, LifeCycleListener listener)booleanequals(Object obj)DataTypegetDataType()Returns the data type of the occurrence type.StringgetFieldName()Returns the name of this field definition.intgetFieldType()intgetHeight()Returns the assigned height of the occurrence text field.LocatorIFgetLocator()OccurrenceTypegetOccurrenceType()Gets the occurrence type to which this field is assigned.List<OccurrenceIF>getValues(Topic topic)intgetWidth()Returns the assigned width of the occurrence text field.voidremoveValue(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:
getFieldTypein classFieldDefinition- Returns:
- an int that identifies this fieldType
-
getFieldName
public String getFieldName()
Description copied from class:FieldDefinitionReturns the name of this field definition.- Specified by:
getFieldNamein classFieldDefinition
-
getLocator
public LocatorIF getLocator()
- Specified by:
getLocatorin classFieldDefinition
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin 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:
getValuesin classFieldDefinition
-
addValue
public void addValue(Topic topic, Object _value, LifeCycleListener listener)
- Specified by:
addValuein classFieldDefinition
-
removeValue
public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
- Specified by:
removeValuein classFieldDefinition
-
-