com.esri.arcgis.system
Class XMLAttributes

java.lang.Object
  extended by com.esri.arcgis.system.XMLAttributes
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IXMLAttributes, Serializable

public class XMLAttributes
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLAttributes

A collection of XML element attributes.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
XMLAttributes()
          Constructs a XMLAttributes using ArcGIS Engine.
XMLAttributes(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
XMLAttributes theXMLAttributes = (XMLAttributes) obj;
 
Method Summary
 void addAttribute(String localName, String namespaceURI, String value)
          Adds an attribute to the element.
 void deleteAttribute(String localName, String namespaceURI)
          Deletes an attribute from the element.
 boolean equals(Object o)
          Compare this object with another
 int findAttribute(String localName, String namespaceURI)
          Finds an attribute by name and namespace.
 int getAttributeCount()
          Number of attributes.
static String getClsid()
          getClsid.
 String getLocalName(int index)
          Name of the attribute.
 String getNamespaceURI(int index)
          Namespace of the attribute.
 String getValue(int index)
          Value of the attribute.
 int hashCode()
          the hashcode for this 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

XMLAttributes

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

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

XMLAttributes

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

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

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

addAttribute

public void addAttribute(String localName,
                         String namespaceURI,
                         String value)
                  throws IOException,
                         AutomationException
Adds an attribute to the element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addAttribute in interface IXMLAttributes
Parameters:
localName - The localName (in)
namespaceURI - The namespaceURI (in)
value - The value (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAttribute

public void deleteAttribute(String localName,
                            String namespaceURI)
                     throws IOException,
                            AutomationException
Deletes an attribute from the element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
deleteAttribute in interface IXMLAttributes
Parameters:
localName - The localName (in)
namespaceURI - The namespaceURI (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findAttribute

public int findAttribute(String localName,
                         String namespaceURI)
                  throws IOException,
                         AutomationException
Finds an attribute by name and namespace.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
findAttribute in interface IXMLAttributes
Parameters:
localName - The localName (in)
namespaceURI - The namespaceURI (in)
Returns:
The index
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeCount

public int getAttributeCount()
                      throws IOException,
                             AutomationException
Number of attributes.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getLocalName

public String getLocalName(int index)
                    throws IOException,
                           AutomationException
Name of the attribute.

Product Availability

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

Specified by:
getLocalName in interface IXMLAttributes
Parameters:
index - The index (in)
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNamespaceURI

public String getNamespaceURI(int index)
                       throws IOException,
                              AutomationException
Namespace of the attribute.

Product Availability

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

Specified by:
getNamespaceURI in interface IXMLAttributes
Parameters:
index - The index (in)
Returns:
The uri
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getValue

public String getValue(int index)
                throws IOException,
                       AutomationException
Value of the attribute.

Product Availability

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

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