public class ApplicationPropertyValue extends PropertyValue
IPropertyValue for application properties.
If IApplicationProperty.isConstant() is true, the value
of ApplicationPropertyValue can not be changed.
| Constructor and Description |
|---|
ApplicationPropertyValue(Property pProperty,
java.lang.String pValue,
EPropertyValueType pType,
IApplicationProperty pApplicationProperty) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String pValue)
Adds a value to the value list.
|
java.lang.String |
getValue()
Gets the string value.
|
boolean |
isChanged()
Whether the property value was changed.
|
void |
setType(EPropertyValueType pType)
This method does nothing, since the type of application properties is not
supposed to be changed.
|
void |
setValue(IExecutionContext pContext,
java.lang.String pValue)
Sets the string value.
|
void |
setValue(java.lang.String pValue)
Sets the actual value.
|
getLabelOrValue, getProperty, getType, getValues, isArray, toStringpublic ApplicationPropertyValue(Property pProperty, java.lang.String pValue, EPropertyValueType pType, IApplicationProperty pApplicationProperty)
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).pApplicationProperty - the corresponding IApplicationProperty instance. Must
NOT be null.public boolean isChanged()
false, if the value is null. Else
returns true.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 IPropertyValuegetValue in class PropertyValuepublic void setValue(IExecutionContext pContext, java.lang.String pValue)
IPropertyValuesetValue in interface IPropertyValuesetValue in class PropertyValuepContext - the execution contextpValue - the value to setpublic void setValue(java.lang.String pValue)
IPropertyValueIPropertyValue.setValue(IExecutionContext, String) instead.setValue in interface IPropertyValuesetValue in class PropertyValuepValue - the new valuepublic void addValue(java.lang.String pValue)
IPropertyValueaddValue in interface IPropertyValueaddValue in class PropertyValuepValue - adds the value to the value listIPropertyValue.getValues(),
ETypes.TEXT_ARRAYpublic final void setType(EPropertyValueType pType)
setType in interface IPropertyValuesetType in class PropertyValuepType - Does not have any impact. This method does nothing, since the
type of application properties is not supposed to be changed.Copyright © 2015 Micro Focus GmbH. All rights reserved.