Class SuffixMultipleConstraintIDGenerator
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.processes.SuffixMultipleConstraintIDGenerator
- All Implemented Interfaces:
MultipleConstraintIDGenerator
public class SuffixMultipleConstraintIDGenerator
extends Object
implements MultipleConstraintIDGenerator
Strategy for creating new constraintID from a given constraintID based on applying a suffix "_number".
E.g. "_1", "_2", ...
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateNewConstraintsIDs
(ConstraintID originalID, int numberOfRequiredIDs) Generates a list of constraintIDs from a single constraintID.
-
Field Details
-
CONSTRAINT_ID_PATTERN
- See Also:
-
-
Constructor Details
-
SuffixMultipleConstraintIDGenerator
public SuffixMultipleConstraintIDGenerator()
-
-
Method Details
-
generateNewConstraintsIDs
public List<ConstraintID> generateNewConstraintsIDs(ConstraintID originalID, int numberOfRequiredIDs) Description copied from interface:MultipleConstraintIDGenerator
Generates a list of constraintIDs from a single constraintID.- Specified by:
generateNewConstraintsIDs
in interfaceMultipleConstraintIDGenerator
- Parameters:
originalID
- the original constraintIDnumberOfRequiredIDs
- the number of constraintIDs to be generated- Returns:
- a list of constraintIDs
-