|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.FieldDescriptor
public class FieldDescriptor
A description of a field in a record.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
FieldDescriptor()
|
|
| Method Summary | |
|---|---|
void |
addDescription(TextValue description)
Add a description. |
FieldDescriptor |
description(String description)
Build out this descriptor with a description. |
FieldDescriptor |
description(TextValue description)
Build out this descriptor with a description. |
List<TextValue> |
getDescriptions()
The description of the field. |
String |
getOriginalLabel()
The original label for the field, as stated on the original record. |
List<FieldValueDescriptor> |
getValues()
Descriptors of the values that are applicable to the field. |
FieldDescriptor |
id(String id)
Build up this object with an id. |
FieldDescriptor |
link(Link link)
Build up this data with a link. |
FieldDescriptor |
link(String rel,
URI href)
Build up this data with a link. |
FieldDescriptor |
originalLabel(String originalLabel)
Build out this field descriptor with an original label. |
void |
setDescriptions(List<TextValue> descriptions)
The description of the field. |
void |
setOriginalLabel(String originalLabel)
The original label for the field, as stated on the original record. |
void |
setValues(List<FieldValueDescriptor> values)
Descriptors of the values that are applicable to the field. |
| Methods inherited from class org.gedcomx.links.HypermediaEnabledData |
|---|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks |
| Methods inherited from class org.gedcomx.common.ExtensibleData |
|---|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldDescriptor()
| Method Detail |
|---|
public FieldDescriptor id(String id)
ExtensibleData
id in class ExtensibleDataid - The id.public FieldDescriptor link(Link link)
HypermediaEnabledData
link in class HypermediaEnabledDatalink - The link.
public FieldDescriptor link(String rel,
URI href)
HypermediaEnabledData
link in class HypermediaEnabledDatarel - The rel.href - The href.
public String getOriginalLabel()
public void setOriginalLabel(String originalLabel)
originalLabel - The original label for the field, as stated on the original record.public FieldDescriptor originalLabel(String originalLabel)
originalLabel - The original label.
public List<TextValue> getDescriptions()
public void setDescriptions(List<TextValue> descriptions)
descriptions - The description of the field.public FieldDescriptor description(TextValue description)
description - The description.
public FieldDescriptor description(String description)
description - The description.
public void addDescription(TextValue description)
description - The description to be added.public List<FieldValueDescriptor> getValues()
public void setValues(List<FieldValueDescriptor> values)
values - Descriptors of the values that are applicable to the field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||