Package org.gedcomx.records
Class FieldValueDescriptor
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.FieldValueDescriptor
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
A way a field is to be displayed to a user.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe labels to be used for display purposes.A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.Whether the field value is editable.The labels to be used for entry purposes.Whether some kind of entry is required when entering data for editing.A sort key for sorting this field value relative to other field values according to how they should be entered for editing.The known type of the field value.The id of the label applicable to the field value.Whether the treatment of the field value is optional.The id of the label for the "parent" field value.getType()The type of the field value.voidsetDisplayLabels(List<TextValue> displayLabels) The labels to be used for display purposes.voidsetDisplaySortKey(String displaySortKey) A sort key for sorting this field value relative to other field values according to how they should be displayed for viewing.voidsetEditable(Boolean editable) Whether the field value is editable.voidsetEntryLabels(List<TextValue> entryLabels) The labels to be used for entry purposes.voidsetEntryRequired(Boolean entryRequired) Whether some kind of entry is required when entering data for editing.voidsetEntrySortKey(String entrySortKey) A sort key for sorting this field value relative to other field values according to how they should be entered for editing.voidsetKnownType(FieldValueType type) The type of the field value.voidsetLabelId(String labelId) The language of this display information.voidsetOptional(Boolean optional) Whether the treatment of the field value is optional.voidsetParentLabelId(String parentLabelId) The id of the label for the "parent" field value.voidThe type of the field value.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, link, link, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, extensionElement, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, id, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
FieldValueDescriptor
public FieldValueDescriptor() -
FieldValueDescriptor
-
-
Method Details
-
getLabelId
The id of the label applicable to the field value.- Returns:
- The id of the label applicable to the field value
-
setLabelId
The language of this display information. See http://www.w3.org/International/articles/language-tags/- Parameters:
labelId- The language of this display information.
-
getType
The type of the field value.- Returns:
- The type of the field value.
-
setType
The type of the field value.- Parameters:
type- The type of the field value.
-
getKnownType
The known type of the field value.- Returns:
- The type of the field value.
-
setKnownType
The type of the field value.- Parameters:
type- The type of the field value.
-
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
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
The labels to be used for display purposes.- Returns:
- The labels to be used for display purposes.
-
setDisplayLabels
The labels to be used for display purposes.- Parameters:
displayLabels- The labels to be used for display purposes.
-
getEntryLabels
The labels to be used for entry purposes.- Returns:
- The labels to be used for entry purposes.
-
setEntryLabels
The labels to be used for entry purposes.- Parameters:
entryLabels- The labels to be used for entry purposes.
-
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
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
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
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
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
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
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
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
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
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.
-