Class FieldValueDescriptor

All Implemented Interfaces:
HasTransientProperties, SupportsLinks, SupportsExtensionElements

public class FieldValueDescriptor extends HypermediaEnabledData
A way a field is to be displayed to a user.
Author:
Ryan Heaton
  • Constructor Details

    • FieldValueDescriptor

      public FieldValueDescriptor()
    • FieldValueDescriptor

      public FieldValueDescriptor(FieldValueDescriptor copy)
  • Method Details

    • getLabelId

      public String getLabelId()
      The id of the label applicable to the field value.
      Returns:
      The id of the label applicable to the field value
    • setLabelId

      public void setLabelId(String labelId)
      The language of this display information. See http://www.w3.org/International/articles/language-tags/
      Parameters:
      labelId - The language of this display information.
    • getType

      public URI getType()
      The type of the field value.
      Returns:
      The type of the field value.
    • setType

      public void setType(URI type)
      The type of the field value.
      Parameters:
      type - The type of the field value.
    • getKnownType

      public FieldValueType getKnownType()
      The known type of the field value.
      Returns:
      The type of the field value.
    • setKnownType

      public void setKnownType(FieldValueType type)
      The type of the field value.
      Parameters:
      type - The type of the field value.
    • getOptional

      public Boolean getOptional()
      Whether the treatment of the field value is optional. Used to determine whether it should be displayed even if the value is empty.
      Returns:
      Whether the treatment of the field value is optional. Used to determine whether it should be displayed even if the value is empty.
    • setOptional

      public void setOptional(Boolean optional)
      Whether the treatment of the field value is optional. Used to determine whether it should be displayed even if the value is empty.
      Parameters:
      optional - Whether the treatment of the field value is optional. Used to determine whether it should be displayed even if the value is empty.
    • getDisplayLabels

      public List<TextValue> getDisplayLabels()
      The labels to be used for display purposes.
      Returns:
      The labels to be used for display purposes.
    • setDisplayLabels

      public void setDisplayLabels(List<TextValue> displayLabels)
      The labels to be used for display purposes.
      Parameters:
      displayLabels - The labels to be used for display purposes.
    • getEntryLabels

      public List<TextValue> getEntryLabels()
      The labels to be used for entry purposes.
      Returns:
      The labels to be used for entry purposes.
    • setEntryLabels

      public void setEntryLabels(List<TextValue> entryLabels)
      The labels to be used for entry purposes.
      Parameters:
      entryLabels - The labels to be used for entry purposes.
    • getDisplaySortKey

      public String getDisplaySortKey()
      A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.
      Returns:
      A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.
    • setDisplaySortKey

      public void setDisplaySortKey(String displaySortKey)
      A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.
      Parameters:
      displaySortKey - A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.
    • getEntrySortKey

      public String getEntrySortKey()
      A sort key for sorting this field value relative to other field values according to how they should be entered for editing.
      Returns:
      A sort key for sorting this field value relative to other field values according to how they should be entered for editing.
    • setEntrySortKey

      public void setEntrySortKey(String entrySortKey)
      A sort key for sorting this field value relative to other field values according to how they should be entered for editing.
      Parameters:
      entrySortKey - A sort key for sorting this field value relative to other field values according to how they should be entered for editing.
    • getEntryRequired

      public Boolean getEntryRequired()
      Whether some kind of entry is required when entering data for editing.
      Returns:
      Whether some kind of entry is required when entering data for editing.
    • setEntryRequired

      public void setEntryRequired(Boolean entryRequired)
      Whether some kind of entry is required when entering data for editing.
      Parameters:
      entryRequired - Whether some kind of entry is required when entering data for editing.
    • getEditable

      public Boolean getEditable()
      Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system.
      Returns:
      Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system.
    • setEditable

      public void setEditable(Boolean editable)
      Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system.
      Parameters:
      editable - Whether the field value is editable. Some field values might be composed from other field values or otherwise calculated by the system.
    • getParentLabelId

      public String getParentLabelId()
      The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value.
      Returns:
      The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value.
    • setParentLabelId

      public void setParentLabelId(String parentLabelId)
      The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value.
      Parameters:
      parentLabelId - The id of the label for the "parent" field value. For example, the parent field value of a "given name" field value might be the "name" field value.