gov.nasa.pds.tools.dict.type
Class ContextDependentChecker

java.lang.Object
  extended by gov.nasa.pds.tools.dict.type.LengthChecker
      extended by gov.nasa.pds.tools.dict.type.ContextDependentChecker
All Implemented Interfaces:
TypeChecker

public class ContextDependentChecker
extends LengthChecker
implements TypeChecker

Version:
$Revision$
Author:
pramirez

Constructor Summary
ContextDependentChecker()
           
 
Method Summary
 java.lang.Object cast(java.lang.String value)
          Trys to cast the value to the appropriate type and return the 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
 

Constructor Detail

ContextDependentChecker

public ContextDependentChecker()
Method Detail

cast

public java.lang.Object cast(java.lang.String value)
                      throws InvalidTypeException
Description copied from interface: TypeChecker
Trys to cast the value to the appropriate type and return the value

Specified by:
cast in interface TypeChecker
Parameters:
value - which must be cast
Returns:
value after it has been cast
Throws:
InvalidTypeException - thrown when value can not be cast


Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.