Class UnknownTerm

java.lang.Object
org.gbif.dwc.terms.UnknownTerm
All Implemented Interfaces:
Serializable, Term

public class UnknownTerm extends Object implements Term, Serializable
See Also:
  • Constructor Details

  • Method Details

    • build

      public static UnknownTerm build(String name)
    • build

      public static UnknownTerm build(String name, boolean isClass)
    • build

      public static UnknownTerm build(String qualifiedName, String simpleName)
    • build

      public static UnknownTerm build(String qualifiedName, String simpleName, boolean isClass)
    • qualifiedName

      Description copied from interface: Term
      The full qualified term uri including the namespace. For example http://rs.tdwg.org/dwc/terms/scientificName.
      Specified by:
      qualifiedName in interface Term
    • simpleName

      public String simpleName()
      Description copied from interface: Term
      The simple term name without any namespace or paths. For example scientificName.
      Specified by:
      simpleName in interface Term
    • isClass

      public boolean isClass()
      Description copied from interface: Term
      Informs if a term is generally used as a class term, i.e. defining rowTypes not properties. For example VernacularName, Taxon or Occurrence
      Specified by:
      isClass in interface Term
      Returns:
      true if the term is defining a class instead of a property, e.g. Taxon
    • toString

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

      public String prefixedName()
      Description copied from interface: Term
      The simple term name prefixed by a short unique namespace abbreviation. For example dwc:scientificName.
      Specified by:
      prefixedName in interface Term
    • prefix

      public String prefix()
      Description copied from interface: Term
      A unique standard prefix representing the namespace. For example dwc.
      Specified by:
      prefix in interface Term
    • namespace

      public URI namespace()
      Description copied from interface: Term
      The namespace the terms are in. Default implementations here expect the namespace to end with a slash.
      Specified by:
      namespace in interface Term
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object