Package org.gedcomx.records
Class FieldDescriptor
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.FieldDescriptor
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
A description of a field in a record.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescription(TextValue description) Add a description.description(String description) Build out this descriptor with a description.description(TextValue description) Build out this descriptor with a description.Create a stream for the descriptions.extensionElement(Object element) The description of the field.The original label for the field, as stated on the original record.Descriptors of the values that are applicable to the field.Build up this object with an id.Build up this data with a link.Build up this data with a link.originalLabel(String originalLabel) Build out this field descriptor with an original label.voidsetDescriptions(List<TextValue> descriptions) The description of the field.voidsetOriginalLabel(String originalLabel) The original label for the field, as stated on the original record.voidsetValues(List<FieldValueDescriptor> values) Descriptors of the values that are applicable to the field.values()Create a stream for the values.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
FieldDescriptor
public FieldDescriptor() -
FieldDescriptor
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
getOriginalLabel
The original label for the field, as stated on the original record.- Returns:
- The original label for the field, as stated on the original record.
-
setOriginalLabel
The original label for the field, as stated on the original record.- Parameters:
originalLabel- The original label for the field, as stated on the original record.
-
originalLabel
Build out this field descriptor with an original label.- Parameters:
originalLabel- The original label.- Returns:
- this.
-
descriptions
Create a stream for the descriptions.- Returns:
- a stream for the descriptions.
-
getDescriptions
The description of the field.- Returns:
- The description of the field.
-
setDescriptions
The description of the field.- Parameters:
descriptions- The description of the field.
-
description
Build out this descriptor with a description.- Parameters:
description- The description.- Returns:
- this.
-
description
Build out this descriptor with a description.- Parameters:
description- The description.- Returns:
- this.
-
addDescription
Add a description.- Parameters:
description- The description to be added.
-
values
Create a stream for the values.- Returns:
- a stream for the values.
-
getValues
Descriptors of the values that are applicable to the field.- Returns:
- Descriptors of the values that are applicable to the field.
-
setValues
Descriptors of the values that are applicable to the field.- Parameters:
values- Descriptors of the values that are applicable to the field.
-