com.esri.arcgis.datasourcesraster
Class RasterCommand

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterCommand
All Implemented Interfaces:
IRasterCommand, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterCommand
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterCommand

The raster command class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
RasterCommand()
          Constructs a RasterCommand using ArcGIS Engine.
RasterCommand(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCommand theRasterCommand = (RasterCommand) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 Object getArgument()
          The command argument(s).
static String getClsid()
          getClsid.
 int getID()
          The command ID.
 String getName()
          The command name, e.g.
 int hashCode()
          the hashcode for this object
 void init(String name, int iD, Object argument)
          Initializes a raster command.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RasterCommand

public RasterCommand()
              throws IOException,
                     UnknownHostException
Constructs a RasterCommand using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterCommand

public RasterCommand(Object obj)
              throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCommand theRasterCommand = (RasterCommand) obj;

Construct a RasterCommand using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterCommand.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getName

public String getName()
               throws IOException,
                      AutomationException
The command name, e.g. CalculateStatistics, BuildPyramids, and etc.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getName in interface IRasterCommand
Returns:
The pName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getID

public int getID()
          throws IOException,
                 AutomationException
The command ID.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getID in interface IRasterCommand
Returns:
The pID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getArgument

public Object getArgument()
                   throws IOException,
                          AutomationException
The command argument(s).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getArgument in interface IRasterCommand
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(String name,
                 int iD,
                 Object argument)
          throws IOException,
                 AutomationException
Initializes a raster command.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
init in interface IRasterCommand
Parameters:
name - The name (in)
iD - The iD (in)
argument - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.