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 voidAdds a new value to this property.final voidAdds a new values to this property.final voidClears all values of this property.Returns the DDC name for this property.final SaConstants.SaFieldTypeReads the field type.final StringgetName()Returns the name of this property.final StringReturns the string value of this property.final String[]Returns the values as String array.final SaValue[]Returns the value array of this property.booleanReturns true, if this property is dynamic.final booleanisEmpty()Test for empty value.booleanReturns true if the value belongs to a link fieldbooleanvoidsetDynamic(boolean isDynamic) final voidSets the field type.voidsetLinkedFieldValue(boolean linkedFieldValue) Set to true only if the value belongs to a link fieldfinal voidSets 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:
getNamein interfaceSaPropertyValue- Returns:
- Propertyname
- See Also:
-
getValues
Returns the value array of this property.- Specified by:
getValuesin interfaceSaPropertyValue- Returns:
- Value array
- See Also:
-
getStringValues
Returns the values as String array.- Specified by:
getStringValuesin interfaceSaPropertyValue- Returns:
- String[]
- See Also:
-
getStringValue
Returns the string value of this property.- Specified by:
getStringValuein 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:
isEmptyin interfaceSaPropertyValue- Returns:
- True, if empty
- See Also:
-
getFieldType
Reads the field type.- Specified by:
getFieldTypein 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:
getDDCNamein interfaceSaPropertyValue- Returns:
- the DDC name
- See Also:
-
isDynamic
public boolean isDynamic()Returns true, if this property is dynamic.- Specified by:
isDynamicin 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:
isMultiValuein interfaceSaPropertyValue- Returns:
- Property is multivalued
- See Also:
-
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
Returns the string representation of this class.- Specified by:
toStringin interfaceSaPropertyValue- Overrides:
toStringin classObject- Returns:
- toString
- See Also:
-