|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PRObjectWrapper
Interface used to define methods expected by Java Pages. PegaRULES will call these methods whenever a property on the page is referenced.
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;
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
| Method Detail |
|---|
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 List property that is being added toaMethodName - the name of the Java Property List property that is being added toaIndex - 0-based index of the new element being added. aValue - New String value being added to the list
void 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 Property
null values will
be converted to an empty string ("") before being returned as a
clipboard property value
java.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 value
PRObjectWrapper 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 List
PRObjectWrapper 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 property
PRObjectWrapper 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 value
true if the value was set successfully
boolean 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 value
true if the value was set successfully
boolean 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 object
true if the object was set successfully
boolean 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 object
true if the object was set successfully
int 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 property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||