ontopoly.model
Class OccurrenceField

java.lang.Object
  extended by ontopoly.model.Topic
      extended by ontopoly.model.FieldDefinition
          extended by 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
OccurrenceField(TopicIF topic, TopicMap tm)
           
OccurrenceField(TopicIF topic, TopicMap tm, OccurrenceType occurrenceType)
           
 
Method Summary
 void addValue(Topic topic, java.lang.Object _value, LifeCycleListener listener)
           
 boolean equals(java.lang.Object obj)
           
 DataType getDataType()
          Returns the data type of the occurrence type.
 java.lang.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.
 java.util.List<OccurrenceIF> getValues(Topic topic)
           
 int getWidth()
          Returns the assigned width of the occurrence text field.
 void removeValue(Topic topic, java.lang.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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OccurrenceField

public OccurrenceField(TopicIF topic,
                       TopicMap tm)

OccurrenceField

public OccurrenceField(TopicIF topic,
                       TopicMap tm,
                       OccurrenceType occurrenceType)
Method Detail

getFieldType

public int getFieldType()
Specified by:
getFieldType in class FieldDefinition
Returns:
an int that identifies this fieldType

getFieldName

public java.lang.String getFieldName()
Description copied from class: FieldDefinition
Returns the name of this field definition.

Specified by:
getFieldName in class FieldDefinition

getLocator

public LocatorIF getLocator()
Specified by:
getLocator in class FieldDefinition

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class FieldDefinition

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 java.util.List<OccurrenceIF> getValues(Topic topic)
Specified by:
getValues in class FieldDefinition

addValue

public void addValue(Topic topic,
                     java.lang.Object _value,
                     LifeCycleListener listener)
Specified by:
addValue in class FieldDefinition

removeValue

public void removeValue(Topic topic,
                        java.lang.Object _value,
                        LifeCycleListener listener)
Specified by:
removeValue in class FieldDefinition


Copyright © 2000-2012 Ontopia.