|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.statespace.impl.OCLStateValidator
public class OCLStateValidator
OCL state validator.
Field Summary | |
---|---|
static String |
VALIDATOR_ID
ID of this validator. |
Constructor Summary | |
---|---|
OCLStateValidator()
Default constructor. |
Method Summary | |
---|---|
String |
getName()
Get the name of this validator. |
static void |
register()
Register this validator in the global validator registry in the state space plug-in. |
void |
setProperty(String property)
Set the property to be validated. |
void |
setStateSpaceIndex(StateSpaceIndex index)
Set the state space index to be used. |
boolean |
usesProperty()
Determines whether this validator uses a property or not. |
ValidationResult |
validate(State state,
org.eclipse.core.runtime.IProgressMonitor monitor)
Perform the validation for the given state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VALIDATOR_ID
Constructor Detail |
---|
public OCLStateValidator()
Method Detail |
---|
public static void register()
public ValidationResult validate(State state, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
StateValidator
validate
in interface StateValidator
state
- State to be validated.monitor
- Progress monitor.
Exception
- If an error occurs during the validation.public void setProperty(String property) throws ParseException
Validator
setProperty
in interface Validator
property
- Property.
ParseException
- If the property cannot be parsed.public void setStateSpaceIndex(StateSpaceIndex index)
Validator
setStateSpaceIndex
in interface Validator
index
- State space index.public String getName()
Validator
getName
in interface Validator
public boolean usesProperty()
Validator
Validator.setProperty(String)
.
usesProperty
in interface Validator
true
if it can use a property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |