com.esri.arcgis.system
Class XMLTypeMapper

java.lang.Object
  extended by com.esri.arcgis.system.XMLTypeMapper
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, IXMLTypeMapper, IXMLTypeMapper2, java.io.Serializable

public class XMLTypeMapper
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IXMLTypeMapper, IXMLTypeMapper2, ISupportErrorInfo

COM Class 'XMLTypeMapper'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Description 'A type converter for XML and native types.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IXMLTypeMapper2
IID, IID39fdb45d_2b8e_4e07_a24c_55d722bc4bac, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IXMLTypeMapper
IIDa9a5de92_e3c9_4940_b0f4_6d93cdf2602b
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
XMLTypeMapper()
          Constructs a XMLTypeMapper using ArcGIS Engine.
XMLTypeMapper(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
XMLTypeMapper theXMLTypeMapper = (XMLTypeMapper) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 java.lang.String fromBinary(byte[] value)
          Converts a byte array to an XML byte array.
 java.lang.String fromBoolean(boolean value)
          Converts a boolean to an XML boolean.
 java.lang.String fromByte(byte value)
          Converts a byte to an XML byte.
 java.lang.String fromDate(java.util.Date value)
          Converts a date to an XML date.
 java.lang.String fromDouble(double value)
          Converts a double to an XML double.
 java.lang.String fromFloat(float value)
          Converts a float to an XML float.
 java.lang.String fromInt64(long value)
          Converts an int64 to an XML integer.
 java.lang.String fromInteger(int value)
          Converts a long to an XML integer.
 java.lang.String fromShort(short value)
          Converts a short to an XML short.
static java.lang.String getClsid()
          getClsid.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void release()
          Release a XMLTypeMapper.
 byte[] toBinary(java.lang.String text)
          Converts an XML byte array to a byte array.
 boolean toBoolean(java.lang.String text)
          Converts an XML boolean to a boolean.
 byte toByte(java.lang.String text)
          Converts an XML byte to a byte.
 java.util.Date toDate(java.lang.String text)
          Converts an XML date to a date.
 double toDouble(java.lang.String text)
          Converts an XML double to a double.
 float toFloat(java.lang.String text)
          Converts an XML float to a float.
 long toInt64(java.lang.String text)
          Converts an XML integer to an int64.
 int toInteger(java.lang.String text)
          Converts an XML integer to a long.
 java.lang.Object toObject(java.lang.String namespaceURI, java.lang.String typeName)
          Creates an object based on XML type information.
 short toShort(java.lang.String text)
          Converts an XML short to a short.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTypeMapper

public XMLTypeMapper()
              throws java.io.IOException,
                     java.net.UnknownHostException
Constructs a XMLTypeMapper using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

XMLTypeMapper

public XMLTypeMapper(java.lang.Object obj)
              throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
XMLTypeMapper theXMLTypeMapper = (XMLTypeMapper) obj;

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

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a XMLTypeMapper.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

toObject

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

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

toInteger

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

Specified by:
toInteger in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toBoolean

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

Specified by:
toBoolean in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toShort

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

Specified by:
toShort in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toByte

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

Specified by:
toByte in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toFloat

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

Specified by:
toFloat in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toDouble

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

Specified by:
toDouble in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toDate

public java.util.Date toDate(java.lang.String text)
                      throws java.io.IOException,
                             AutomationException
Converts an XML date to a date.

Specified by:
toDate in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
The value
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toBinary

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

Specified by:
toBinary in interface IXMLTypeMapper
Parameters:
text - The text (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromInteger

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

Specified by:
fromInteger in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromBoolean

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

Specified by:
fromBoolean in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromShort

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

Specified by:
fromShort in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromByte

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

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

fromFloat

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

Specified by:
fromFloat in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromDouble

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

Specified by:
fromDouble in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromDate

public java.lang.String fromDate(java.util.Date value)
                          throws java.io.IOException,
                                 AutomationException
Converts a date to an XML date.

Specified by:
fromDate in interface IXMLTypeMapper
Parameters:
value - The value (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fromBinary

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

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

fromInt64

public java.lang.String fromInt64(long value)
                           throws java.io.IOException,
                                  AutomationException
Converts an int64 to an XML integer.

Specified by:
fromInt64 in interface IXMLTypeMapper2
Parameters:
value - Signed 64-bit int (in)
Returns:
The text
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toInt64

public long toInt64(java.lang.String text)
             throws java.io.IOException,
                    AutomationException
Converts an XML integer to an int64.

Specified by:
toInt64 in interface IXMLTypeMapper2
Parameters:
text - The text (in)
Returns:
Signed 64-bit int
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.