public class ActivityValidator extends Object
Constructor and Description |
---|
ActivityValidator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
EventProcessor |
getEventProcessor()
This method gets the event processor used to
intercept and analyse the activity event.
|
String |
getName()
This method returns the name of the activity validator.
|
Predicate |
getPredicate()
This method gets the optional predicate that can be
used to assess whether a supplied activity is
applicable to the validator.
|
String |
getVersion()
This method returns the version of the activity validator.
|
void |
init()
Initialize the activity validator.
|
void |
setEventProcessor(EventProcessor ep)
This method sets the event processor used to
intercept and analyse the activity event.
|
void |
setName(String name)
This method sets the name of the activity validator.
|
void |
setPredicate(Predicate predicate)
This method sets the optional predicate that can be
used to assess whether a supplied activity is
applicable to the validator.
|
void |
setVersion(String version)
This method sets the version of the activity validator.
|
void |
validate(ActivityType actType)
This method validates the intercepted activity event.
|
public String getName()
public void setName(String name)
name
- The namepublic String getVersion()
public void setVersion(String version)
version
- The versionpublic void setPredicate(Predicate predicate)
predicate
- The predicatepublic Predicate getPredicate()
public void setEventProcessor(EventProcessor ep)
ep
- The event processorpublic EventProcessor getEventProcessor()
public void init() throws Exception
Exception
- Failed to initializepublic void validate(ActivityType actType) throws Exception
actType
- The activity typeException
- Failed to validate activityCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.