public interface PRObjectWrapper
See ClipboardPage.attachJavaObject(com.pega.pegarules.pub.clipboard.PRObjectWrapper)
for more information.
Note that any class that may be serialized in the PegaRULES database should have a unique identifier defined. This will allow serialized objects to be deserialized across versions and implementations of JVMs. To define the identifier, include a private field:
private static final long serialVersionUID = [a unique long]L;
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
prAdd(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex,
PRObjectWrapper aValue)
Called when adding an element to an object list.
|
void |
prAdd(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex,
java.lang.String aValue)
Called when adding a String to a list.
|
void |
prClear(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName)
Called when a Java Property List property is being cleared.
|
PRObjectWrapper |
prCopy()
Called when a Page that has an attached object is copied.
|
java.lang.String |
prGet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName)
Called when retrieving a Java Property's value.
|
java.lang.String |
prGet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex)
Called when retrieving a Java Property List element's value.
|
PRObjectWrapper |
prGetNew(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName)
Called when retrieving a new element to be added to a list.
|
PRObjectWrapper |
prGetObject(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName)
Called when retrieving an embedded object from this object.
|
PRObjectWrapper |
prGetObject(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex)
Called when retrieving an embedded object from a list contained
in this object.
|
java.lang.Object |
prGetWrappedObject()
Used to get the object contained in this wrapper.
|
void |
prRemove(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex)
Remove an element from a Page List or Java Property List.
|
boolean |
prSet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex,
PRObjectWrapper aValue)
Called when an embedded object in a list is being set.
|
boolean |
prSet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
int aIndex,
java.lang.String aValue)
Called when a Java Property List element's value is being set.
|
boolean |
prSet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
PRObjectWrapper aValue)
Called when an embedded object is being set.
|
boolean |
prSet(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName,
java.lang.String aValue)
Called when a Java Property's value is being set.
|
int |
prSize(PublicAPI aTools,
ClipboardProperty aProperty,
java.lang.String aMethodName)
Returns the number of elements in a list or the number of characters in a string value.
|
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
void prAdd(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex, PRObjectWrapper aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Page List property that is being added toaMethodName
- the name of the Page List property that is being added toaIndex
- 0-based index of the new element being added. aValue
- wrapper currently attached to the Page being added to the Page List. May be null
.void prAdd(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex, java.lang.String aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property / String List property that is being added toaMethodName
- the name of the Java Property / String List property that is being added toaIndex
- 0-based index of the new element being added. aValue
- New String value being added to the listvoid prClear(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property List property that is being clearedaMethodName
- the name of the Java Property List property that is being clearedPRObjectWrapper prCopy()
this
, or even return null
.null
java.lang.String prGet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property whose value is being retrievedaMethodName
- the name of the Java Propertynull
values will
be converted to an empty string ("") before being returned as a
clipboard property valuejava.lang.String prGet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property List whose element value is being retrievedaMethodName
- the name of the Java Property ListaIndex
- 0-based index into the list. null
values will
be converted to an empty string ("") before being returned as a
clipboard property valuePRObjectWrapper prGetNew(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property List to which this element value will be addedaMethodName
- the name of the Java Property ListPRObjectWrapper prGetObject(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Page property whose object we are trying to retrieveaMethodName
- the name of the Page propertyPRObjectWrapper prGetObject(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Page List property containing the element whose object we are trying to retrieveaMethodName
- the name of the Page List propertyaIndex
- 0-based index into the list. java.lang.Object prGetWrappedObject()
this
if the object
implements PRObjectWrapper itself.void prRemove(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the List property containing the element we are trying to removeaMethodName
- the name of the List propertyaIndex
- 0-based index into the list. boolean prSet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, java.lang.String aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property whose value is being setaMethodName
- the name of the Java PropertyaValue
- the new valuetrue
if the value was set successfullyboolean prSet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex, java.lang.String aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property List whose element is being setaMethodName
- the name of the Java Property ListaIndex
- 0-based index into the list. aValue
- the new valuetrue
if the value was set successfullyboolean prSet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, PRObjectWrapper aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Page property whose object is being setaMethodName
- the name of the Page propertyaValue
- the new objecttrue
if the object was set successfullyboolean prSet(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName, int aIndex, PRObjectWrapper aValue)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Page List property whose element's object is being setaMethodName
- the name of the Page List propertyaIndex
- 0-based index into the list. aValue
- the new objecttrue
if the object was set successfullyint prSize(PublicAPI aTools, ClipboardProperty aProperty, java.lang.String aMethodName)
aTools
- public tools available in the current activity's context. This may be null if there is no context (during system initialization).aProperty
- the Java Property or Java Property List property we are queryingaMethodName
- the name of the propertyCopyright © 2018 Pegasystems Inc. All Rights Reserved.