public interface ClipboardProperty
Note that there are two distinct ways of retrieving a property's value. The first group of methods are named getStringValue, getPageValue, and getPropertyValue. These all return the raw value contained by the property. This value isn't manipulated as a result of the method.
The other group of methods are named toBoolean, toDate, toDouble, toInteger, and toString. These methods all ensure that the property attributes match those found in its dictionary definition and attempt to validate the property before returning a value. If the parent page of this property is classless, the property is not validated.
An additional overload of the to* methods is provided, where the
current PegaAPI object is passed as an argument. These methods should
be used when the caller may want to be informed of missing or empty
properties, instead of simply receiving the default empty value of
the given property. These methods check the PegaAPI.isBackwardChaining()
flag; if true
, and the given property is missing or empty, a MissingPropertyException
will be thrown. If false
, or if a null
PegaAPI object is
passed to the method, the normal to* method behavior will apply (the default value will
be returned).
Lightweight Page Lists
Lightweight Page Lists are a special version of Page Lists. Indicated by the "Is Lightweight" field in Rule-Obj-Property, Lightweight Page Lists can hold only string values. Think of a Lightweight Page List as containing a table of string values, with the columns representing property values and the rows representing pages in the list.
Pages and properties in a Lightweight Page List cannot have attached messages. They will be ignored for the purposes of declarative rules. All pages in a lightweight page list must be of the same class (or descendant of said class). The internal structure of lightweight page lists is different from a normal page list, which causes certain methods to behave differently:
add(int, Object)
and add(Object)
: StringMap and ClipboardPage
objects may be added to Lightweight Page Lists.
getColumnInfos()
: Usable only with Lightweight Page Lists.
Returns property information for each column (property).
getColumnNames()
: Usable only with Lightweight Page Lists.
Returns column (property) names.
getPageValue(int)
: Not usable with Lightweight Page Lists.
getPropertyValue(int)
: Not usable with Lightweight Page Lists.
getStringValue(int, String)
: Use this method to retrieve
an individual value from a Lightweight Page List.
isLightweight()
: Is this property lightweight?
iterator()
: Elements in a Lightweight Page List iterator
are String arrays (String[]), not ClipboardProperty instances. The
order of the values in these arrays is the same as the order in the
Column Name and Info arrays returned by getColumnNames() and
getColumnInfos().
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
LIST_APPEND
When passed as the index parameter to
getPropertyValue(int) ,
getPageValue() , or getStringValue() , a new property
will be created and appended to the end of this list. |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
add(int aAtPosition,
java.lang.Object aValue)
Inserts a value at the specified position in this list property.
|
void |
add(java.lang.Object aValue)
Append a value to the end of this list property.
|
void |
add(java.lang.String aGroupSubscript,
java.lang.Object aValue)
Add a value to the group contained by this property.
|
void |
addMessage(java.lang.String aMsgDescr)
Associates a message descriptor with this property.
|
void |
addMessage(java.lang.String aMsgDescr,
java.lang.String aFieldName)
Associates a message descriptor with this property.
|
void |
addMessageWithKey(java.lang.String aMsgDescr,
java.lang.String aPzInsKey)
Associates a message descriptor and pzInsKey of its originated rule with this property.
|
void |
addMessageWithKey(java.lang.String aMsgDescr,
java.lang.String aFieldName,
java.lang.String aPzInsKey)
Associates a message descriptor and pzInsKey of its originated rule with this property.
|
void |
adoptLightweightList(java.lang.String aDataTransFormName)
Mark this property as a virtual page list where individual rows are not
loaded until they are accessed.
|
void |
clearAttrProtected()
Clear the Protected attribute from this property.
|
void |
clearMessages()
Clears all messages (and the Error attribute) from this property
and all embedded pages and properties.
|
void |
clearValue()
Eliminate the value of this property.
|
java.lang.String |
getAbsoluteReference()
Returns an absolute reference to this property.
|
java.util.List |
getColumnInfos()
Get the list of ImmutablePropertyInfo instances, one for each column in this lightweight page list.
|
java.util.List |
getColumnNames()
Get the list of column names in this lightweight page list.
|
int |
getDecimalPrecision()
returns the decimal precision defined for this property.
|
java.lang.String |
getEntryHandle()
Returns a handle to this property that can be used for
receiving client input.
|
java.lang.String |
getEntryHandle(boolean aIncludeSubscripts)
Returns a handle to this property that can be used for
receiving client input.
|
java.lang.String |
getEntryHandle(java.lang.String aPropertyReference)
Returns a handle to the referenced property that can be used for
receiving client input.
|
java.lang.String |
getGatewayPageName(ClipboardPage aPage,
java.lang.String aGatewayClass)
Get the fully qualified gateway page name if this property was used as a gateway to other
instance's properties.
|
java.lang.String |
getLocalizedText()
Returns the localized value of a property
|
java.lang.String |
getLocalizedText(java.lang.String aString)
Returns the localized value of aString, using the localization info from this property
|
int |
getMaxLength()
Get the maximum length of a string type in this property.
|
int |
getMessageCount()
Returns count of messages added to this property.
|
java.lang.String |
getMessages()
Returns any message(s) added for this property.
|
char |
getMode()
Returns the mode of this property.
|
java.lang.String |
getModeName()
Returns the English name of this property's mode.
|
java.lang.String |
getName()
Returns the name of this property.
|
java.lang.Object |
getObjectValue()
Return value of this Java Object property.
|
java.lang.Object |
getObjectValue(int aIndex)
Returns the Object value of an element of this Java Object List
property.
|
java.lang.Object |
getObjectValue(java.lang.String aGroupSubscript)
Returns the Object value of an element of this Java Object group
property.
|
ClipboardPage |
getPageValue()
Return value of this property as a page.
|
ClipboardPage |
getPageValue(int aIndex)
Returns the ClipboardPage value of an element of this page list
property.
|
ClipboardPage |
getPageValue(java.lang.String aGroupSubscript)
Returns the ClipboardPage value of an element of this page group
property.
|
ClipboardPage |
getParentPage()
Identifies the page which contains this property.
|
ClipboardProperty |
getParentProperty()
Identifies the property which contains this property.
|
ClipboardProperty |
getProperty(java.lang.String aReference)
Provides a
ClipboardProperty instance corresponding
to the referenced item. |
ClipboardProperty |
getPropertyValue(int aIndex)
Returns a ClipboardProperty element of this list
property.
|
ClipboardProperty |
getPropertyValue(java.lang.String aGroupSubscript)
Returns a ClipboardProperty element of this group
property.
|
java.lang.String |
getQualifier(java.lang.String aName)
Gets a run-time qualifier value of this property.
|
java.lang.String |
getReference()
Returns a relative reference to this property.
|
java.lang.String |
getReferenceInformation()
Get debug information describing this property's Reference attributes
|
java.lang.String |
getReferenceString()
Get the fully qualified reference of the property this Reference Property
points to.
|
java.lang.String |
getRelativeReference()
Deprecated.
|
java.lang.String |
getStandardText(java.lang.String aKey)
Returns the standard value of a property
|
java.lang.String |
getStringValue()
Return value of this property as a string.
|
java.lang.String |
getStringValue(boolean aAvoidAutoChain) |
java.lang.String |
getStringValue(int aIndex)
Returns the String value of an element of this string list
property.
|
java.lang.String |
getStringValue(int aIndex,
java.lang.String aPropertyName)
Get a string value from a property in a page list.
|
java.lang.String |
getStringValue(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a string, or if the caller wants, an exception when the property is missing or empty.
|
java.lang.String |
getStringValue(java.lang.String aGroupSubscript)
Returns the String value of an element of this string group
property.
|
ClipboardPage |
getTopLevelPage()
Identifies the top-level page that contains this property.
|
char |
getType()
Returns the data type of this property.
|
java.lang.String |
getTypeName()
Returns the English name of this property's type.
|
boolean |
hasAttrError()
Test if the Error attribute is set for this property, indicating that a message
was added for it.
|
boolean |
hasAttrIncompatible()
Test if the Incompatible attribute is set for this property, which happens
when the structure of the property conflicts with its definition.
|
boolean |
hasAttrProtected()
Test if the Protected attribute is set for this property.
|
boolean |
hasAttrUndefined()
Test if the Undefined attribute is set for this property, which happens
when the Pega.Page.applySemantics method fails to find a Rule-Obj-Property
instance to define this property.
|
boolean |
hasGoodValue()
Test if the property has a good value.
|
boolean |
hasInvalidValue()
Test if the property has an invalid value.
|
boolean |
hasReference()
If this is a TYPE_REFERENCE_PAGE property, has a reference been established
to another property?
This method has three possible states:
1.
|
boolean |
hasValidValue()
Test if the property has a valid value.
|
int |
indexOf()
If this property is an element of a list, return its index in
the list.
|
boolean |
isBad()
Test if the property has a bad value.
|
boolean |
isDefinedAsReference()
In the Rule-Obj-Property definition of this property, is the "Is Reference Property"
flag enabled?
|
boolean |
isEmpty()
Query if this property has no value.
|
boolean |
isGroup()
Query if this property has a group structure
|
boolean |
isGroupElement()
Is this property an elemeint in a group?
|
boolean |
isJavaObject()
Query if this property is of mode JavaObject.
|
boolean |
isLightweight()
Is this a lightweight property? Lightweight properties use an
efficient structure to save processing overhead, but require
special methods to access their contents.
|
boolean |
isList()
Query if this property has a list structure
|
boolean |
isListElement()
Is this property an element in a list?
|
boolean |
isModifiable()
Test if the property is modifiable.
|
boolean |
isPage()
Query if this property has a page mode (which includes groups).
|
boolean |
isReadOnly()
Query if this property is on a Read Only page
|
boolean |
isScalar()
Test if the property is scalar.
|
boolean |
isSpecial()
Test if the property is "Special".
|
java.util.Iterator |
iterator()
Returns an iterator allowing access to values contained in this
list, page, or group property.
|
boolean |
moveValue(java.lang.Object aSourceValue)
Set value of property and remove the source property from its parent.
|
java.lang.Object |
remove(int aIndex)
Removes the indexed element from this property's list.
|
java.lang.Object |
remove(java.lang.String aGroupSubscript)
Remove an element from the group contained by this property.
|
void |
removeFromClipboard()
Removes this property from its parent, which is either a
page or a list.
|
boolean |
resetReferenceInformation()
If this property is a Reference Property, reset the reference information
to "unlink" it from the source property.
|
boolean |
seekValue(PublicAPI aTools)
Invoke backward chaining to compute the value of
this property, given the current state of the
declarative expression network for the top-level
page.
|
boolean |
seekValue(PublicAPI aTools,
boolean aAlwaysRecompute)
Invoke backward chaining to compute the value of
this property, given the current state of the
declarative expression network for the top-level
page.
|
void |
setAsReference(PRThread aThread,
ClipboardProperty aSourceProperty)
Set this property as a reference to another specified property.
|
void |
setAsReference(PRThread aThread,
ClipboardProperty aSourceProperty,
ParameterPage params)
Set this property as a reference to another specified property.
|
void |
setAsReference(PRThread aThread,
java.lang.String aPageName) |
void |
setAsReference(PRThread aThread,
java.lang.String aPageName,
ParameterPage aParams) |
void |
setAttrProtected()
Set the Protected attribute for this property.
|
void |
setEntryCode(java.lang.String aEntryCode)
Set the dictionary definition of this property.
|
void |
setQualifier(java.lang.String aName,
java.lang.String aValue)
Sets a run-time qualifier value for this property.
|
boolean |
setValue(com.pega.ibm.icu.math.BigDecimal aValue)
Set value of property from BigDecimal value.
|
boolean |
setValue(boolean aValue)
Set value of property from boolean value.
|
boolean |
setValue(ClipboardProperty aValue)
Set value of property.
|
boolean |
setValue(java.util.Date aValue)
Set value of property from Date value.
|
boolean |
setValue(double aValue)
Set value of property from double value.
|
boolean |
setValue(int aValue)
Set value of property from int value.
|
boolean |
setValue(java.lang.Object aValue)
Set value of property.
|
boolean |
setValueFromLocalizedString(java.lang.String aLocale,
java.lang.String aValue)
Interprets the specified string according to locale specific conventions
and sets the normalized value into the property
|
int |
size()
Get the length of an atomic property or the number of elements in
this list or group property.
|
com.pega.ibm.icu.math.BigDecimal |
toBigDecimal()
Return value of this property as a IBM BigDecimal value.
|
com.pega.ibm.icu.math.BigDecimal |
toBigDecimal(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a IBM BigDecimal value, or if the caller wants, an exception when the property is missing or empty.
|
boolean |
toBoolean()
Return value of this property as a boolean value.
|
boolean |
toBoolean(boolean aDefault)
Return value of this property as a boolean value.
|
boolean |
toBoolean(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a boolean value, or if the caller wants, an exception when the property is missing or empty.
|
java.util.Date |
toDate()
Return value of this property as a date.
|
java.util.Date |
toDate(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a date, or if the caller wants, an exception when the property is missing or empty.
|
double |
toDouble()
Return value of this property as a double.
|
double |
toDouble(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a double.
|
int |
toInteger()
Return value of this property as an integer.
|
int |
toInteger(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a int, or if the caller wants, an exception when the property is missing or empty.
|
java.lang.String |
toString()
Return value of this property as a string.
|
java.lang.String |
toString(com.pega.pegarules.priv.PegaAPI aPega)
Return value of this property as a string, or if the caller wants, an exception when the property is missing or empty.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final int LIST_APPEND
getPropertyValue(int)
,
getPageValue()
, or getStringValue()
, a new property
will be created and appended to the end of this list.void add(java.lang.String aGroupSubscript, java.lang.Object aValue)
aGroupSubscript
- the subscript of the new group elementaValue
- the new value to add. May be a String, ClipboardPage, or a
ClipboardProperty of String or Page mode. If aValue is an embedded ClipboardProperty
or a named or embedded ClipboardPage, a copy of the value is made
and placed into the list.WrongModeException
- if this property does not contain a group or
the value is of an incompatible modeReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedjava.lang.Object remove(java.lang.String aGroupSubscript)
aGroupSubscript
- name of the element to removeWrongModeException
- if this property does not contain a groupReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedjava.lang.Object remove(int aIndex)
aIndex
- one-based element numberWrongModeException
- if this property does not contain a listReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid removeFromClipboard()
ReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedchar getMode()
ImmutablePropertyInfo.MODE_UNKNOWN
ImmutablePropertyInfo.MODE_JAVAOBJECT
ImmutablePropertyInfo.MODE_JAVAOBJECT_LIST
ImmutablePropertyInfo.MODE_JAVAOBJECT_GROUP
ImmutablePropertyInfo.MODE_JAVAPROPERTY
ImmutablePropertyInfo.MODE_JAVAPROPERTY_LIST
ImmutablePropertyInfo.MODE_STRING
ImmutablePropertyInfo.MODE_STRING_LIST
ImmutablePropertyInfo.MODE_STRING_GROUP
ImmutablePropertyInfo.MODE_PAGE
ImmutablePropertyInfo.MODE_PAGE_LIST
ImmutablePropertyInfo.MODE_PAGE_GROUP
java.lang.String getModeName()
java.lang.String getName()
If this property is a List element, the
name is blank. Use indexOf()
to get the position of this property in its list.
If this property is a Group element, its name equal to its group subscript.
java.lang.String getReference()
java.lang.String getAbsoluteReference()
java.lang.String getRelativeReference()
boolean isReadOnly()
true
if the property is read only
false
otherwisechar getType()
ImmutablePropertyInfo.TYPE_UNKNOWN
ImmutablePropertyInfo.TYPE_FREEFORM
ImmutablePropertyInfo.TYPE_TEXT
ImmutablePropertyInfo.TYPE_IDENTIFIER
ImmutablePropertyInfo.TYPE_PASSWORD
ImmutablePropertyInfo.TYPE_TEXTENCRYPTED
ImmutablePropertyInfo.TYPE_DATETIME
ImmutablePropertyInfo.TYPE_DATE
ImmutablePropertyInfo.TYPE_TIMEOFDAY
ImmutablePropertyInfo.TYPE_TRUEFALSE
ImmutablePropertyInfo.TYPE_NUMBER
ImmutablePropertyInfo.TYPE_DECIMAL
ImmutablePropertyInfo.TYPE_AMOUNT
ImmutablePropertyInfo.TYPE_TOPLEVEL_PAGE
ImmutablePropertyInfo.TYPE_INCLUDED_PAGE
ImmutablePropertyInfo.TYPE_DISTINCT_PAGE
java.lang.String getTypeName()
int getMaxLength()
boolean hasAttrError()
true
if the Error attribute is set,
false
otherwiseboolean hasAttrIncompatible()
true
if the Incompatible attribute is set,
false
otherwiseboolean hasAttrProtected()
true
if the Protected attribute is set,
false
otherwiseboolean hasAttrUndefined()
true
if the Undefined attribute is set,
false
otherwiseboolean hasGoodValue()
true
if this property is not empty and does not have the Error
or External attribute set, false
otherwiseboolean hasInvalidValue()
true
if this property is not empty and has the External
attribute set, false
otherwiseboolean hasValidValue()
true
if this property is not empty and does not have the
External attribute set, false
otherwiseClipboardPage getPageValue(int aIndex)
aIndex
- one-based index of the desired element. Pass the
special value ClipboardProperty.LIST_APPEND to have a new page
appended to this list and returned.WrongModeException
- this property is not a page listClipboardPage getPageValue(java.lang.String aGroupSubscript)
aGroupSubscript
- name of element value to be returnedWrongModeException
- this property is not a page or page groupClipboardProperty getPropertyValue(int aIndex)
aIndex
- one-based index of the desired element. Pass the
special value ClipboardProperty.LIST_APPEND to have a new property
appended to this list and returned.WrongModeException
- this property is not a listClipboardProperty getPropertyValue(java.lang.String aGroupSubscript)
aGroupSubscript
- name of the element to returnWrongModeException
- this property is not a page or groupjava.lang.String getStringValue(int aIndex)
aIndex
- one-based index of the desired element. Pass the
special value ClipboardProperty.LIST_APPEND to have a new property
appended to this list and returned.WrongModeException
- this property is not a string listjava.lang.String getStringValue(java.lang.String aGroupSubscript)
aGroupSubscript
- name of the group element value to returnWrongModeException
- this property is not a page or string groupjava.lang.Object getObjectValue()
WrongModeException
- The property's mode is not ImmutablePropertyInfo.MODE_JAVAOBJECT
.java.lang.Object getObjectValue(int aIndex)
aIndex
- one-based index of the desired element. Pass the
special value ClipboardProperty.LIST_APPEND to have a new property
appended to this list and returned.WrongModeException
- this property is not a Java Object Listjava.lang.Object getObjectValue(java.lang.String aGroupSubscript)
aGroupSubscript
- name of the group element value to returnWrongModeException
- this property is not a page or Java Object groupint indexOf()
WrongModeException
- this property is not a listboolean isEmpty()
true
if the property is a list or group
that has no elements, a page that contains no properties,
a string that is null, or the mode is unknownboolean isList()
true
if the property contains a list,
false
otherwiseboolean isGroup()
true
if the property contains a group,
false
otherwiseboolean isJavaObject()
true
if the property is a JavaObject,
false
otherwiseboolean isPage()
true
if the property has a page mode,
false
otherwiseboolean isBad()
true
if this property is not empty and has
the External attribute set, or has the Error attribute
set, false
otherwiseboolean isModifiable()
true
if this property is modifiable,
false
otherwiseboolean isScalar()
true
if this property is scalar,
false
otherwiseboolean isSpecial()
true
if this property is special,
false
otherwisevoid addMessage(java.lang.String aMsgDescr)
aMsgDescr
- the message to be added to this propertyInvalidParameterException
- aMsgDescr cannot be nullReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid addMessage(java.lang.String aMsgDescr, java.lang.String aFieldName)
aMsgDescr
- the message to be added to this propertyaFieldName
- 'field name' for the FieldValue definitions this will be translated throughInvalidParameterException
- aMsgDescr cannot be nullReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid addMessageWithKey(java.lang.String aMsgDescr, java.lang.String aPzInsKey)
aMsgDescr
- the message to be added to this propertyaPzInsKey
- (optional) The pzInsKey of the rule where the message originated.InvalidParameterException
- aMsgDescr cannot be nullReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid addMessageWithKey(java.lang.String aMsgDescr, java.lang.String aFieldName, java.lang.String aPzInsKey)
aMsgDescr
- the message to be added to this propertyaFieldName
- 'field name' for the FieldValue definitions this will be translated throughaPzInsKey
- (optional) The pzInsKey of the rule where the message originated.InvalidParameterException
- aMsgDescr cannot be nullReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid clearMessages()
ReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid clearAttrProtected()
ReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid clearValue()
ReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedjava.util.Iterator iterator()
WrongModeException
- this property does not contain a
list, page, or groupboolean toBoolean()
InvalidValueException
- if this property is not empty and
it cannot be converted to a boolean.boolean toBoolean(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property is empty or not present on the clipboard (instead of returning the default empty value).
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a boolean.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.boolean toBoolean(boolean aDefault)
aDefault
- The value to return if the actual property value can't be
returned for some reason (it's blank or doesn't contain a boolean value).aDefault
if the
actual value could not be returned.java.util.Date toDate()
InvalidValueException
- if this property is not empty and
it cannot be converted to a Date.java.util.Date toDate(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of returning the default empty value).
If the property is missing or empty, and PegaAPI.isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a Date.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.double toDouble()
InvalidValueException
- if this property is not empty and
it cannot be converted to a double.double toDouble(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of the default empty value).
If the property is missing or empty, and isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a double.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.com.pega.ibm.icu.math.BigDecimal toBigDecimal()
InvalidValueException
- if this property is not empty and
it cannot be converted to a BigDecimal.com.pega.ibm.icu.math.BigDecimal toBigDecimal(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of returning the default empty value).
If the property is missing or empty, and PegaAPI.isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a BigDecimal.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.int toInteger()
InvalidValueException
- if this property is not empty and
it cannot be converted to a integer.int toInteger(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of returning the default empty value).
If the property is missing or empty, and PegaAPI.isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a double.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toString(com.pega.pegarules.priv.PegaAPI aPega)
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of returning the default empty value).
If the property is missing or empty, and PegaAPI.isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.InvalidValueException
- if this property is not empty and
it cannot be converted to a double.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.ClipboardPage getPageValue()
ImmutablePropertyInfo.MODE_PAGE
.null
).WrongModeException
- The property's mode is not ImmutablePropertyInfo.MODE_PAGE
.java.lang.String getStringValue()
ImmutablePropertyInfo.MODE_STRING
.
The string value returned is raw-- it is not validated or formatted as
a result of this method.null
).WrongModeException
- The property's mode is not ImmutablePropertyInfo.MODE_STRING
.java.lang.String getStringValue(boolean aAvoidAutoChain)
java.lang.String getStringValue(com.pega.pegarules.priv.PegaAPI aPega)
ImmutablePropertyInfo.MODE_STRING
.
The string value returned is raw-- it is not validated or formatted as
a result of this method.
Use this method if the caller may want to know whether this property
is empty or not present on the clipboard (instead of the default empty value).
If the property is missing or empty, and isBackwardChaining()
is set to true
, a MissingPropertyException
is thrown.
aPega
- The current PegaAPI, used to determine if backward chaining is enabled.null
).WrongModeException
- The property's mode is not ImmutablePropertyInfo.MODE_STRING
.MissingPropertyException
- if this property is empty or missing,
and PegaAPI.isBackwardChaining()
is set to true
.int getDecimalPrecision()
java.lang.String getEntryHandle()
java.lang.String getEntryHandle(java.lang.String aPropertyReference)
getEntryHandle()
if there is a Reference Property somewhere within the structure covered by aPropertyReference.aPropertyReference
- property reference to get the entry handle for. The reference is evaluated relative to this property. This property
cannot be a List or Group, but elements are allowed. For instance, this property can't be .pxResults, but .pxResults(1) is allowed.WrongModeException
- this property is a list or groupjava.lang.String getEntryHandle(boolean aIncludeSubscripts)
aIncludeSubscripts
- Should the entry handle include subscript details for list/groups?java.lang.String getMessages()
int getMessageCount()
void setAttrProtected()
ReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedboolean setValue(boolean aValue)
aValue
- the new value for this property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modified
Note: setting the value of a property clears any messages associated with that property as well!boolean setValue(java.util.Date aValue)
aValue
- the new value for this property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modified
Note: setting the value of a property clears any messages associated with that property as well!boolean setValue(double aValue)
aValue
- the new value for this property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modified
Note: setting the value of a property clears any messages associated with that property as well!boolean setValue(int aValue)
aValue
- the new value for this property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modified
Note: setting the value of a property clears any messages associated with that property as well!boolean setValue(com.pega.ibm.icu.math.BigDecimal aValue)
aValue
- the new value for this property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedboolean setValue(java.lang.Object aValue)
aValue
- An object to be used as the new value of this
property. If aValue is an embedded ClipboardProperty
or a named or embedded ClipboardPage, a copy of the value is made
and placed into the list. Note that properties with blank ("") values may be stripped from the page during serialization.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedboolean setValueFromLocalizedString(java.lang.String aLocale, java.lang.String aValue)
aLocale
- locale in which value is to be interpreted, or null
for defaultaValue
- value to be interpreted and settrue
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedboolean setValue(ClipboardProperty aValue)
aValue
- A ClipboardProperty object whose value will be copied
and used as the new value of this property. The attributes of this source
property are also copied to the target property.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedvoid add(java.lang.Object aValue)
aValue
- A ClipboardProperty, String, ClipboardPage, or StringMap
object to be appended to this list property. If aValue is an
embedded ClipboardProperty
or a named or embedded ClipboardPage, a copy of the value
is made
and placed into the list. The mode of
the new value must match that of this list. If this property
is of mode Java Object List, any class of object is accepted as
a value. Note that if a ClipboardProperty with a mode of Java
Object is passed, it will be treated as an entry in the list, not
a Java Object value.ReadOnlyException
- this property is embedded on a
Read-Only page and cannot be modifiedvoid add(int aAtPosition, java.lang.Object aValue)
aAtPosition
- Index of the new value's position (where the
first position is 1)aValue
- A ClipboardProperty, String, ClipboardPage, or StringMap
object to be inserted into this list property. If aValue is an embedded ClipboardProperty
or a named or embedded ClipboardPage, a copy of the value is made
and placed into the list. The mode of
the new value must match that of this list. If this property
is of mode Java Object List, any class of object is accepted as
a value. Note that if a ClipboardProperty with a mode of Java
Object is passed, it will be treated as an entry in the list, not
a Java Object value.ReadOnlyException
- this property is embedded on a
Read-Only page and cannot be modifiedint size()
ClipboardProperty getProperty(java.lang.String aReference)
ClipboardProperty
instance corresponding
to the referenced item. If this property is a list and
aReference is a numeric string, that item from the list will
be returned. If this property is a group the aReference will
be used as a group name. If the property is a page then
aReference will be used as a property name on that page.
Any other property mode fails with a WrongModeException.aReference
- property index or subscriptClipboardProperty
instanceWrongModeException
- this property is not a page, list, or groupClipboardPage getParentPage()
null
.ClipboardProperty getParentProperty()
null
.ClipboardPage getTopLevelPage()
boolean seekValue(PublicAPI aTools)
aTools
- The current PublicAPI contexttrue
if goal seek succeededMissingPropertyException
- Thrown if upstream input property is missing or empty and goal seek fails.IndeterminateGoalException
- Thrown if goal property doesn't exist in top-level page's class, or isn't a target property of a declarative expression.boolean seekValue(PublicAPI aTools, boolean aAlwaysRecompute)
aTools
- The current PublicAPI contextaAlwaysRecompute
- true
to always goal-seek even if property has a value.true
if goal seek succeededMissingPropertyException
- Thrown if upstream input property is missing or empty and goal seek fails.IndeterminateGoalException
- Thrown if goal property doesn't exist in top-level page's class, or isn't a target property of a declarative expression.void setEntryCode(java.lang.String aEntryCode)
ImmutablePropertyInfo.getEntryCode()
.
This method is public only to allow our generation facilities to set this value for performance reasons. Use at your own risk.
aEntryCode
- the entry code used to set the property definitionjava.lang.String getLocalizedText()
java.lang.String getLocalizedText(java.lang.String aString)
aString
- a String to localizejava.lang.String getStandardText(java.lang.String aKey)
aKey
- Stringjava.lang.String getStringValue(int aIndex, java.lang.String aPropertyName)
this.getPageValue(aIndex).getString(aPropertyname)
.
Especially useful when accessing values in a Lightweight Page List.aIndex
- one-based index of the desired element.aPropertyName
- name of the property whose value should be returnedboolean isLightweight()
true
if it is.java.util.List getColumnNames()
WrongModeException
- if this property is not a lightweight page listjava.util.List getColumnInfos()
WrongModeException
- if this property is not a lightweight page listboolean moveValue(java.lang.Object aSourceValue)
setValue(Object)
if the source property is destined to be
discarded (e.g., coming from a temporary list).aSourceValue
- A ClipboardProperty object whose value will be copied
and used as the new value of this property. The attributes of this source
property are also copied to the target property. This property and its
value are guaranteed to be removed from its parent page or list, but
are not guaranteed to be the actual objects embedded in this page.
Use a getValue() method to retrive the new value.true
if the value is set, false
otherwiseUnmodifiablePropertyException
- if this property cannot be modified due to being Reserved or ProtectedReadOnlyException
- if this property is embedded on a
Read Only page and cannot be modifiedboolean isListElement()
boolean isGroupElement()
void setQualifier(java.lang.String aName, java.lang.String aValue)
null
.aName
- name of the qualifier to setaValue
- new value of the qualifier, null
if the qualifier should be removedPRRuntimeException
- if the qualifier is not defined or if it is defined as a design-time qualifierjava.lang.String getQualifier(java.lang.String aName)
aName
- name of the qualifier to getnull
if a value has not been set.PRRuntimeException
- if the qualifier is not defined or if it is defined as a design-time qualifiervoid setAsReference(PRThread aThread, ClipboardProperty aSourceProperty)
aThread
- aSourceProperty
- WrongModeException
void setAsReference(PRThread aThread, ClipboardProperty aSourceProperty, ParameterPage params)
aThread
- aSourceProperty
- params
- WrongModeException
boolean resetReferenceInformation()
java.lang.String getReferenceInformation()
boolean hasReference()
java.lang.String getReferenceString()
boolean isDefinedAsReference()
java.lang.String getGatewayPageName(ClipboardPage aPage, java.lang.String aGatewayClass)
aPage
- The page holding the gateway property itselfaGatewayClass
- The gateway class of the propertyvoid setAsReference(PRThread aThread, java.lang.String aPageName)
void setAsReference(PRThread aThread, java.lang.String aPageName, ParameterPage aParams)
void adoptLightweightList(java.lang.String aDataTransFormName)
aDataTransFormName
- name of the data transform to populate pyMapping. The Data
transform should be defined in Code-Pega-List and should
specify the properties the page list will hold virtual in
natureWrongModeException
- this property is not a pagelistInvalidParameterException
- the pagelist property is non emptyCopyright © 2015 Pegasystems Inc. All Rights Reserved.