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

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

public class MetadataImporter
extends AbstractGPTool

Copies metadata from the source item to the target item. Metadata is retrieved from the source item and transferred to the target item without changing it. The source and target may be ArcGIS items or stand-alone metadata XML files. The Metadata Importer 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
MetadataImporter()
          Creates the Metadata Importer tool with defaults.
MetadataImporter(java.lang.Object source, java.lang.Object target)
          Creates the Metadata Importer tool with the required parameters.
 
Method Summary
 java.lang.Object getOutput()
          Returns the Output Metadata parameter of this tool (Read only).
 java.lang.Object getSource()
          Returns the Source Metadata parameter of this tool .
 java.lang.Object getTarget()
          Returns the Target Metadata parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 void setSource(java.lang.Object source)
          Sets the Source Metadata parameter of this tool .
 void setTarget(java.lang.Object target)
          Sets the Target Metadata 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

MetadataImporter

public MetadataImporter()
Creates the Metadata Importer tool with defaults.

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


MetadataImporter

public MetadataImporter(java.lang.Object source,
                        java.lang.Object target)
Creates the Metadata Importer 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 imported, or a stand-alone XML file that will be imported. if the source item is a stand-alone file it must contain well-formed XML data.
target - the item to which the metadata will be imported, or a stand-alone XML file that will be replaced.
Method Detail

getSource

public java.lang.Object getSource()
Returns the Source Metadata parameter of this tool . This parameter is the item whose metadata will be imported, or a stand-alone XML file that will be imported. if the source item is a stand-alone file it must contain well-formed XML data. This is a required parameter.

Returns:
the Source Metadata

setSource

public void setSource(java.lang.Object source)
Sets the Source Metadata parameter of this tool . This parameter is the item whose metadata will be imported, or a stand-alone XML file that will be imported. if the source item is a stand-alone file it must contain well-formed XML data. This is a required parameter.

Parameters:
source - the item whose metadata will be imported, or a stand-alone XML file that will be imported. if the source item is a stand-alone file it must contain well-formed XML data.

getTarget

public java.lang.Object getTarget()
Returns the Target Metadata parameter of this tool . This parameter is the item to which the metadata will be imported, or a stand-alone XML file that will be replaced. This is a required parameter.

Returns:
the Target Metadata

setTarget

public void setTarget(java.lang.Object target)
Sets the Target Metadata parameter of this tool . This parameter is the item to which the metadata will be imported, or a stand-alone XML file that will be replaced. This is a required parameter.

Parameters:
target - the item to which the metadata will be imported, or a stand-alone XML file that will be replaced.

getOutput

public java.lang.Object getOutput()
Returns the Output Metadata parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Metadata

getToolName

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

Returns:
the tool name

getToolboxName

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

Returns:
the tool box name

getToolboxAlias

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

Returns:
the tool box alias