Class AbstractEntityProperty
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractEntityProperty
-
- All Implemented Interfaces:
IEntityProperty
,java.io.Serializable
,java.lang.Comparable<IEntityProperty>
- Direct Known Subclasses:
GenericEntityProperty
,MaterialEntityProperty
,SampleEntityProperty
,VocabularyTermEntityProperty
public abstract class AbstractEntityProperty extends java.lang.Object implements IEntityProperty
The abstract base implementation ofIEntityProperty
, only featuring aPropertyType
.All getters (except
getPropertyType()
will returnnull
, all setters (exceptsetPropertyType(PropertyType)
will throw anUnsupportedOperationException
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityProperty
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description AbstractEntityProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IEntityProperty o)
Material
getMaterial()
java.lang.Long
getOrdinal()
PropertyType
getPropertyType()
Sample
getSample()
java.lang.String
getValue()
VocabularyTerm
getVocabularyTerm()
boolean
isDynamic()
boolean
isManaged()
boolean
isScriptable()
void
setDynamic(boolean dynamic)
void
setMaterial(Material material)
void
setOrdinal(java.lang.Long ordinal)
void
setPropertyType(PropertyType propertyType)
void
setSample(Sample sample)
void
setScriptable(boolean scriptable)
void
setValue(java.lang.String value)
void
setVocabularyTerm(VocabularyTerm vocabularyTerm)
java.lang.String
toString()
java.lang.String
tryGetAsString()
Returns a string representation of whatever value this property represents.java.lang.String
tryGetOriginalValue()
-
-
-
Method Detail
-
getPropertyType
public PropertyType getPropertyType()
- Specified by:
getPropertyType
in interfaceIEntityProperty
-
setPropertyType
public void setPropertyType(PropertyType propertyType)
- Specified by:
setPropertyType
in interfaceIEntityProperty
-
tryGetAsString
public java.lang.String tryGetAsString()
Description copied from interface:IEntityProperty
Returns a string representation of whatever value this property represents. Vocabulary terms will be represented as their CODE, material values will be represented as "CODE (TYPE_CODE)".- Specified by:
tryGetAsString
in interfaceIEntityProperty
-
tryGetOriginalValue
public java.lang.String tryGetOriginalValue()
- Specified by:
tryGetOriginalValue
in interfaceIEntityProperty
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceIEntityProperty
-
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue
in interfaceIEntityProperty
-
getMaterial
public Material getMaterial()
- Specified by:
getMaterial
in interfaceIEntityProperty
-
setMaterial
public void setMaterial(Material material)
- Specified by:
setMaterial
in interfaceIEntityProperty
-
getSample
public Sample getSample()
- Specified by:
getSample
in interfaceIEntityProperty
-
setSample
public void setSample(Sample sample)
- Specified by:
setSample
in interfaceIEntityProperty
-
getVocabularyTerm
public VocabularyTerm getVocabularyTerm()
- Specified by:
getVocabularyTerm
in interfaceIEntityProperty
-
setVocabularyTerm
public void setVocabularyTerm(VocabularyTerm vocabularyTerm)
- Specified by:
setVocabularyTerm
in interfaceIEntityProperty
-
setOrdinal
public void setOrdinal(java.lang.Long ordinal)
- Specified by:
setOrdinal
in interfaceIEntityProperty
-
getOrdinal
public java.lang.Long getOrdinal()
- Specified by:
getOrdinal
in interfaceIEntityProperty
-
isManaged
public boolean isManaged()
- Specified by:
isManaged
in interfaceIEntityProperty
-
setScriptable
public void setScriptable(boolean scriptable)
-
isScriptable
public boolean isScriptable()
- Specified by:
isScriptable
in interfaceIEntityProperty
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamic
in interfaceIEntityProperty
-
setDynamic
public void setDynamic(boolean dynamic)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(IEntityProperty o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IEntityProperty>
-
-