org.jdtaus.core.container
Class MultiplicityConstraintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by org.jdtaus.core.container.MultiplicityConstraintException
All Implemented Interfaces:
Serializable

public class MultiplicityConstraintException
extends IllegalStateException

Gets thrown for multiplicity constraint violations.

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.

Version:
$Id: MultiplicityConstraintException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Specification.getMultiplicity(), Serialized Form

Constructor Summary
MultiplicityConstraintException(String specificationIdentifier)
          Creates a new MultiplicityConstraintException taking the identifier of the specification for which the multiplicity constraint is violated.
 
Method Summary
 String getSpecificationIdentifier()
          Gets the identifier of the specification for which the multiplicity constraint is violated.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiplicityConstraintException

public MultiplicityConstraintException(String specificationIdentifier)
Creates a new MultiplicityConstraintException taking the identifier of the specification for which the multiplicity constraint is violated.

Parameters:
specificationIdentifier - identifier of the specification for which the constraint is violated.
Method Detail

getSpecificationIdentifier

public String getSpecificationIdentifier()
Gets the identifier of the specification for which the multiplicity constraint is violated.

Returns:
the identifier of the specification for which the multiplicity constraint is violated.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.