Package org.gedcomx.common
Class Qualifier
- java.lang.Object
-
- org.gedcomx.common.Qualifier
-
public final class Qualifier extends Object
A data qualifier. Qualifiers are used to "qualify" certain data elements to provide additional context, information, or details.- Author:
- Ryan Heaton
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)URIgetName()The name of the qualifier.StringgetValue()The value of the qualifier.inthashCode()Qualifiername(URI name)Build up this qualifier with a name.Qualifiername(ControlledVocabulary name)Build up this qualifier with a name.voidsetName(URI name)The name of the qualifier.voidsetName(ControlledVocabulary element)Set the qualifier name as an element of a constrained vocabulary.voidsetValue(String value)The value of the qualifier.StringtoString()Qualifiervalue(String value)Build up this qualifier with a value.
-
-
-
Constructor Detail
-
Qualifier
public Qualifier()
-
Qualifier
public Qualifier(URI name)
-
Qualifier
public Qualifier(ControlledVocabulary name, String value)
-
Qualifier
public Qualifier(ControlledVocabulary name)
-
-
Method Detail
-
getName
public URI getName()
The name of the qualifier. The name should be an element of a constrained vocabulary and is used to determine meaning of the qualifier.- Returns:
- The name of the qualifier.
-
setName
public void setName(URI name)
The name of the qualifier. The name should be an element of a constrained vocabulary and is used to determine meaning of the qualifier.- Parameters:
name- The name of the qualifier.
-
name
public Qualifier name(URI name)
Build up this qualifier with a name.- Parameters:
name- the name.- Returns:
- this.
-
setName
public void setName(ControlledVocabulary element)
Set the qualifier name as an element of a constrained vocabulary.- Parameters:
element- The element.
-
name
public Qualifier name(ControlledVocabulary name)
Build up this qualifier with a name.- Parameters:
name- the name.- Returns:
- this.
-
getValue
public String getValue()
The value of the qualifier. Some qualifiers may not have values, indicating that the qualifier is to be treated more like a "tag".- Returns:
- The value of the qualifier.
-
setValue
public void setValue(String value)
The value of the qualifier. Some qualifiers may not have values, indicating that the qualifier is to be treated more like a "tag".- Parameters:
value- The value of the qualifier.
-
value
public Qualifier value(String value)
Build up this qualifier with a value.- Parameters:
value- The value of the qualifier.- Returns:
- this.
-
-