|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.validation.internal.core.SMLMainValidator
public class SMLMainValidator
This is the starting point for a validation process. Clients are encouraged to re-use the same instance
with the this#initialize(Map) and/or this#setAttribute(String, String) methods
to configure an instance based on a specific setting.
| Constructor Summary | |
|---|---|
SMLMainValidator()
The constructor |
|
| Method Summary | |
|---|---|
protected AbstractValidationOutput |
createValidationOutput()
Create a validation output based on the environment that the validation is being performed in. |
java.util.Map |
getAttributes()
Returns the attributes |
void |
initialize(java.util.Map attributes)
The initialize method is used to pass in multiple attributes at the same time |
static void |
main(java.lang.String[] args)
The main method - Used to set the appropriate attributes based on the program arguments. |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set an attribute of this type. |
protected void |
setDefaultAttributes()
Sets default values for attributes |
boolean |
start()
Start the validation process |
void |
validationErrorOccurred(ValidationEvent event)
A validation error occurred. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SMLMainValidator()
| Method Detail |
|---|
protected void setDefaultAttributes()
public void initialize(java.util.Map attributes)
attributes - The attributes. The key and value pairs are expected
to be of type String
public void setAttribute(java.lang.String key,
java.lang.String value)
key - The attribute key (see the ATTRIBUTE_* constants of this class)value - The value of the attributepublic boolean start()
protected AbstractValidationOutput createValidationOutput()
public java.util.Map getAttributes()
public static void main(java.lang.String[] args)
args - The program argumentspublic void validationErrorOccurred(ValidationEvent event)
IValidationListener
validationErrorOccurred in interface IValidationListener
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||