Package com.saperion.rmi
Class SaPropertyValueImpl
java.lang.Object
com.saperion.rmi.SaPropertyValueImpl
- All Implemented Interfaces:
SaPropertyValue
,Serializable
Implementation of
SaPropertyValue
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSaPropertyValueImpl
(String ddc, String name) Default constructor.SaPropertyValueImpl
(String ddc, String name, SaValue value) Constructor for single value properties.SaPropertyValueImpl
(String ddc, String name, SaValue[] values) Constructor for multivalue properties.SaPropertyValueImpl
(String ddc, String name, SaValue[] values, boolean multivalue) Constructor for single- and multivalue properties. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Adds a new value to this property.final void
Adds a new values to this property.final void
Clears all values of this property.Returns the DDC name for this property.final SaConstants.SaFieldType
Reads the field type.final String
getName()
Returns the name of this property.final String
Returns the string value of this property.final String[]
Returns the values as String array.final SaValue[]
Returns the value array of this property.boolean
Returns true, if this property is dynamic.final boolean
isEmpty()
Test for empty value.boolean
Returns true if the value belongs to a link fieldboolean
void
setDynamic
(boolean isDynamic) final void
Sets the field type.void
setLinkedFieldValue
(boolean linkedFieldValue) Set to true only if the value belongs to a link fieldfinal void
Sets the property name.toString()
Returns the string representation of this class.
-
Constructor Details
-
SaPropertyValueImpl
Default constructor.- Parameters:
ddc
- DDC namename
- property name
-
SaPropertyValueImpl
Constructor for single value properties.- Parameters:
ddc
- DDC namename
- Propertynamevalue
- Propertyvalue
-
SaPropertyValueImpl
Constructor for multivalue properties.- Parameters:
ddc
- DDC namename
- Propertynamevalues
- Propertyvalues
-
SaPropertyValueImpl
Constructor for single- and multivalue properties.- Parameters:
ddc
- DDC namename
- Propertynamevalues
- Propertyvaluesmultivalue
- whether this property is a multivalue property or not
-
-
Method Details
-
getName
Returns the name of this property.- Specified by:
getName
in interfaceSaPropertyValue
- Returns:
- Propertyname
- See Also:
-
getValues
Returns the value array of this property.- Specified by:
getValues
in interfaceSaPropertyValue
- Returns:
- Value array
- See Also:
-
getStringValues
Returns the values as String array.- Specified by:
getStringValues
in interfaceSaPropertyValue
- Returns:
- String[]
- See Also:
-
getStringValue
Returns the string value of this property.- Specified by:
getStringValue
in interfaceSaPropertyValue
- Returns:
- String value.
- See Also:
-
addValue
Adds a new value to this property.- Parameters:
value
- the new value
-
addValues
Adds a new values to this property.- Parameters:
values
- the value array to add
-
setName
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:
-
getFieldType
Reads the field type.- Specified by:
getFieldType
in interfaceSaPropertyValue
- Returns:
- SaFieldType
- See Also:
-
setFieldType
Sets the field type.- Parameters:
type
- the field type to set
-
getDDCName
Returns the DDC name for this property.- Specified by:
getDDCName
in interfaceSaPropertyValue
- Returns:
- the DDC name
- See Also:
-
isDynamic
public boolean isDynamic()Returns true, if this property is dynamic.- Specified by:
isDynamic
in interfaceSaPropertyValue
- Returns:
- True, if property is dynamic
- See Also:
-
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:
-
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
Returns the string representation of this class.- Specified by:
toString
in interfaceSaPropertyValue
- Overrides:
toString
in classObject
- Returns:
- toString
- See Also:
-