Class Vocabulary
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Vocabulary
-
- All Implemented Interfaces:
java.io.Serializable
@JsonObject("VocabularyGeneric") public class Vocabulary extends java.lang.Object implements java.io.SerializableImmutable value object representing an openBIS vocabulary.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVocabulary.VocabularyInitializer
-
Constructor Summary
Constructors Constructor Description Vocabulary(Vocabulary.VocabularyInitializer initializer)Creates a new instance with the provided initializer
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCode()Returns the vocabulary code.java.lang.StringgetDescription()Returns the vocabulary description.java.lang.LonggetId()Returns the vocabulary id.java.util.List<VocabularyTerm>getTerms()Returns the vocabulary terms.java.lang.StringgetUrlTemplate()Returns a URL template (e.g a search query) that can display additional information for concrete vocabulary terms.inthashCode()booleanisChosenFromList()Returntrueif the vocabulary was chosen from a list.booleanisInternalNamespace()Deprecated.booleanisManagedInternally()Returnstrueif the vocabulary is managed internally.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Vocabulary
public Vocabulary(Vocabulary.VocabularyInitializer initializer)
Creates a new instance with the provided initializer- Throws:
java.lang.IllegalArgumentException- if some of the required information is not provided.
-
-
Method Detail
-
getId
public java.lang.Long getId()
Returns the vocabulary id.
-
getCode
public java.lang.String getCode()
Returns the vocabulary code.
-
getDescription
public java.lang.String getDescription()
Returns the vocabulary description.
-
isManagedInternally
public boolean isManagedInternally()
Returnstrueif the vocabulary is managed internally.
-
isInternalNamespace
public boolean isInternalNamespace()
Deprecated.Returnstrueif the vocabulary is in the internal openBIS namespace.
-
isChosenFromList
public boolean isChosenFromList()
Returntrueif the vocabulary was chosen from a list.
-
getUrlTemplate
public java.lang.String getUrlTemplate()
Returns a URL template (e.g a search query) that can display additional information for concrete vocabulary terms.
-
getTerms
public java.util.List<VocabularyTerm> getTerms()
Returns the vocabulary terms.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-