@JsonObject(value="VocabularyGeneric")
public class Vocabulary
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Vocabulary.VocabularyInitializer |
Constructor and Description |
---|
Vocabulary(Vocabulary.VocabularyInitializer initializer)
Creates a new instance with the provided initializer
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
Returns the vocabulary code.
|
java.lang.String |
getDescription()
Returns the vocabulary description.
|
java.lang.Long |
getId()
Returns the vocabulary id.
|
java.util.List<VocabularyTerm> |
getTerms()
Returns the vocabulary terms.
|
java.lang.String |
getUrlTemplate()
Returns a URL template (e.g a search query) that can display additional information for
concrete vocabulary terms.
|
int |
hashCode() |
boolean |
isChosenFromList()
Return
true if the vocabulary was chosen from a list. |
boolean |
isInternalNamespace()
Returns
true if the vocabulary is in the internal openBIS namespace. |
boolean |
isManagedInternally()
Returns
true if the vocabulary is managed internally. |
java.lang.String |
toString() |
public Vocabulary(Vocabulary.VocabularyInitializer initializer)
java.lang.IllegalArgumentException
- if some of the required information is not provided.public java.lang.Long getId()
public java.lang.String getCode()
public java.lang.String getDescription()
public boolean isManagedInternally()
true
if the vocabulary is managed internally.public boolean isInternalNamespace()
true
if the vocabulary is in the internal openBIS namespace.public boolean isChosenFromList()
true
if the vocabulary was chosen from a list.public java.lang.String getUrlTemplate()
public java.util.List<VocabularyTerm> getTerms()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object