jpl.mipl.mdms.FileService.spider.api
Class SpiderValidator

java.lang.Object
  extended by jpl.mipl.mdms.FileService.spider.api.SpiderValidator

public class SpiderValidator
extends Object


Constructor Summary
SpiderValidator()
          Constructor.
 
Method Summary
 boolean validate(Object spiderObj)
          Deprecated. - This method will always return true.
 String write(Object spiderObj, String localDir)
          Writes out to disk a properly formatted XML file defining the spider object/message passed in.
 void write(Object spiderObj, String fileName, String localDir)
          Writes to the specifed "fileName" a properly formatted XML file defining the spider object/message passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpiderValidator

public SpiderValidator()
Constructor. Delegates to INIT member.

Method Detail

validate

public boolean validate(Object spiderObj)
Deprecated. - This method will always return true.

Validates any SPIDER XML schema generated object for compliance with the spiderdoc.xsd definition. IMPORTANT: Since being deprecated, this method will always return true. The underlying method call to JAXB is no longer supported.

Parameters:
spiderObj - any XML schema generated object
Returns:
the verdict of the validator (T/F)

write

public String write(Object spiderObj,
                    String localDir)
Writes out to disk a properly formatted XML file defining the spider object/message passed in.

Parameters:
spiderObj - any XML schema generated object
localDir - location on the local disk where the message should be written
Returns:
the name of the file (no PATH info) where the message was written

write

public void write(Object spiderObj,
                  String fileName,
                  String localDir)
Writes to the specifed "fileName" a properly formatted XML file defining the spider object/message passed in.

Parameters:
spiderObj - any XML schema generated object
fileName - the name of the output file
localDir - location on the local disk where the message should be written