Class IdentityField


public class IdentityField extends FieldDefinition
Represents an identify field.
  • Constructor Details

  • Method Details

    • getFieldType

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

      public String getFieldName()
      Returns the name of the IdentityField object.
      Specified by:
      getFieldName in class FieldDefinition
    • getLocator

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

      public boolean equals(Object obj)
      Overrides:
      equals in class FieldDefinition
    • getIdentityType

      public IdentityType getIdentityType()
      Gets the identity type.
      Returns:
      the identity type.
    • isSubjectLocator

      public boolean isSubjectLocator()
      True if this is the subject locator field type.
    • isSubjectIdentifier

      public boolean isSubjectIdentifier()
      True if this is the subject identifier field type.
    • isItemIdentifier

      public boolean isItemIdentifier()
      True if this is the item identifier field type.
    • getValues

      public Collection<? extends Object> getValues(Topic topic)
      Returns either the subject locator or every subject identifier associated with the topic.
      Specified by:
      getValues in class FieldDefinition
      Parameters:
      topic - topic from which the values is retrieved.
      Returns:
      A collection of LocatorIF objects.
    • addValue

      public void addValue(Topic topic, Object _value, LifeCycleListener listener)
      Replaces a subject locator of or adds a subject identifier to a topic.
      Specified by:
      addValue in class FieldDefinition
      Parameters:
      _value - value which is going to be added to the topic.
    • removeValue

      public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
      Removes the subject locator or a subject identifier from a topic.
      Specified by:
      removeValue in class FieldDefinition
      Parameters:
      _value - value which is going to be removed from the topic.
    • getHeight

      public int getHeight()
      Returns the assigned height of the identity text field.
    • getWidth

      public int getWidth()
      Returns the assigned width of the identity text field.