org.apache.oodt.cas.filemgr.tools
Class ProductDumper

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.tools.ProductDumper

public final class ProductDumper
extends Object

Version:
$Revision$

A simple tool to write out a .product Product file containing product information and References.

.
Author:
mattmann

Constructor Summary
ProductDumper(String fmUrlStr)
           
 
Method Summary
 void dumpProduct(String productId)
          Dumps a Product in XML format identified by the given productId.
 void dumpProduct(String productId, String outDirPath)
          Dumps a Product in XML format identified by the given productId.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductDumper

public ProductDumper(String fmUrlStr)
              throws InstantiationException
Throws:
InstantiationException
Method Detail

dumpProduct

public void dumpProduct(String productId)
Dumps a Product in XML format identified by the given productId. The ProductXML is written to the local directory ., where this program was invoked from.

Parameters:
productId - The string identifier of the product to dump Product info from.

dumpProduct

public void dumpProduct(String productId,
                        String outDirPath)
Dumps a Product in XML format identified by the given productId. The ProductXML is written to the specified outDirPath.

Parameters:
productId - The string identifier of the product to dump Product info from.
outDirPath - The path on the local filesystem to write the Product xml file to.

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception


Copyright © 1999-2013
Apache OODT. All Rights Reserved.