Class PBEEmptyCondition

Object
  |
  +--PBEAction
        |
        +--PBECondition
              |
              +--PBEAttributeCondition
                    |
                    +--PBEEmptyCondition

public class PBEEmptyCondition
extends PBEAttributeCondition


Description:
PBEEmptyCondition returns $true when the value of an attribute is $null or an empty string, otherwise it returns $false.

PBEEmptyCondition can be used in attribute events.


Event String Action Name:
empty


Syntax:

empty


Parameters
PBEEmptyCondition does not support any parameters.


Examples:
 PBE:attributeEvent(
   "product",
   "name",
   "before:new,save:if empty set('Default Name!')");
 
This event sets the attribute "name" of object "product" to "Default Name!" before activation of the "new" and "save" methods.


Fields inherited from class PBEAction
iParameters, iType, name, procName
 
Constructor Summary
PBEEmptyCondition()
           
 
Method Summary
 varchar parameters()
           
 
Methods inherited from class PBECondition
checkEvent, tracePerform
 
Methods inherited from class PBEAction
actionArguments, actionCall, actionParameters, attributeReference, callString, getObject, methodReference, nestedInput, objectReference, parameter, perform, performParameterCount, printPerform
 

Constructor Detail

PBEEmptyCondition

public PBEEmptyCondition()
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction