Public Member Functions | Protected Member Functions | Static Private Attributes

de.fraunhofer.isst.axbench.operations.transformer.CloneTester Class Reference

Checks the clone method for individual elements. More...

List of all members.

Public Member Functions

 CloneTester ()
 Constructor.

Protected Member Functions

Map< String, Object > executeConcreteOperation (Map< String, Object > theInputParameters)
 Clones an aXLang element.

Static Private Attributes

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

Detailed Description

Checks the clone method for individual elements.

Author:
mgrosse
ekleinod
Version:
0.9.0
Since:
0.7.2

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.operations.transformer.CloneTester.CloneTester (  ) 

Constructor.

Element input parameters:

  • one aXLang model Element output parameters:
  • aXLang model with cloned elements

Member Function Documentation

Map<String, Object> de.fraunhofer.isst.axbench.operations.transformer.CloneTester.executeConcreteOperation ( Map< String, Object >  theInputParameters  )  [protected]

Clones an aXLang element.

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.

  1. check if mandatory attributes are set
  2. check if all needed elements are stored with the right cardinality
  3. check if stored elements are of the right type
  4. check special check method for this element
  5. check all children recursively
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

identifier of the cloned element