public class SaPropertyValueImpl extends Object implements SaPropertyValue
SaPropertyValue
.Constructor and Description |
---|
SaPropertyValueImpl(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.
|
Modifier and Type | Method and 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.
|
String |
getDDCName()
Returns the DDC name for this property.
|
SaConstants.SaFieldType |
getFieldType()
Reads the field type.
|
String |
getName()
Returns the name of this property.
|
String |
getStringValue()
Returns the string value of this property.
|
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 |
isMultiValue() |
void |
setDynamic(boolean isDynamic) |
void |
setFieldType(SaConstants.SaFieldType type)
Sets the field type.
|
void |
setName(String name)
Sets the property name.
|
String |
toString()
Returns the string representation of this class.
|
public SaPropertyValueImpl(String ddc, String name)
ddc
- DDC namename
- property namepublic SaPropertyValueImpl(String ddc, String name, SaValue value)
ddc
- DDC namename
- Propertynamevalue
- Propertyvaluepublic SaPropertyValueImpl(String ddc, String name, SaValue[] values)
ddc
- DDC namename
- Propertynamevalues
- Propertyvaluespublic final String getName()
getName
in interface SaPropertyValue
SaPropertyValue.getName()
public final SaValue[] getValues()
getValues
in interface SaPropertyValue
SaPropertyValue.getValues()
public final String[] getStringValues()
getStringValues
in interface SaPropertyValue
SaPropertyValue.getStringValues()
public final String getStringValue()
getStringValue
in interface SaPropertyValue
SaPropertyValue.getStringValue()
public final void addValue(SaValue value)
value
- the new valuepublic final void addValues(SaValue[] values)
values
- the value array to addpublic final void setName(String name)
name
- the property namepublic final void clearValues()
public final boolean isEmpty()
isEmpty
in interface SaPropertyValue
SaPropertyValue.isEmpty()
public final SaConstants.SaFieldType getFieldType()
getFieldType
in interface SaPropertyValue
SaPropertyValue.getFieldType()
public final void setFieldType(SaConstants.SaFieldType type)
type
- the field type to setpublic String getDDCName()
getDDCName
in interface SaPropertyValue
SaPropertyValue.getDDCName()
public boolean isDynamic()
isDynamic
in interface SaPropertyValue
SaPropertyValue.isDynamic()
public void setDynamic(boolean isDynamic)
isDynamic
- Set dynamicpublic boolean isMultiValue()
isMultiValue
in interface SaPropertyValue
SaPropertyValue.isMultiValue()
public String toString()
toString
in interface SaPropertyValue
toString
in class Object
SaPropertyValue.toString()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.