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
AnIEntityPropertyimplementation 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 intcompareTo(IEntityProperty o)MaterialgetMaterial()java.lang.LonggetOrdinal()PropertyTypegetPropertyType()java.lang.StringgetPropertyTypeCode()Return the code (or name) of the managed property.SamplegetSample()IManagedUiDescriptiongetUiDescription()Return an object which allows to manage data for the user interface (input as well as output).java.lang.StringgetValue()Returns the current value of the property.VocabularyTermgetVocabularyTerm()booleanisDynamic()booleanisManaged()booleanisOwnTab()Returns true if the detailed view of the entity owning the property will show the managed property in an extra tab.booleanisScriptable()booleanisSpecialValue()Returnstrueif the value is special, that is either a place-holder value or an error message.voidsetMaterial(Material material)voidsetOrdinal(java.lang.Long ordinal)voidsetOwnTab(boolean ownTab)Sets whether managed property is shown in an extra tab or not.voidsetPropertyType(PropertyType propertyType)voidsetSample(Sample sample)voidsetValue(java.lang.String value)Set the value of the property.voidsetVocabularyTerm(VocabularyTerm vocabularyTerm)java.lang.StringtoString()java.lang.StringtryGetAsString()Returns a string representation of whatever value this property represents.java.lang.StringtryGetOriginalValue()
-
-
-
Constructor Detail
-
ManagedEntityProperty
public ManagedEntityProperty(IEntityProperty entityProperty)
-
ManagedEntityProperty
public ManagedEntityProperty()
-
-
Method Detail
-
isOwnTab
public boolean isOwnTab()
Description copied from interface:IManagedPropertyReturns true if the detailed view of the entity owning the property will show the managed property in an extra tab.- Specified by:
isOwnTabin interfaceIManagedProperty
-
setOwnTab
public void setOwnTab(boolean ownTab)
Description copied from interface:IManagedPropertySets whether managed property is shown in an extra tab or not.- Specified by:
setOwnTabin interfaceIManagedProperty
-
getUiDescription
public IManagedUiDescription getUiDescription()
Description copied from interface:IManagedPropertyReturn an object which allows to manage data for the user interface (input as well as output).- Specified by:
getUiDescriptionin interfaceIManagedProperty
-
getPropertyTypeCode
public java.lang.String getPropertyTypeCode()
Description copied from interface:IManagedPropertyReturn the code (or name) of the managed property.- Specified by:
getPropertyTypeCodein interfaceIManagedProperty
-
isSpecialValue
public boolean isSpecialValue()
Description copied from interface:IManagedPropertyReturnstrueif the value is special, that is either a place-holder value or an error message.- Specified by:
isSpecialValuein interfaceIManagedProperty
-
isManaged
public boolean isManaged()
- Specified by:
isManagedin interfaceIEntityProperty
-
isScriptable
public boolean isScriptable()
- Specified by:
isScriptablein interfaceIEntityProperty
-
isDynamic
public boolean isDynamic()
- Specified by:
isDynamicin interfaceIEntityProperty
-
tryGetAsString
public java.lang.String tryGetAsString()
Description copied from interface:IEntityPropertyReturns 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:
tryGetAsStringin interfaceIEntityProperty
-
tryGetOriginalValue
public java.lang.String tryGetOriginalValue()
- Specified by:
tryGetOriginalValuein interfaceIEntityProperty
-
getMaterial
public Material getMaterial()
- Specified by:
getMaterialin interfaceIEntityProperty
-
setMaterial
public void setMaterial(Material material)
- Specified by:
setMaterialin interfaceIEntityProperty
-
getSample
public Sample getSample()
- Specified by:
getSamplein interfaceIEntityProperty
-
setSample
public void setSample(Sample sample)
- Specified by:
setSamplein interfaceIEntityProperty
-
getVocabularyTerm
public VocabularyTerm getVocabularyTerm()
- Specified by:
getVocabularyTermin interfaceIEntityProperty
-
setVocabularyTerm
public void setVocabularyTerm(VocabularyTerm vocabularyTerm)
- Specified by:
setVocabularyTermin interfaceIEntityProperty
-
getValue
public java.lang.String getValue()
Description copied from interface:IManagedPropertyReturns the current value of the property.- Specified by:
getValuein interfaceIEntityProperty- Specified by:
getValuein interfaceIManagedProperty
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:IManagedPropertySet the value of the property.- Specified by:
setValuein interfaceIEntityProperty- Specified by:
setValuein interfaceIManagedProperty
-
getPropertyType
public PropertyType getPropertyType()
- Specified by:
getPropertyTypein interfaceIEntityProperty
-
setPropertyType
public void setPropertyType(PropertyType propertyType)
- Specified by:
setPropertyTypein interfaceIEntityProperty
-
setOrdinal
public void setOrdinal(java.lang.Long ordinal)
- Specified by:
setOrdinalin interfaceIEntityProperty
-
getOrdinal
public java.lang.Long getOrdinal()
- Specified by:
getOrdinalin interfaceIEntityProperty
-
compareTo
public int compareTo(IEntityProperty o)
- Specified by:
compareToin interfacejava.lang.Comparable<IEntityProperty>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-