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 void
addValue(SaValue value)
Adds a new value to this property.void
addValues(SaValue[] values)
Adds a new values to this property.void
clearValues()
Clears all values of this property.java.lang.String
getDDCName()
Returns the DDC name for this property.SaConstants.SaFieldType
getFieldType()
Reads the field type.java.lang.String
getName()
Returns the name of this property.java.lang.String
getStringValue()
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.boolean
isDynamic()
Returns true, if this property is dynamic.boolean
isEmpty()
Test for empty value.boolean
isLinkedFieldValue()
Returns true if the value belongs to a link fieldboolean
isMultiValue()
void
setDynamic(boolean isDynamic)
void
setFieldType(SaConstants.SaFieldType type)
Sets the field type.void
setLinkedFieldValue(boolean linkedFieldValue)
Set to true only if the value belongs to a link fieldvoid
setName(java.lang.String name)
Sets the property name.java.lang.String
toString()
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:
getName
in interfaceSaPropertyValue
- Returns:
- Propertyname
- See Also:
SaPropertyValue.getName()
-
getValues
public final SaValue[] getValues()
Returns the value array of this property.- Specified by:
getValues
in interfaceSaPropertyValue
- Returns:
- Value array
- See Also:
SaPropertyValue.getValues()
-
getStringValues
public final java.lang.String[] getStringValues()
Returns the values as String array.- Specified by:
getStringValues
in interfaceSaPropertyValue
- Returns:
- String[]
- See Also:
SaPropertyValue.getStringValues()
-
getStringValue
public final java.lang.String getStringValue()
Returns the string value of this property.- Specified by:
getStringValue
in 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:
isEmpty
in interfaceSaPropertyValue
- Returns:
- True, if empty
- See Also:
SaPropertyValue.isEmpty()
-
getFieldType
public final SaConstants.SaFieldType getFieldType()
Reads the field type.- Specified by:
getFieldType
in 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:
getDDCName
in interfaceSaPropertyValue
- Returns:
- the DDC name
- See Also:
SaPropertyValue.getDDCName()
-
isDynamic
public boolean isDynamic()
Returns true, if this property is dynamic.- Specified by:
isDynamic
in 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:
isMultiValue
in interfaceSaPropertyValue
- Returns:
- Property is multivalued
- See Also:
SaPropertyValue.isMultiValue()
-
isLinkedFieldValue
public boolean isLinkedFieldValue()
Description copied from interface:SaPropertyValue
Returns true if the value belongs to a link field- Specified by:
isLinkedFieldValue
in interfaceSaPropertyValue
- Returns:
-
setLinkedFieldValue
public void setLinkedFieldValue(boolean linkedFieldValue)
Description copied from interface:SaPropertyValue
Set to true only if the value belongs to a link field- Specified by:
setLinkedFieldValue
in interfaceSaPropertyValue
-
toString
public java.lang.String toString()
Returns the string representation of this class.- Specified by:
toString
in interfaceSaPropertyValue
- Overrides:
toString
in classjava.lang.Object
- Returns:
- toString
- See Also:
SaPropertyValue.toString()
-
-