Class ManagedEntityProperty
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.ManagedEntityProperty
-
- All Implemented Interfaces:
IManagedProperty
,IEntityProperty
,java.io.Serializable
,java.lang.Comparable<IEntityProperty>
public class ManagedEntityProperty extends java.lang.Object implements IEntityProperty, IManagedProperty
AnIEntityProperty
implementation for managed properties.- 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 ManagedEntityProperty()
ManagedEntityProperty(IEntityProperty entityProperty)
-
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()
java.lang.String
getPropertyTypeCode()
Return the code (or name) of the managed property.Sample
getSample()
IManagedUiDescription
getUiDescription()
Return an object which allows to manage data for the user interface (input as well as output).java.lang.String
getValue()
Returns the current value of the property.VocabularyTerm
getVocabularyTerm()
boolean
isDynamic()
boolean
isManaged()
boolean
isOwnTab()
Returns true if the detailed view of the entity owning the property will show the managed property in an extra tab.boolean
isScriptable()
boolean
isSpecialValue()
Returnstrue
if the value is special, that is either a place-holder value or an error message.void
setMaterial(Material material)
void
setOrdinal(java.lang.Long ordinal)
void
setOwnTab(boolean ownTab)
Sets whether managed property is shown in an extra tab or not.void
setPropertyType(PropertyType propertyType)
void
setSample(Sample sample)
void
setValue(java.lang.String value)
Set the value of the property.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()
-
-
-
Constructor Detail
-
ManagedEntityProperty
public ManagedEntityProperty(IEntityProperty entityProperty)
-
ManagedEntityProperty
public ManagedEntityProperty()
-
-
Method Detail
-
isOwnTab
public boolean isOwnTab()
Description copied from interface:IManagedProperty
Returns true if the detailed view of the entity owning the property will show the managed property in an extra tab.- Specified by:
isOwnTab
in interfaceIManagedProperty
-
setOwnTab
public void setOwnTab(boolean ownTab)
Description copied from interface:IManagedProperty
Sets whether managed property is shown in an extra tab or not.- Specified by:
setOwnTab
in interfaceIManagedProperty
-
getUiDescription
public IManagedUiDescription getUiDescription()
Description copied from interface:IManagedProperty
Return an object which allows to manage data for the user interface (input as well as output).- Specified by:
getUiDescription
in interfaceIManagedProperty
-
getPropertyTypeCode
public java.lang.String getPropertyTypeCode()
Description copied from interface:IManagedProperty
Return the code (or name) of the managed property.- Specified by:
getPropertyTypeCode
in interfaceIManagedProperty
-
isSpecialValue
public boolean isSpecialValue()
Description copied from interface:IManagedProperty
Returnstrue
if the value is special, that is either a place-holder value or an error message.- Specified by:
isSpecialValue
in interfaceIManagedProperty
-
isManaged
public boolean isManaged()
- Specified by:
isManaged
in interfaceIEntityProperty
-
isScriptable
public boolean isScriptable()
- Specified by:
isScriptable
in interfaceIEntityProperty
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamic
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
-
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
-
getValue
public java.lang.String getValue()
Description copied from interface:IManagedProperty
Returns the current value of the property.- Specified by:
getValue
in interfaceIEntityProperty
- Specified by:
getValue
in interfaceIManagedProperty
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:IManagedProperty
Set the value of the property.- Specified by:
setValue
in interfaceIEntityProperty
- Specified by:
setValue
in interfaceIManagedProperty
-
getPropertyType
public PropertyType getPropertyType()
- Specified by:
getPropertyType
in interfaceIEntityProperty
-
setPropertyType
public void setPropertyType(PropertyType propertyType)
- Specified by:
setPropertyType
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
-
compareTo
public int compareTo(IEntityProperty o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IEntityProperty>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-