Package org.gedcomx.records
Class RecordDescriptor
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.RecordDescriptor
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
A descriptor for a common set of records.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidembed(RecordDescriptor recordDescriptor) Embed another record descriptor.fields()Create a stream for the fields.Descriptors of the fields that are applicable to this record.getLang()The language of this record description.voidsetFields(List<FieldDescriptor> fields) Descriptors of the fields that are applicable to this record.voidThe language of this record description.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
-
RecordDescriptor
public RecordDescriptor() -
RecordDescriptor
-
-
Method Details
-
getLang
The language of this record description. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of this record description.
-
setLang
The language of this record description. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of this record description.
-
fields
Create a stream for the fields.- Returns:
- a stream for the fields.
-
getFields
Descriptors of the fields that are applicable to this record.- Returns:
- Descriptors of the fields that are applicable to this record.
-
setFields
Descriptors of the fields that are applicable to this record.- Parameters:
fields- Descriptors of the fields that are applicable to this record.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
Embed another record descriptor.- Parameters:
recordDescriptor- The descriptor to embed.
-