Package org.gedcomx.records
Class Field
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.records.Field
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
A field of a record.
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) voidaddValue(FieldValue value) Add a reference to the record value values being used as evidence.booleanextensionElement(Object element) The known type of the field.getType()The type of the field.The set of values for the field.inthashCode()Build up this object with an id.Build up this data with a link.Build up this data with a link.voidsetKnownType(FieldType type) The type of the field.voidThe type of the field.voidsetValues(List<FieldValue> values) The set of values for the field.toString()Provide a simple toString() method.Build out this field with a type.Build out this field with a type.value(FieldValue value) Build out this field with a field value.values()Create a stream for the values.Methods inherited from class org.gedcomx.conclusion.Conclusion
addNote, addSource, analysis, analysis, analysis, attribution, confidence, confidence, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, lang, note, notes, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sortKey, source, source, sourcesMethods 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
-
Constructor Details
-
Field
public Field() -
Field
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classConclusion
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
getType
The type of the field.- Returns:
- The type of the field.
-
setType
The type of the field.- Parameters:
type- The type of the field.
-
type
Build out this field with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build out this field with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
The known type of the field.- Returns:
- The type of the field.
-
setKnownType
The type of the field.- Parameters:
type- The type of the field.
-
values
Create a stream for the values.- Returns:
- a stream for the values.
-
getValues
The set of values for the field.- Returns:
- The set of values for the field.
-
setValues
The set of values for the field.- Parameters:
values- The set of values for the field.
-
value
Build out this field with a field value.- Parameters:
value- The value.- Returns:
- this.
-
addValue
Add a reference to the record value values being used as evidence.- Parameters:
value- The value to be added.
-
accept
-
toString
Provide a simple toString() method.- Overrides:
toStringin classConclusion
-
equals
-
hashCode
public int hashCode()
-