Class FieldDefinition

java.lang.Object
ontopoly.model.Topic
ontopoly.model.FieldDefinition
Direct Known Subclasses:
IdentityField, NameField, OccurrenceField, QueryField, RoleField

public abstract class FieldDefinition extends Topic
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 Details

  • Constructor Details

  • Method Details

    • getFieldType

      public abstract int getFieldType()
      Returns:
      an int that identifies this fieldType
    • getFieldName

      public abstract String getFieldName()
      Returns the name of this field definition.
    • getLocator

      public abstract LocatorIF getLocator()
    • getViewModes

      public ViewModes getViewModes(FieldsView view)
    • getValueView

      public FieldsView getValueView(FieldsView view)
    • getCardinality

      public Cardinality getCardinality()
      Returns the cardinality of the field on this topic type.
    • setCardinality

      public void setCardinality(Cardinality cardinality)
      Sets the cardinality of the field on this topic type.
    • getValidationType

      public String getValidationType()
      Returns the validation type.
    • getValues

      public abstract Collection<? extends Object> getValues(Topic topic)
    • addValue

      public abstract void addValue(Topic topic, Object _value, LifeCycleListener listener)
    • removeValue

      public abstract void removeValue(Topic topic, Object _value, LifeCycleListener listener)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Topic
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Topic
    • getFieldDefinition

      public static FieldDefinition getFieldDefinition(String fieldId, TopicMap tm)
    • getFieldDefinition

      public static FieldDefinition getFieldDefinition(String fieldId, int fieldType, TopicMap tm)
    • getFieldDefinition

      public static FieldDefinition getFieldDefinition(TopicIF fieldTopic, TopicMap tm)