com.esri.arcgis.system
Class XMLPersistedObject

java.lang.Object
  extended by com.esri.arcgis.system.XMLPersistedObject
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IXMLPersistedObject, IXMLSerialize, Serializable

public class XMLPersistedObject
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLPersistedObject, IXMLSerialize

CoClass to serialize objects to XML.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
XMLPersistedObject()
          Constructs a XMLPersistedObject using ArcGIS Engine.
XMLPersistedObject(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
XMLPersistedObject theXMLPersistedObject = (XMLPersistedObject) obj;
 
Method Summary
 void deserialize(IXMLSerializeData data)
          Deserializes an object from XML.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 Object getObject()
          The object to be serialized to or deserialized from XML.
 int hashCode()
          the hashcode for this object
 void serialize(IXMLSerializeData data)
          Serializes an object to XML.
 void setObjectByRef(Object ppObject)
          The object to be serialized to or deserialized from XML.
 
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

XMLPersistedObject

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

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

XMLPersistedObject

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

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

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

getObject

public Object getObject()
                 throws IOException,
                        AutomationException
The object to be serialized to or deserialized from XML.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getObject in interface IXMLPersistedObject
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObjectByRef

public void setObjectByRef(Object ppObject)
                    throws IOException,
                           AutomationException
The object to be serialized to or deserialized from XML.

Product Availability

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

Specified by:
setObjectByRef in interface IXMLPersistedObject
Parameters:
ppObject - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

serialize

public void serialize(IXMLSerializeData data)
               throws IOException,
                      AutomationException
Serializes an object to XML.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
serialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deserialize

public void deserialize(IXMLSerializeData data)
                 throws IOException,
                        AutomationException
Deserializes an object from XML.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
deserialize in interface IXMLSerialize
Parameters:
data - A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.