Package org.gedcomx.common
Class Note
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.common.Note
- All Implemented Interfaces:
Attributable,HasText,HasTransientProperties,SupportsLinks,SupportsExtensionElements
A note about a genealogical resource (e.g. conclusion or source).
- 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.attribution(Attribution attribution) Build up this note with attribution.booleanextensionElement(Object element) Attribution metadata for a note.getLang()The language of the note.The subject of the note.getText()The text of the note.inthashCode()Build up this object with an id.Build up this note with a locale.Build up this data with a link.Build up this data with a link.voidsetAttribution(Attribution attribution) Attribution metadata for a note.voidThe language of the note.voidsetSubject(String text) The subject of the note.voidThe text of the note.Build up this note with a subject.Build up this note with some text.toString()Provide a simple toString() method.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
-
Constructor Details
-
Note
public Note() -
Note
-
-
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:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getLang
The language of the note. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of the note.
-
setLang
The language of the note. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of the note.
-
lang
Build up this note with a locale.- Parameters:
lang- The locale.- Returns:
- this.
-
getSubject
The subject of the note. This is a short title describing the contents of the note text.- Returns:
- The subject of the note.
-
setSubject
The subject of the note.- Parameters:
text- The subject of the note.
-
subject
Build up this note with a subject.- Parameters:
text- The subject.- Returns:
- this.
-
getText
The text of the note. -
setText
The text of the note. -
text
Build up this note with some text.- Parameters:
text- The text.- Returns:
- this.
-
getAttribution
Attribution metadata for a note.- Specified by:
getAttributionin interfaceAttributable- Returns:
- Attribution metadata for a note.
-
setAttribution
Attribution metadata for a note.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- Attribution metadata for a note.
-
attribution
Build up this note with attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
toString
Description copied from class:ExtensibleDataProvide a simple toString() method.- Overrides:
toStringin classExtensibleData
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
equals
-
hashCode
public int hashCode()
-