Public Member Functions

de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature Class Reference

Feature models one feature. More...

List of all members.

Public Member Functions

 Feature ()
 Constructor.
Cardinality getCardinality ()
 Returns cardinality.
Feature getClone ()
 Returns the feature's clone.
List< String > getListIdentifier ()
 Returns a collection of identifiers that lead to this feature.
Collection< ElementWithMessagegetNonValidElements ()
 Computes the non-valid elements beginning from and including this element to it's children, children's children etc.
Feature getOrigin ()
 Returns the feature's origin.
boolean isAncestorOf (Feature otherFeature)
 Checks whether the otherFeature is a child of a child of a child ... of this feature (or the two coincide).
void setCardinality (Cardinality newCardinality)
 Sets cardinality.

Detailed Description

Feature models one feature.

Attributes
  • optional cardinality
Children
Author:
ekleinod
smann
Version:
0.9.0
Since:
0.1

Constructor & Destructor Documentation

de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.Feature (  ) 

Constructor.


Member Function Documentation

Cardinality de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.getCardinality (  ) 

Returns cardinality.

Returns:
cardinality
Return values:
null if not set

Reimplemented from de.fraunhofer.isst.axbench.axlang.elements.featuremodel.AbstractFeature.

Feature de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.getClone (  ) 

Returns the feature's clone.

The clone is set only if the element was cloned, during the cloning process.

Returns:
clone of the element
Return values:
null if the element was not cloned, or out of cloning process

Reimplemented from de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangElement.

List<String> de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.getListIdentifier (  ) 

Returns a collection of identifiers that lead to this feature.

Returns:
collection of identifiers
Collection<ElementWithMessage> de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.getNonValidElements (  ) 

Computes the non-valid elements beginning from and including this element to it's children, children's children etc.

An element is valid if it is valid itself and all it's children are valid as well.

Special checks:

  • a feature is optional below an 'OR' or 'XOR' feature
Returns:
list of non-valid elements with their errors
Return values:
empty list of element is valid

Reimplemented from de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangElement.

Feature de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.getOrigin (  ) 

Returns the feature's origin.

The origin is the feature, from which this feature was cloned, if the feature was cloned.

Returns:
origin of the feature
Return values:
null if the feature was not cloned

Reimplemented from de.fraunhofer.isst.axbench.axlang.api.AbstractAXLangElement.

boolean de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.isAncestorOf ( Feature  otherFeature  ) 

Checks whether the otherFeature is a child of a child of a child ... of this feature (or the two coincide).

Parameters:
otherFeature the feature that might be an ancestor
Returns:
true if this feature is an ancestor or equal to the otherFeature; false if not
void de.fraunhofer.isst.axbench.axlang.elements.featuremodel.Feature.setCardinality ( Cardinality  newCardinality  ) 

Sets cardinality.

Parameters:
newCardinality new cardinality