Package gov.nasa.pds.tools.dict.type
Class ContextDependentChecker
- java.lang.Object
-
- gov.nasa.pds.tools.dict.type.LengthChecker
-
- gov.nasa.pds.tools.dict.type.ContextDependentChecker
-
- All Implemented Interfaces:
TypeChecker
public class ContextDependentChecker extends LengthChecker implements TypeChecker
This class is used to provide a means to perform checks on values in the dictionary that are specified as ContextDependent.- Version:
- $Revision$
- Author:
- pramirez, jagander
-
-
Constructor Summary
Constructors Constructor Description ContextDependentChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cast(String value, AttributeStatement attribute)
This method does no checking right now and simply passes back the original value.-
Methods inherited from class gov.nasa.pds.tools.dict.type.LengthChecker
checkMaxLength, checkMinLength
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nasa.pds.tools.dict.type.TypeChecker
checkMaxLength, checkMinLength
-
-
-
-
Method Detail
-
cast
public Object cast(String value, AttributeStatement attribute) throws InvalidTypeException
This method does no checking right now and simply passes back the original value. It should follow the rules set forth in the pdsdd and data dictionary document for what is an allowable ContextDependent value.- Specified by:
cast
in interfaceTypeChecker
- Parameters:
value
- which must be cast- Returns:
- value after it has been cast
- Throws:
InvalidTypeException
- if the value can not be interpreted as ContextDependent- See Also:
TypeChecker.cast(String, AttributeStatement)
-
-