gov.nasa.pds.tools.label.validate
Class DataObjectValidatorFactory

java.lang.Object
  extended by gov.nasa.pds.tools.label.validate.DataObjectValidatorFactory

public class DataObjectValidatorFactory
extends java.lang.Object

This class will dynamically load data object validators from property settings. The property mapping should take the form object.validator.{TYPE}

Version:
$Revision: 2606 $
Author:
pramirez

Method Summary
static DataObjectValidatorFactory getInstance()
          This will provide access to a DataObjectValidatorFactory
 DataObjectValidator newInstance(java.lang.String type)
          Retrieves a validator for the given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataObjectValidatorFactory getInstance()
This will provide access to a DataObjectValidatorFactory

Returns:
factory to generate data object validators

newInstance

public DataObjectValidator newInstance(java.lang.String type)
                                throws UnsupportedDataObjectException
Retrieves a validator for the given type

Parameters:
type - The type of data object to be validated
Returns:
a validator for the given type
Throws:
UnsupportedTypeException - if there is no mapping to a validator for the type
UnsupportedDataObjectException


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