com.esri.arcgis.system
Class XMLNamespaces

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

public class XMLNamespaces
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLNamespaces

A collection of XML namespace declarations.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
XMLNamespaces()
          Constructs a XMLNamespaces using ArcGIS Engine.
XMLNamespaces(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
XMLNamespaces theXMLNamespaces = (XMLNamespaces) obj;
 
Method Summary
 void addNamespace(String prefix, String uri)
          Adds a namespace to the element.
 void deleteNamespace(String uri)
          Deletes a namespace from the element.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getNamespaceCount()
          Number of namespaces.
 String getNamespaceURI(int index)
          The namespace URI for a namespace.
 String getPrefix(int index)
          The namespace prefix for a namespace.
 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

XMLNamespaces

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

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

XMLNamespaces

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

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

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

addNamespace

public void addNamespace(String prefix,
                         String uri)
                  throws IOException,
                         AutomationException
Adds a namespace to the element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addNamespace in interface IXMLNamespaces
Parameters:
prefix - The prefix (in)
uri - The uri (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteNamespace

public void deleteNamespace(String uri)
                     throws IOException,
                            AutomationException
Deletes a namespace from the element.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getNamespaceCount

public int getNamespaceCount()
                      throws IOException,
                             AutomationException
Number of namespaces.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getPrefix

public String getPrefix(int index)
                 throws IOException,
                        AutomationException
The namespace prefix for a namespace.

Product Availability

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

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

getNamespaceURI

public String getNamespaceURI(int index)
                       throws IOException,
                              AutomationException
The namespace URI for a namespace.

Product Availability

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

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