
public class MultiplicityConstraintException extends IllegalStateException
Specifications with a multiplicity of MULTIPLICITY_ONE specify
that exactly one corresponding implementation must be available among a set
of modules. This exception gets thrown for any specification violating this
constraint.
Specification.getMultiplicity(),
Serialized Form| Constructor and Description |
|---|
MultiplicityConstraintException(String specificationIdentifier)
Creates a new
MultiplicityConstraintException taking the
identifier of the specification for which the multiplicity constraint
is violated. |
| Modifier and Type | Method and Description |
|---|---|
String |
getSpecificationIdentifier()
Gets the identifier of the specification for which the multiplicity
constraint is violated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MultiplicityConstraintException(String specificationIdentifier)
MultiplicityConstraintException taking the
identifier of the specification for which the multiplicity constraint
is violated.specificationIdentifier - identifier of the specification for
which the constraint is violated.public String getSpecificationIdentifier()
Copyright © 2005-2012 jDTAUS. All Rights Reserved.