public class PropertyValue extends java.lang.Object implements IPropertyValue
IPropertyValue.| Constructor and Description |
|---|
PropertyValue(Property pProperty)
Deprecated.
Use
PropertyValue(Property, String, EPropertyValueType)
instead. |
PropertyValue(Property pProperty,
java.lang.String pValue)
Deprecated.
use
PropertyValue(Property, String, EPropertyValueType)
instead. |
PropertyValue(Property pProperty,
java.lang.String pValue,
EPropertyValueType pType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String pValue)
Adds a value to the value list.
|
java.lang.String |
getLabelOrValue()
Returns a label for a Property Value, if one was configured or set by a
retrieval tool.
|
Property |
getProperty()
Gets the property of this property value.
|
EPropertyValueType |
getType() |
java.lang.String |
getValue()
Gets the string value.
|
java.util.List<java.lang.String> |
getValues() |
boolean |
isArray()
Gets whether the property is a text array property.
|
void |
setType(EPropertyValueType pType)
Sets the
EPropertyValueType of the Property value. |
void |
setValue(IExecutionContext pContext,
java.lang.String pValue)
Sets the string value.
|
void |
setValue(java.lang.String pValue)
Sets the actual value.
|
java.lang.String |
toString() |
@Deprecated public PropertyValue(Property pProperty)
PropertyValue(Property, String, EPropertyValueType)
instead.pProperty - the property@Deprecated public PropertyValue(Property pProperty, java.lang.String pValue)
PropertyValue(Property, String, EPropertyValueType)
instead.pProperty - a Property.pValue - the value of the Property.public PropertyValue(Property pProperty, java.lang.String pValue, EPropertyValueType pType)
pProperty - a Property. Must not be null.pValue - can be null but should be set later by using
setValue(String)pType - can be null but should be set later by using
setType(EPropertyValueType).public void addValue(java.lang.String pValue)
IPropertyValueaddValue in interface IPropertyValuepValue - adds the value to the value listIPropertyValue.getValues(),
ETypes.TEXT_ARRAYpublic java.lang.String getLabelOrValue()
IPropertyValueIf there is no label for this value, the value will be returned.
getLabelOrValue in interface IPropertyValuepublic Property getProperty()
IPropertyValuegetProperty in interface IPropertyValuepublic EPropertyValueType getType()
getType in interface IPropertyValueEPropertyValueType of this Property value.public java.lang.String getValue()
IPropertyValue
If the property is of the type ETypes.TEXT_ARRAY this method
returns the values of IPropertyValue.getValues() separated by the
Property.getStringDelimiterWithoutQuotes() as string.
getValue in interface IPropertyValuepublic java.util.List<java.lang.String> getValues()
getValues in interface IPropertyValuenull, if the Property is not an
array Property or no values have been set.public boolean isArray()
IPropertyValueisArray in interface IPropertyValuetrue if the property has the type "Text Array"ETypes.TEXT_ARRAYpublic void setType(EPropertyValueType pType)
IPropertyValueEPropertyValueType of the Property value.setType in interface IPropertyValuepType - the new property value typepublic void setValue(IExecutionContext pContext, java.lang.String pValue)
IPropertyValuesetValue in interface IPropertyValuepContext - the execution contextpValue - the value to setpublic void setValue(java.lang.String pValue)
IPropertyValueIPropertyValue.setValue(IExecutionContext, String) instead.setValue in interface IPropertyValuepValue - the new valuepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 Micro Focus GmbH. All rights reserved.