|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.core.ExecutionPointDescriptor
public class ExecutionPointDescriptor
embodies a description of the execution points at which validations are to be triggered. Currently, three types of execution point descriptors are supported:
In ACTF, the first type of execution point descriptor is only meaningful in the context of an aspect-oriented programming environment in which validation code can be woven into the target class at the appropriate point of invocation. The other types can be implemented via listeners and proxies handled via the Java Reflection API.
Note: The API and functionality for this class are not complete.
Field Summary | |
---|---|
static int |
EVENT_EXECUTION_POINT
|
static String |
EVENT_TYPE
|
static String |
EXECUTION_POINT_NAME
|
static String |
EXECUTION_POINT_VALIDATOR
|
protected List |
executionTargets
|
static int |
METHOD_EXECUTION_POINT
|
static String |
METHOD_TYPE
|
protected List |
modelTransitions
|
protected String |
name
|
static int |
PROPERTYCHANGED_EXECUTION_POINT
|
protected String |
ruleBaseName
|
protected String |
validatorName
|
Constructor Summary | |
---|---|
ExecutionPointDescriptor(String name,
String ruleBaseName)
|
|
ExecutionPointDescriptor(String name,
String validatorName,
List executionTargets,
List modelTransitions)
|
|
ExecutionPointDescriptor(String name,
String ruleBaseName,
String validatorName,
List executionTargets)
|
|
ExecutionPointDescriptor(String name,
String ruleBaseName,
String validatorName,
List executionTargets,
List modelTransitions)
create a descriptor for a set of execution points. |
Method Summary | |
---|---|
ExecutionPointTarget[] |
getExecutionTargets()
|
ModelTransition[] |
getModelTransitions()
|
String |
getName()
|
String |
getQualifiedName()
Execution point names can be reused across rule bases but they must be unique within a rule base. |
String |
getRuleBaseName()
|
String |
getValidatorName()
|
void |
printDescriptor(int indent)
|
void |
setExecutionTargets(List targets)
|
void |
setModelTransitions(List transitions)
|
void |
setName(String name)
|
void |
setRuleBaseName(String rbName)
|
void |
setValidatorName(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int METHOD_EXECUTION_POINT
public static final int EVENT_EXECUTION_POINT
public static final int PROPERTYCHANGED_EXECUTION_POINT
public static final String EXECUTION_POINT_NAME
public static final String EXECUTION_POINT_VALIDATOR
public static final String METHOD_TYPE
public static final String EVENT_TYPE
protected String name
protected String ruleBaseName
protected String validatorName
protected List executionTargets
protected List modelTransitions
Constructor Detail |
---|
public ExecutionPointDescriptor(String name, String ruleBaseName, String validatorName, List executionTargets, List modelTransitions)
rule_base_name:execution_point_name
.
Each execution point has an associated validator class that is to be used when validating components. A rule base can have more than one execution point descriptor where each descriptor is differentiated by its targets and validators.
The list of execution point targets defines the condition or criteria for firing
the execution point. Execution point targets define a specific target class name and
a type of either method-based,raven:method
, or event-based,
raven:event
.
name
- - name of this ExecutionPointDescriptorruleBaseName
- - name of the IRuleBase for the contained ExecutionPointvalidatorName
- - the IValidator class name to be used when generating ExecutionPointsexecutionTargets
- - the execution point targets for this ExecutionPointDescriptormodelTransitions
- - the architecture transitions for this ExecutionPointDescriptorExecutionPointTarget
,
EventExecutionPointTarget
,
IModel transitions are used to handle cross-model validations. Java UI code
libraries can support embedded GUI implementations. For instance, SWT GUIs can embed
Swing GUIs. Since rule bases are specific to GUI Models and execution points are
unique to a rule base, the model transition raven:architectureTransition
provides a way for a validation in one GUI model to transition to different GUI
models. The model transition defines a regular expression to match and a
new execution point and rule base to use when validating the new GUI model.
,
ModelTransition
public ExecutionPointDescriptor(String name, String validatorName, List executionTargets, List modelTransitions)
public ExecutionPointDescriptor(String name, String ruleBaseName, String validatorName, List executionTargets)
name
- - name of this ExecutionPointDescriptorruleBaseName
- - name of the IRuleBase for the contained ExecutionPointvalidatorName
- - the IValidator class name to be used when generating ExecutionPointsexecutionTargets
- - the execution point targets for this ExecutionPointDescriptorpublic ExecutionPointDescriptor(String name, String ruleBaseName)
name
- - name of this ExecutionPointDescriptorruleBaseName
- - name of the IRuleBase for the contained ExecutionPointMethod Detail |
---|
public String getName()
public void setName(String name)
name
- - name of this descriptorpublic String getRuleBaseName()
public void setRuleBaseName(String rbName)
name
- - name of this descriptorpublic ExecutionPointTarget[] getExecutionTargets()
public void setExecutionTargets(List targets)
targets
- the executionPointTargets to setpublic String getValidatorName()
public void setValidatorName(String name)
name
- the validator name to setpublic ModelTransition[] getModelTransitions()
public void setModelTransitions(List transitions)
transitions
- -- the model transitions to setpublic String getQualifiedName()
rule_base_name:execution_point_name
.
public void printDescriptor(int indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |