Public Member Functions | Static Public Attributes | Protected Member Functions

de.fraunhofer.isst.axbench.operations.ValidityChecker Class Reference

Checks the validity of an element. More...

List of all members.

Public Member Functions

boolean check (IAXLangElement theElement)
 Checks the validity of an element and returns success/failure.
 ValidityChecker ()
 Constructor.

Static Public Attributes

static final String ID_IN_ELEMENT = "axlin"
 identifier of the input element

Protected Member Functions

Map< String, Object > executeConcreteOperation (Map< String, Object > theInputParameters)
 Checks an aXLang element for validity.

Detailed Description

Checks the validity of an element.

This class checks if the elements of a model are valid. It checks the following conditions:

Author:
ekleinod
Version:
0.9.0
Since:
0.7.0

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.operations.ValidityChecker.ValidityChecker (  ) 

Constructor.

Element input parameters:

  • one aXLang element

Member Function Documentation

boolean de.fraunhofer.isst.axbench.operations.ValidityChecker.check ( IAXLangElement  theElement  ) 

Checks the validity of an element and returns success/failure.

This method is a convenience method for using the ValidityChecker.

Usage (create object in order to access the generated messages):

ValidityChecker theValidityChecker = new ValidityChecker();
boolean isSuccess = theValidityChecker.check(axlElement);
theValidityChecker.getAXLMessages(MessageType.ERROR);

Usage (no access to the generated messages):

boolean isSuccess = new ValidityChecker().check(axlElement);
if (isSuccess) {
	...
}
Parameters:
theElement element to check
Returns:
success
Return values:
true valid
false not valid
Map<String, Object> de.fraunhofer.isst.axbench.operations.ValidityChecker.executeConcreteOperation ( Map< String, Object >  theInputParameters  )  [protected]

Checks an aXLang element for validity.

If the element is not valid, at least one error has to be set. Therefore the success of the check has to be checked by counting the errors resp. warnings.

Parameters:
theInputParameters map of the input parameters (empty map or null allowed)
Returns:
map of the output parameters (empty map allowed)

Reimplemented from de.fraunhofer.isst.axbench.api.operations.AbstractAXLOperation.


Member Data Documentation

identifier of the input element