|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.conclusion.NamePart
public final class NamePart
A part of a name.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
NamePart()
|
|
NamePart(NamePartType type,
String text)
|
|
| Method Summary | |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor. |
void |
addField(Field field)
Add a reference to the record field values being used as evidence. |
void |
addQualifier(Qualifier qualifier)
Add a qualifier associated with this name part. |
NamePart |
field(Field field)
Build out this name part with a field. |
List<Field> |
getFields()
Get the fields being used as evidence. |
NamePartType |
getKnownType()
The enum referencing the known name part type, or NamePartType.OTHER if not known. |
List<Qualifier> |
getQualifiers()
The qualifiers associated with this name part. |
URI |
getType()
The type of the name part. |
String |
getValue()
The value of the name part. |
NamePart |
id(String id)
Build up this object with an id. |
NamePart |
qualifier(Qualifier qualifier)
Build out this name part with a qualifier. |
void |
setFields(List<Field> fields)
Set the list of fields being used as evidence. |
void |
setKnownType(NamePartType knownType)
Set the type of this name part from an enumeration of known name part types. |
void |
setQualifiers(List<Qualifier> qualifiers)
Set the qualifiers associated with this name part. |
void |
setType(URI type)
The type of the name part. |
void |
setValue(String value)
The value of the name part. |
NamePart |
type(NamePartType type)
Build out this name part with a type. |
NamePart |
type(URI type)
Build out this name part with a type. |
NamePart |
value(String value)
Build out this name part with a value. |
| 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 NamePart()
public NamePart(NamePartType type,
String text)
| Method Detail |
|---|
public NamePart id(String id)
ExtensibleData
id in class ExtensibleDataid - The id.public URI getType()
public void setType(URI type)
type - The type of the name part.public NamePart type(URI type)
type - The type.
public NamePart type(NamePartType type)
type - The type.
public NamePartType getKnownType()
NamePartType.OTHER if not known.
NamePartType.OTHER if not known.public void setKnownType(NamePartType knownType)
knownType - The name part type.public String getValue()
public void setValue(String value)
value - The value of the name part.public NamePart value(String value)
value - The value.
public List<Qualifier> getQualifiers()
public void setQualifiers(List<Qualifier> qualifiers)
qualifiers - qualifiers to associate with this name partpublic NamePart qualifier(Qualifier qualifier)
qualifier - The qualifier.
public void addQualifier(Qualifier qualifier)
qualifier - The qualifier to be added.public List<Field> getFields()
getFields in interface HasFieldspublic void setFields(List<Field> fields)
setFields in interface HasFieldsfields - - List of fieldspublic NamePart field(Field field)
field - The field.
public void addField(Field field)
field - The field to be added.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||