com.esri.arcgis.system
Interface IXMLTypeMapper

All Superinterfaces:
Serializable
All Known Implementing Classes:
XMLTypeMapper

public interface IXMLTypeMapper
extends Serializable

Provides access to members that convert to and from XML to native types.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 String fromBinary(byte[] value)
          Converts a byte array to an XML byte array.
 String fromBoolean(boolean value)
          Converts a boolean to an XML boolean.
 String fromByte(byte value)
          Converts a byte to an XML byte.
 String fromDate(Date value)
          Converts a date to an XML date.
 String fromDouble(double value)
          Converts a double to an XML double.
 String fromFloat(float value)
          Converts a float to an XML float.
 String fromInteger(int value)
          Converts a long to an XML integer.
 String fromShort(short value)
          Converts a short to an XML short.
 byte[] toBinary(String text)
          Converts an XML byte array to a byte array.
 boolean toBoolean(String text)
          Converts an XML boolean to a boolean.
 byte toByte(String text)
          Converts an XML byte to a byte.
 Date toDate(String text)
          Converts an XML date to a date.
 double toDouble(String text)
          Converts an XML double to a double.
 float toFloat(String text)
          Converts an XML float to a float.
 int toInteger(String text)
          Converts an XML integer to a long.
 Object toObject(String namespaceURI, String typeName)
          Creates an object based on XML type information.
 short toShort(String text)
          Converts an XML short to a short.
 

Method Detail

toObject

Object toObject(String namespaceURI,
                String typeName)
                throws IOException,
                       AutomationException
Creates an object based on XML type information.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
namespaceURI - The namespaceURI (in)
typeName - The typeName (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toInteger

int toInteger(String text)
              throws IOException,
                     AutomationException
Converts an XML integer to a long.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toBoolean

boolean toBoolean(String text)
                  throws IOException,
                         AutomationException
Converts an XML boolean to a boolean.

Remarks


For proper conversion the text string for boolean value must be all lowercase.

For example,

Dim pXMLTypeMapper as IXMLTypeMapper
Set pXMLTypeMapper = new XMLTypeMapper

Dim strValue as String
Dim boolValue as Boolean

strValue = "true"
boolValue = pXMLTypeMapper.ToBoolean(strValue)

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toShort

short toShort(String text)
              throws IOException,
                     AutomationException
Converts an XML short to a short.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toByte

byte toByte(String text)
            throws IOException,
                   AutomationException
Converts an XML byte to a byte.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toFloat

float toFloat(String text)
              throws IOException,
                     AutomationException
Converts an XML float to a float.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toDouble

double toDouble(String text)
                throws IOException,
                       AutomationException
Converts an XML double to a double.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toDate

Date toDate(String text)
            throws IOException,
                   AutomationException
Converts an XML date to a date.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
The value
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toBinary

byte[] toBinary(String text)
                throws IOException,
                       AutomationException
Converts an XML byte array to a byte array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
text - The text (in)
Returns:
An unsigned byte
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromInteger

String fromInteger(int value)
                   throws IOException,
                          AutomationException
Converts a long to an XML integer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromBoolean

String fromBoolean(boolean value)
                   throws IOException,
                          AutomationException
Converts a boolean to an XML boolean.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromShort

String fromShort(short value)
                 throws IOException,
                        AutomationException
Converts a short to an XML short.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromByte

String fromByte(byte value)
                throws IOException,
                       AutomationException
Converts a byte to an XML byte.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - An unsigned byte (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromFloat

String fromFloat(float value)
                 throws IOException,
                        AutomationException
Converts a float to an XML float.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromDouble

String fromDouble(double value)
                  throws IOException,
                         AutomationException
Converts a double to an XML double.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromDate

String fromDate(Date value)
                throws IOException,
                       AutomationException
Converts a date to an XML date.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - The value (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromBinary

String fromBinary(byte[] value)
                  throws IOException,
                         AutomationException
Converts a byte array to an XML byte array.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
value - An unsigned byte (in)
Returns:
The text
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.