Package com.saperion.rmi
Class SaPropertyValueImpl
- java.lang.Object
-
- com.saperion.rmi.SaPropertyValueImpl
-
- All Implemented Interfaces:
SaPropertyValue,java.io.Serializable
public class SaPropertyValueImpl extends java.lang.Object implements SaPropertyValue
Implementation ofSaPropertyValue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SaPropertyValueImpl(java.lang.String ddc, java.lang.String name)Default constructor.SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue value)Constructor for single value properties.SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue[] values)Constructor for multivalue properties.SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue[] values, boolean multivalue)Constructor for single- and multivalue properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(SaValue value)Adds a new value to this property.voidaddValues(SaValue[] values)Adds a new values to this property.voidclearValues()Clears all values of this property.java.lang.StringgetDDCName()Returns the DDC name for this property.SaConstants.SaFieldTypegetFieldType()Reads the field type.java.lang.StringgetName()Returns the name of this property.java.lang.StringgetStringValue()Returns the string value of this property.java.lang.String[]getStringValues()Returns the values as String array.SaValue[]getValues()Returns the value array of this property.booleanisDynamic()Returns true, if this property is dynamic.booleanisEmpty()Test for empty value.booleanisLinkedFieldValue()Returns true if the value belongs to a link fieldbooleanisMultiValue()voidsetDynamic(boolean isDynamic)voidsetFieldType(SaConstants.SaFieldType type)Sets the field type.voidsetLinkedFieldValue(boolean linkedFieldValue)Set to true only if the value belongs to a link fieldvoidsetName(java.lang.String name)Sets the property name.java.lang.StringtoString()Returns the string representation of this class.
-
-
-
Constructor Detail
-
SaPropertyValueImpl
public SaPropertyValueImpl(java.lang.String ddc, java.lang.String name)Default constructor.- Parameters:
ddc- DDC namename- property name
-
SaPropertyValueImpl
public SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue value)Constructor for single value properties.- Parameters:
ddc- DDC namename- Propertynamevalue- Propertyvalue
-
SaPropertyValueImpl
public SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue[] values)Constructor for multivalue properties.- Parameters:
ddc- DDC namename- Propertynamevalues- Propertyvalues
-
SaPropertyValueImpl
public SaPropertyValueImpl(java.lang.String ddc, java.lang.String name, SaValue[] values, boolean multivalue)Constructor for single- and multivalue properties.- Parameters:
ddc- DDC namename- Propertynamevalues- Propertyvaluesmultivalue- whether this property is a multivalue property or not
-
-
Method Detail
-
getName
public final java.lang.String getName()
Returns the name of this property.- Specified by:
getNamein interfaceSaPropertyValue- Returns:
- Propertyname
- See Also:
SaPropertyValue.getName()
-
getValues
public final SaValue[] getValues()
Returns the value array of this property.- Specified by:
getValuesin interfaceSaPropertyValue- Returns:
- Value array
- See Also:
SaPropertyValue.getValues()
-
getStringValues
public final java.lang.String[] getStringValues()
Returns the values as String array.- Specified by:
getStringValuesin interfaceSaPropertyValue- Returns:
- String[]
- See Also:
SaPropertyValue.getStringValues()
-
getStringValue
public final java.lang.String getStringValue()
Returns the string value of this property.- Specified by:
getStringValuein interfaceSaPropertyValue- Returns:
- String value.
- See Also:
SaPropertyValue.getStringValue()
-
addValue
public final void addValue(SaValue value)
Adds a new value to this property.- Parameters:
value- the new value
-
addValues
public final void addValues(SaValue[] values)
Adds a new values to this property.- Parameters:
values- the value array to add
-
setName
public final void setName(java.lang.String name)
Sets the property name.- Parameters:
name- the property name
-
clearValues
public final void clearValues()
Clears all values of this property.
-
isEmpty
public final boolean isEmpty()
Test for empty value.- Specified by:
isEmptyin interfaceSaPropertyValue- Returns:
- True, if empty
- See Also:
SaPropertyValue.isEmpty()
-
getFieldType
public final SaConstants.SaFieldType getFieldType()
Reads the field type.- Specified by:
getFieldTypein interfaceSaPropertyValue- Returns:
- SaFieldType
- See Also:
SaPropertyValue.getFieldType()
-
setFieldType
public final void setFieldType(SaConstants.SaFieldType type)
Sets the field type.- Parameters:
type- the field type to set
-
getDDCName
public java.lang.String getDDCName()
Returns the DDC name for this property.- Specified by:
getDDCNamein interfaceSaPropertyValue- Returns:
- the DDC name
- See Also:
SaPropertyValue.getDDCName()
-
isDynamic
public boolean isDynamic()
Returns true, if this property is dynamic.- Specified by:
isDynamicin interfaceSaPropertyValue- Returns:
- True, if property is dynamic
- See Also:
SaPropertyValue.isDynamic()
-
setDynamic
public void setDynamic(boolean isDynamic)
- Parameters:
isDynamic- Set dynamic
-
isMultiValue
public boolean isMultiValue()
- Specified by:
isMultiValuein interfaceSaPropertyValue- Returns:
- Property is multivalued
- See Also:
SaPropertyValue.isMultiValue()
-
isLinkedFieldValue
public boolean isLinkedFieldValue()
Description copied from interface:SaPropertyValueReturns true if the value belongs to a link field- Specified by:
isLinkedFieldValuein interfaceSaPropertyValue- Returns:
-
setLinkedFieldValue
public void setLinkedFieldValue(boolean linkedFieldValue)
Description copied from interface:SaPropertyValueSet to true only if the value belongs to a link field- Specified by:
setLinkedFieldValuein interfaceSaPropertyValue
-
toString
public java.lang.String toString()
Returns the string representation of this class.- Specified by:
toStringin interfaceSaPropertyValue- Overrides:
toStringin classjava.lang.Object- Returns:
- toString
- See Also:
SaPropertyValue.toString()
-
-