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
  • Constructor Details

  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object