Package org.gbif.dwc.terms
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnknownTerm(URI uri, boolean isClass)
UnknownTerm(URI uri, String prefix, String name, boolean isClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnknownTerm
build(String name)
static UnknownTerm
build(String name, boolean isClass)
static UnknownTerm
build(String qualifiedName, String simpleName)
static UnknownTerm
build(String qualifiedName, String simpleName, boolean isClass)
boolean
equals(Object o)
int
hashCode()
boolean
isClass()
Informs if a term is generally used as a class term, i.e.URI
namespace()
The namespace the terms are in.String
prefix()
A unique standard prefix representing the namespace.String
prefixedName()
The simple term name prefixed by a short unique namespace abbreviation.String
qualifiedName()
The full qualified term uri including the namespace.String
simpleName()
The simple term name without any namespace or paths.String
toString()
-
-
-
Constructor Detail
-
UnknownTerm
public UnknownTerm(URI uri, String prefix, String name, boolean isClass)
-
UnknownTerm
public UnknownTerm(URI uri, boolean isClass)
-
-
Method Detail
-
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
public String 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 interfaceTerm
-
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 interfaceTerm
-
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
-
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 interfaceTerm
-
prefix
public String prefix()
Description copied from interface:Term
A unique standard prefix representing the namespace. For example dwc.
-
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.
-
-