Package org.gedcomx.links
Class HypermediaEnabledData
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
- Direct Known Subclasses:
Agent,Collection,CollectionContent,Conclusion,Coverage,EvidenceReference,FamilyView,FieldDescriptor,FieldValueDescriptor,Gedcomx,Note,RecordDescriptor,RecordSet,SourceCitation,SourceDescription,SourceReference
An data type that supports hypermedia controls (i.e. links).
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a hypermedia link.voidAdd a hypermedia link.voidaddTemplatedLink(String rel, String template) Add a templated link.protected voidembed(HypermediaEnabledData data) Get a link by its rel.getLinks()The list of hypermedia links.Get a list of links by rel.Build up this data with a link.Build up this data with a link.voidThe list of hypermedia links.Methods 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
-
HypermediaEnabledData
protected HypermediaEnabledData() -
HypermediaEnabledData
-
-
Method Details
-
getLinks
The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Specified by:
getLinksin interfaceSupportsLinks- Returns:
- The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
setLinks
The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Specified by:
setLinksin interfaceSupportsLinks- Parameters:
links- The list of hypermedia links. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
link
Build up this data with a link.- Parameters:
link- The link.- Returns:
- this.
-
link
Build up this data with a link.- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
addLink
Add a hypermedia link. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Specified by:
addLinkin interfaceSupportsLinks- Parameters:
link- The hypermedia link. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.
-
addLink
Add a hypermedia link.- Specified by:
addLinkin interfaceSupportsLinks- Parameters:
rel- The link rel.href- The target URI.
-
addTemplatedLink
Add a templated link.- Specified by:
addTemplatedLinkin interfaceSupportsLinks- Parameters:
rel- The link rel.template- The link template.
-
getLink
Get a link by its rel. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Specified by:
getLinkin interfaceSupportsLinks- Parameters:
rel- The link rel.- Returns:
- The link by rel.
-
getLinks
Get a list of links by rel. Links are not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.- Specified by:
getLinksin interfaceSupportsLinks- Parameters:
rel- The rel of the links.- Returns:
- The link.
-
embed
-