org.gedcomx.conclusion
Class Gender

java.lang.Object
  extended by org.gedcomx.common.ExtensibleData
      extended by org.gedcomx.links.HypermediaEnabledData
          extended by org.gedcomx.conclusion.Conclusion
              extended by org.gedcomx.conclusion.Gender
All Implemented Interfaces:
Attributable, HasNotes, HasTransientProperties, SupportsLinks, HasFields, SupportsExtensionElements, ReferencesSources

public class Gender
extends Conclusion
implements HasFields

A gender conclusion.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
 
Constructor Summary
Gender()
          Default constructor.
Gender(GenderType type)
          Constructs a new gender object with the passed in type.
 
Method Summary
 void accept(GedcomxModelVisitor visitor)
          Accept a visitor.
 void addField(Field field)
          Add a record field being used as evidence.
 Gender analysis(Document analysis)
          Add a reference to the analysis for this conclusion.
 Gender analysis(ResourceReference analysis)
          Add a reference to the analysis for this conclusion.
 Gender analysis(URI analysis)
          Add a reference to the analysis for this conclusion.
 Gender attribution(Attribution attribution)
          Build up this conclusion with attribution.
 Gender confidence(ConfidenceLevel confidence)
          Build up this conclusion with a confidence level.
 Gender confidence(URI confidence)
          Build up this conclusion with a confidence level.
 Gender field(Field field)
          Build up this gender with a field.
 List<Field> getFields()
          Get the fields being used as evidence.
 GenderType getKnownType()
          The known type of the gender.
 URI getType()
          The type of the gender.
 Gender id(String id)
          Build up this object with an id.
 Gender lang(String lang)
          Build up this conclusion with a lang.
 Gender link(Link link)
          Build up this data with a link.
 Gender link(String rel, URI href)
          Build up this data with a link.
 Gender note(Note note)
          Build up this conclusion with a note.
 void setFields(List<Field> fields)
          Set the list of fields being used as evidence.
 void setKnownType(GenderType type)
          The type of the gender.
 void setType(URI type)
          The type of the gender.
 Gender sortKey(String sortKey)
          Build up this fact with a sort key.
 Gender source(SourceDescription source)
          Build up this conclusion with a source reference.
 Gender source(SourceReference sourceReference)
          Build up this conclusion with a source reference.
 String toString()
          Provide a simple toString() method.
 Gender type(GenderType type)
          Build up this gender with a type.
 Gender type(URI type)
          Build up this gender with a type.
 
Methods inherited from class org.gedcomx.conclusion.Conclusion
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gender

public Gender()
Default constructor.


Gender

public Gender(GenderType type)
Constructs a new gender object with the passed in type.

Parameters:
type - The type of the gender.
Method Detail

id

public Gender id(String id)
Description copied from class: ExtensibleData
Build up this object with an id.

Overrides:
id in class Conclusion
Parameters:
id - The id.

link

public Gender link(String rel,
                   URI href)
Description copied from class: HypermediaEnabledData
Build up this data with a link.

Overrides:
link in class Conclusion
Parameters:
rel - The rel.
href - The href.
Returns:
this.

link

public Gender link(Link link)
Description copied from class: HypermediaEnabledData
Build up this data with a link.

Overrides:
link in class Conclusion
Parameters:
link - The link.
Returns:
this.

lang

public Gender lang(String lang)
Description copied from class: Conclusion
Build up this conclusion with a lang.

Overrides:
lang in class Conclusion
Parameters:
lang - The lang.
Returns:
this.

confidence

public Gender confidence(URI confidence)
Description copied from class: Conclusion
Build up this conclusion with a confidence level.

Overrides:
confidence in class Conclusion
Parameters:
confidence - The confidence level.
Returns:
this.

confidence

public Gender confidence(ConfidenceLevel confidence)
Description copied from class: Conclusion
Build up this conclusion with a confidence level.

Overrides:
confidence in class Conclusion
Parameters:
confidence - The confidence level.
Returns:
this.

source

public Gender source(SourceReference sourceReference)
Description copied from class: Conclusion
Build up this conclusion with a source reference.

Overrides:
source in class Conclusion
Parameters:
sourceReference - The source reference.
Returns:
this.

source

public Gender source(SourceDescription source)
Description copied from class: Conclusion
Build up this conclusion with a source reference.

Overrides:
source in class Conclusion
Parameters:
source - The source description being referenced.
Returns:
this.

note

public Gender note(Note note)
Description copied from class: Conclusion
Build up this conclusion with a note.

Overrides:
note in class Conclusion
Parameters:
note - The note.
Returns:
this.

attribution

public Gender attribution(Attribution attribution)
Description copied from class: Conclusion
Build up this conclusion with attribution.

Overrides:
attribution in class Conclusion
Parameters:
attribution - The attribution.
Returns:
this.

analysis

public Gender analysis(ResourceReference analysis)
Description copied from class: Conclusion
Add a reference to the analysis for this conclusion.

Overrides:
analysis in class Conclusion
Parameters:
analysis - The analysis.
Returns:
this.

analysis

public Gender analysis(Document analysis)
Description copied from class: Conclusion
Add a reference to the analysis for this conclusion.

Overrides:
analysis in class Conclusion
Parameters:
analysis - The analysis.
Returns:
this.

analysis

public Gender analysis(URI analysis)
Description copied from class: Conclusion
Add a reference to the analysis for this conclusion.

Overrides:
analysis in class Conclusion
Parameters:
analysis - The analysis.
Returns:
this.

sortKey

public Gender sortKey(String sortKey)
Description copied from class: Conclusion
Build up this fact with a sort key.

Overrides:
sortKey in class Conclusion
Parameters:
sortKey - The sort key.
Returns:
this.

getType

public URI getType()
The type of the gender.

Returns:
The type of the gender.

setType

public void setType(URI type)
The type of the gender.

Parameters:
type - The type of the gender.

type

public Gender type(URI type)
Build up this gender with a type.

Parameters:
type - The type.
Returns:
this.

type

public Gender type(GenderType type)
Build up this gender with a type.

Parameters:
type - The type.
Returns:
this.

getKnownType

public GenderType getKnownType()
The known type of the gender.

Returns:
The type of the gender.

setKnownType

public void setKnownType(GenderType type)
The type of the gender.

Parameters:
type - The type of the gender.

getFields

public List<Field> getFields()
Get the fields being used as evidence.

Specified by:
getFields in interface HasFields
Returns:
The references to the record fields being used as evidence.

setFields

public void setFields(List<Field> fields)
Set the list of fields being used as evidence.

Specified by:
setFields in interface HasFields
Parameters:
fields - - List of fields

field

public Gender field(Field field)
Build up this gender with a field.

Parameters:
field - The field.
Returns:
this.

addField

public void addField(Field field)
Add a record field being used as evidence.

Parameters:
field - The evidence to be added.

toString

public String toString()
Description copied from class: Conclusion
Provide a simple toString() method.

Overrides:
toString in class Conclusion

accept

public void accept(GedcomxModelVisitor visitor)
Accept a visitor.

Parameters:
visitor - The visitor.


Copyright © 2015. All rights reserved.