org.jdtaus.core.container
Class IncompatibleImplementationException

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.IncompatibleImplementationException
All Implemented Interfaces:
Serializable

public class IncompatibleImplementationException
extends IllegalStateException

Gets thrown for implementation incompatibilities.

An Implementation is required to implement and to depend on a specification version compatible with the version in use. This exception gets thrown for any implementation implementing or depending on a specification version incompatible with the version in use.

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

Constructor Summary
IncompatibleImplementationException(String specificationIdentifier, String specifiedVersion, String implementationIdentifier, String implementedVersion, String requiredVersion)
          Creates a new IncompatibleImplementationException instance taking the implementation not implementing the specification version in use or depending on a specification version incompatible to the version in use.
 
Method Summary
 String getImplementationIdentifier()
          Gets the identifier of the implementation not implementing the specification version in use.
 String getImplementedVersion()
          Gets the implemented version of the specification in use.
 String getRequiredVersion()
          Gets the required version of the specification in use.
 String getSpecificationIdentifier()
          Gets the identifier of the specification.
 String getSpecifiedVersion()
          Gets the version of the specification in use.
 
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

IncompatibleImplementationException

public IncompatibleImplementationException(String specificationIdentifier,
                                           String specifiedVersion,
                                           String implementationIdentifier,
                                           String implementedVersion,
                                           String requiredVersion)
Creates a new IncompatibleImplementationException instance taking the implementation not implementing the specification version in use or depending on a specification version incompatible to the version in use.

Parameters:
specificationIdentifier - the identifier of the specification.
specifiedVersion - the version of the specification in use.
implementationIdentifier - the identifier of the implementation incompatible to specifiedVersion.
implementedVersion - the version implemented or null if the implementation does not implement the specification.
requiredVersion - the version the implementation depends on or null if the implementation does not depend on the specification.
Method Detail

getImplementationIdentifier

public String getImplementationIdentifier()
Gets the identifier of the implementation not implementing the specification version in use.

Returns:
the identifier of the implementation not implementing the specification version in use.

getImplementedVersion

public String getImplementedVersion()
Gets the implemented version of the specification in use.

Returns:
the implemented version of the specification in use or null if the implementation does not implement the specification.

getRequiredVersion

public String getRequiredVersion()
Gets the required version of the specification in use.

Returns:
the version the implementation depends on or null if the implementation does not depend on the specification.

getSpecificationIdentifier

public String getSpecificationIdentifier()
Gets the identifier of the specification.

Returns:
the identifier of the specification.

getSpecifiedVersion

public String getSpecifiedVersion()
Gets the version of the specification in use.

Returns:
the version of the specification in use.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.