com.esri.arcgis.geoprocessing.tools.conversiontools
Class ESRITranslator

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.conversiontools.ESRITranslator
All Implemented Interfaces:
GPTool

public class ESRITranslator
extends AbstractGPTool

Uses the ArcGIS metadata translation engine to export metadata content from ArcGIS to a stand-alone metadata XML file. The exported metadata will be formatted to satisfy the metadata standard associated with the specified translation. The ESRI Metadata Translator tool is contained in the Conversion Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
ESRITranslator()
          Creates the ESRI Metadata Translator tool with defaults.
ESRITranslator(Object source, Object translator)
          Creates the ESRI Metadata Translator tool with the required parameters.
 
Method Summary
 Object getLogfile()
          Returns the Log File parameter of this tool .
 Object getOutput()
          Returns the Output File parameter of this tool .
 Object getSource()
          Returns the Source Metadata parameter of this tool .
 String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 String getToolboxName()
          Returns the name of the tool box containing this tool.
 String getToolName()
          Returns the name of this tool.
 Object getTranslator()
          Returns the Translation parameter of this tool .
 void setLogfile(Object logfile)
          Sets the Log File parameter of this tool .
 void setOutput(Object output)
          Sets the Output File parameter of this tool .
 void setSource(Object source)
          Sets the Source Metadata parameter of this tool .
 void setTranslator(Object translator)
          Sets the Translation parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ESRITranslator

public ESRITranslator()
Creates the ESRI Metadata Translator tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


ESRITranslator

public ESRITranslator(Object source,
                      Object translator)
Creates the ESRI Metadata Translator tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
source - the item whose metadata will be converted, or a stand-alone XML file that will be converted.
translator - an XML file that defines the conversion that will be performed. the translator files provided with ArcGIS Desktop can be found in the \Metadata\Translator folder. The following conversions are supported: a translator file must be specified. This tool does not have a default value for this parameter.
Method Detail

getSource

public Object getSource()
Returns the Source Metadata parameter of this tool . This parameter is the item whose metadata will be converted, or a stand-alone XML file that will be converted. This is a required parameter.

Returns:
the Source Metadata

setSource

public void setSource(Object source)
Sets the Source Metadata parameter of this tool . This parameter is the item whose metadata will be converted, or a stand-alone XML file that will be converted. This is a required parameter.

Parameters:
source - the item whose metadata will be converted, or a stand-alone XML file that will be converted.

getTranslator

public Object getTranslator()
Returns the Translation parameter of this tool . This parameter is an XML file that defines the conversion that will be performed. the translator files provided with ArcGIS Desktop can be found in the \Metadata\Translator folder. The following conversions are supported: a translator file must be specified. This tool does not have a default value for this parameter. This is a required parameter.

Returns:
the Translation

setTranslator

public void setTranslator(Object translator)
Sets the Translation parameter of this tool . This parameter is an XML file that defines the conversion that will be performed. the translator files provided with ArcGIS Desktop can be found in the \Metadata\Translator folder. The following conversions are supported: a translator file must be specified. This tool does not have a default value for this parameter. This is a required parameter.

Parameters:
translator - an XML file that defines the conversion that will be performed. the translator files provided with ArcGIS Desktop can be found in the \Metadata\Translator folder. The following conversions are supported: a translator file must be specified. This tool does not have a default value for this parameter.

getOutput

public Object getOutput()
Returns the Output File parameter of this tool . This parameter is a stand-alone XML file that will be created containing the converted metadata. to check for problems in the metadata using the ESRI Metadata Translator's translation engine and not produce a output XML file, provide # instead of a file name. This is an optional parameter.

Returns:
the Output File

setOutput

public void setOutput(Object output)
Sets the Output File parameter of this tool . This parameter is a stand-alone XML file that will be created containing the converted metadata. to check for problems in the metadata using the ESRI Metadata Translator's translation engine and not produce a output XML file, provide # instead of a file name. This is an optional parameter.

Parameters:
output - a stand-alone XML file that will be created containing the converted metadata. to check for problems in the metadata using the ESRI Metadata Translator's translation engine and not produce a output XML file, provide # instead of a file name.

getLogfile

public Object getLogfile()
Returns the Log File parameter of this tool . This parameter is a text file that will be created listing the warnings and errors that occurred during the conversion process. to export metadata without producing a log file, provide # instead of a file name. This is an optional parameter.

Returns:
the Log File

setLogfile

public void setLogfile(Object logfile)
Sets the Log File parameter of this tool . This parameter is a text file that will be created listing the warnings and errors that occurred during the conversion process. to export metadata without producing a log file, provide # instead of a file name. This is an optional parameter.

Parameters:
logfile - a text file that will be created listing the warnings and errors that occurred during the conversion process. to export metadata without producing a log file, provide # instead of a file name.

getToolName

public String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias