uk.org.ogsadai.client.toolkit.exception
Class ResourcePropertyValueCountException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.org.ogsadai.exception.DAIException
              extended by uk.org.ogsadai.exception.ResourcePropertyValueParseException
                  extended by uk.org.ogsadai.client.toolkit.exception.ResourcePropertyValueCountException
All Implemented Interfaces:
java.io.Serializable, DAIExceptionInformation

public class ResourcePropertyValueCountException
extends ResourcePropertyValueParseException

Exception thrown if the number of resource propery values is not what was expected.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
static int UNLIMITED
          Used to specifiy an unlimited maximum number of values
 
Constructor Summary
ResourcePropertyValueCountException(int min, int max, int actualCount)
          Constructor.
 
Method Summary
 int getActualValuesCount()
          Gets the actuals number of values.
 int getMaximumValuesAllowed()
          Gets the maximum number of allowed values.
 int getMinimumValuesAllowed()
          Gets the minimum number of allowed values.
 
Methods inherited from class uk.org.ogsadai.exception.DAIException
getErrorID, getExceptionID, getLocalizedMessage, getMessage, getParameters, hasChild, setErrorID, setParameters
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNLIMITED

public static int UNLIMITED
Used to specifiy an unlimited maximum number of values

Constructor Detail

ResourcePropertyValueCountException

public ResourcePropertyValueCountException(int min,
                                           int max,
                                           int actualCount)
Constructor.

Parameters:
min - minimum number of resource property values allowed.
max - maximum number of resource property values allowed. If the maximum is unlimited use the UNLIMITED.
actualCount - actual number of resource property values.
Method Detail

getMinimumValuesAllowed

public int getMinimumValuesAllowed()
Gets the minimum number of allowed values.

Returns:
mimimum number of resource property values allowed.

getMaximumValuesAllowed

public int getMaximumValuesAllowed()
Gets the maximum number of allowed values.

Returns:
the maximum number of allowed values, or UNLIMITED if there is no maximum.

getActualValuesCount

public int getActualValuesCount()
Gets the actuals number of values.

Returns:
actual number of values.