com.esri.arcgis.cartoUI
Class AVObject

java.lang.Object
  extended by com.esri.arcgis.cartoUI.AVObject
All Implemented Interfaces:
IAVObject, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class AVObject
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAVObject

An ArcView (3.x) generic object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
AVObject()
          Constructs a AVObject using ArcGIS Engine.
AVObject(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
AVObject theAVObject = (AVObject) obj;
 
Method Summary
 void addProperty(IProperty prop)
          Adds a property to the object.
 void clearProperties()
          Clears out all of the properties of the object.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IProperty getProperty(int index)
          The properties at the given index.
 int getPropertyCount()
          Number of properties for the object.
 String getType()
          Type of object.
 int hashCode()
          the hashcode for this object
 String queryPropertyValue(String propertyName)
          Returns the value of one of the object's properties.
 void setType(String type)
          Type of object.
 
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

AVObject

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

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

AVObject

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

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

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

getType

public String getType()
               throws IOException,
                      AutomationException
Type of object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getType in interface IAVObject
Returns:
The type
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setType

public void setType(String type)
             throws IOException,
                    AutomationException
Type of object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setType in interface IAVObject
Parameters:
type - The type (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPropertyCount

public int getPropertyCount()
                     throws IOException,
                            AutomationException
Number of properties for the object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getPropertyCount in interface IAVObject
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getProperty

public IProperty getProperty(int index)
                      throws IOException,
                             AutomationException
The properties at the given index.

Product Availability

Available with ArcGIS Desktop.

Specified by:
getProperty in interface IAVObject
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IProperty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addProperty

public void addProperty(IProperty prop)
                 throws IOException,
                        AutomationException
Adds a property to the object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
addProperty in interface IAVObject
Parameters:
prop - A reference to a com.esri.arcgis.geodatabase.IProperty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryPropertyValue

public String queryPropertyValue(String propertyName)
                          throws IOException,
                                 AutomationException
Returns the value of one of the object's properties. Only valid if you're expecting a single property with the given name.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
queryPropertyValue in interface IAVObject
Parameters:
propertyName - The propertyName (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearProperties

public void clearProperties()
                     throws IOException,
                            AutomationException
Clears out all of the properties of the object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
clearProperties in interface IAVObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.