Checks the validity of an element. More...
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. |
Checks the validity of an element.
This class checks if the elements of a model are valid. It checks the following conditions:
de.fraunhofer.isst.axbench.operations.ValidityChecker.ValidityChecker | ( | ) |
Constructor.
Element input parameters:
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) { ... }
theElement | element to check |
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.
theInputParameters | map of the input parameters (empty map or null allowed) |
Reimplemented from de.fraunhofer.isst.axbench.api.operations.AbstractAXLOperation.
final String de.fraunhofer.isst.axbench.operations.ValidityChecker.ID_IN_ELEMENT = "axlin" [static] |
identifier of the input element