public class JSONConverterGdb extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IJSONSerializer, IJSONDeserializer, IExternalSerializerGdb, IExternalDeserializerGdb, IJSONConverterGdb, ISupportErrorInfo
Description 'All-in-one JSON conversion for the GeoDatabase library. Supports all previous JSON interfaces in the GeoDatabase, namely IJSONSerializer, IJSONDeserializer, IExternalSerializerGdb, IExternalDeserializerGdb' 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 =
IID, IIDab718cdf_0c06_4d18_9aa4_a6c54b2bc28c, xxDummyIIDe760e960_f144_4b30_930b_5f8056e4e305IID, IID1e6dc0eb_5c8a_4401_a8af_bb5602ddfb7e, xxDummyIID09134de8_4147_4564_82bd_6cc18414c389IID, IIDeed3eea0_a5a5_49e8_b23c_ba29ae21d3da, xxDummyIID, IIDb3021be9_c152_4df8_aa79_3d834190da67, xxDummyIID, IIDf28d230e_0f29_4022_b84f_e7e955a9a873, xxDummyIID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy| Constructor and Description |
|---|
JSONConverterGdb()
Constructs a JSONConverterGdb using ArcGIS Engine.
|
JSONConverterGdb(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
JSONConverterGdb theJSONConverterGdb = (JSONConverterGdb) obj; |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
static java.lang.String |
getClsid()
getClsid.
|
byte[] |
getErrorObject(java.lang.String propname,
int code,
java.lang.String message,
IStringArray details)
Convenience method.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
IJSONReader |
getReader()
Obtains JSON Reader.
|
IJSONWriter |
getWriter()
Obtains JSON Writer.
|
int |
hashCode()
the hashcode for this object
|
void |
initDeserializer(IJSONReader pReader,
IPropertySet pProps)
Write deserialization options.
|
void |
initSerializer(IJSONWriter pWriter,
IPropertySet pProps)
Writes serialization options.
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
void |
queryJSONDomain(IDomain pDomain,
IJSONObject pDomainJO)
Query domain info from IDomain and populate IJSONObject.
|
void |
queryJSONDomain2(IDomain domain,
boolean returnDomainNames,
IJSONObject domainJO)
Query domain info from IDomain and populate IJSONObject.
|
void |
queryJSONDomain3(IDomain typeDomain,
IDomain fieldDomain,
boolean returnDomainNames,
IJSONObject domainJO)
Query domain info from IDomain and populate IJSONObject.If fieldDomain is equal to typeDomain, it returns the domain as inherited.
|
void |
querySubtype(ISubtypes subtypes,
int subtypeCode,
java.lang.String subtypeName,
IFields fields,
boolean returnDomainNames,
IJSONObject subtypeJO)
Query subtype info from subtype and populate IJSONObject.
|
IGeometry |
readGeometry(int geomType)
Reads geometry object.
|
java.lang.Object |
readObject(GUID riid,
IPropertySet pProps)
Deserialize an object.
|
void |
readRecordSet(IJSONReader pReader,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
Reads RecordSet object from IJSONReader.
|
ISpatialReference |
readSpatialReference()
Reads spatial reference object.
|
void |
release()
Release this COM object reference
|
void |
toRecordSet(IJSONObject pObj,
IFields pDefaultSchema,
IPropertySet pConversionProps,
IRecordSet[] ppRecordset,
IPropertySet[] ppOriginalToNewFieldMap)
Reads RecordSet object from IJSONObject.
|
void |
writeErrorObject(java.lang.String propname,
int code,
java.lang.String message,
IStringArray details)
Writes error object.
|
void |
writeGeometry(java.lang.String propname,
IGeometry pGeom)
Writes geometry object.
|
void |
writeObject(java.lang.Object pUnk,
IPropertySet pProps)
Serializes an object.
|
void |
writeRecordSet(IJSONWriter pWriter,
IJSONConverterGeometry pGeomConv,
IPropertySet pProps,
java.lang.String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt,
boolean bWriteEndOfObj)
Writes RecordSet to IJSONWriter.
|
void |
writeRecordSet(java.lang.String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt)
Writes feature recordset.
|
void |
writeRow(java.lang.String propname,
IRow pRow,
IFields pFields,
int[] rowFieldIndexes,
IGeometryResultOptions pGeomOpt)
Writes feature row object
|
void |
writeSpatialReference(java.lang.String propname,
ISpatialReference pSR)
Writes spatial reference object.
|
public JSONConverterGdb()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic JSONConverterGdb(java.lang.Object obj)
throws java.io.IOException
JSONConverterGdb theJSONConverterGdb = (JSONConverterGdb) obj;obj to JSONConverterGdb.obj - an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic IJSONWriter getWriter() throws java.io.IOException, AutomationException
getWriter in interface IJSONSerializerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void initSerializer(IJSONWriter pWriter, IPropertySet pProps) throws java.io.IOException, AutomationException
initSerializer in interface IJSONSerializerpWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeObject(java.lang.Object pUnk,
IPropertySet pProps)
throws java.io.IOException,
AutomationException
writeObject in interface IExternalSerializerpUnk - A reference to another Object (IUnknown) (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IJSONReader getReader() throws java.io.IOException, AutomationException
getReader in interface IJSONDeserializerjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void initDeserializer(IJSONReader pReader, IPropertySet pProps) throws java.io.IOException, AutomationException
initDeserializer in interface IJSONDeserializerpReader - A reference to a com.esri.arcgis.system.IJSONReader (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object readObject(GUID riid, IPropertySet pProps) throws java.io.IOException, AutomationException
readObject in interface IExternalDeserializerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeSpatialReference(java.lang.String propname,
ISpatialReference pSR)
throws java.io.IOException,
AutomationException
writeSpatialReference in interface IExternalSerializerGdbpropname - The propname (in)pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeGeometry(java.lang.String propname,
IGeometry pGeom)
throws java.io.IOException,
AutomationException
writeGeometry in interface IExternalSerializerGdbpropname - The propname (in)pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeRow(java.lang.String propname,
IRow pRow,
IFields pFields,
int[] rowFieldIndexes,
IGeometryResultOptions pGeomOpt)
throws java.io.IOException,
AutomationException
writeRow in interface IExternalSerializerGdbpropname - The propname (in)pRow - A reference to a com.esri.arcgis.geodatabase.IRow (in)pFields - A reference to a com.esri.arcgis.geodatabase.IFields (in)rowFieldIndexes - The rowFieldIndexes (in)pGeomOpt - A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeRecordSet(java.lang.String propname,
IRecordSet pRecordset,
IGeometryResultOptions pGeomOpt)
throws java.io.IOException,
AutomationException
writeRecordSet in interface IExternalSerializerGdbpropname - The propname (in)pRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (in)pGeomOpt - A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeErrorObject(java.lang.String propname,
int code,
java.lang.String message,
IStringArray details)
throws java.io.IOException,
AutomationException
writeErrorObject in interface IExternalSerializerGdbpropname - The propname (in)code - The code (in)message - The message (in)details - A reference to a com.esri.arcgis.system.IStringArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public byte[] getErrorObject(java.lang.String propname,
int code,
java.lang.String message,
IStringArray details)
throws java.io.IOException,
AutomationException
getErrorObject in interface IExternalSerializerGdbpropname - The propname (in)code - The code (in)message - The message (in)details - A reference to a com.esri.arcgis.system.IStringArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public ISpatialReference readSpatialReference() throws java.io.IOException, AutomationException
readSpatialReference in interface IExternalDeserializerGdbjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IGeometry readGeometry(int geomType) throws java.io.IOException, AutomationException
readGeometry in interface IExternalDeserializerGdbgeomType - A com.esri.arcgis.geometry.esriGeometryType constant (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void readRecordSet(IJSONReader pReader, IFields pDefaultSchema, IPropertySet pConversionProps, IRecordSet[] ppRecordset, IPropertySet[] ppOriginalToNewFieldMap) throws java.io.IOException, AutomationException
readRecordSet in interface IJSONConverterGdbpReader - A reference to a com.esri.arcgis.system.IJSONReader (in)pDefaultSchema - A reference to a com.esri.arcgis.geodatabase.IFields (in)pConversionProps - A reference to a com.esri.arcgis.system.IPropertySet (in)ppRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (out: use single element array)ppOriginalToNewFieldMap - A reference to a com.esri.arcgis.system.IPropertySet (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void toRecordSet(IJSONObject pObj, IFields pDefaultSchema, IPropertySet pConversionProps, IRecordSet[] ppRecordset, IPropertySet[] ppOriginalToNewFieldMap) throws java.io.IOException, AutomationException
toRecordSet in interface IJSONConverterGdbpObj - A reference to a com.esri.arcgis.system.IJSONObject (in)pDefaultSchema - A reference to a com.esri.arcgis.geodatabase.IFields (in)pConversionProps - A reference to a com.esri.arcgis.system.IPropertySet (in)ppRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (out: use single element array)ppOriginalToNewFieldMap - A reference to a com.esri.arcgis.system.IPropertySet (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void writeRecordSet(IJSONWriter pWriter, IJSONConverterGeometry pGeomConv, IPropertySet pProps, java.lang.String propname, IRecordSet pRecordset, IGeometryResultOptions pGeomOpt, boolean bWriteEndOfObj) throws java.io.IOException, AutomationException
writeRecordSet in interface IJSONConverterGdbpWriter - A reference to a com.esri.arcgis.system.IJSONWriter (in)pGeomConv - A reference to a com.esri.arcgis.geometry.IJSONConverterGeometry (in)pProps - A reference to a com.esri.arcgis.system.IPropertySet (in)propname - The propname (in)pRecordset - A reference to a com.esri.arcgis.geodatabase.IRecordSet (in)pGeomOpt - A reference to a com.esri.arcgis.geodatabase.IGeometryResultOptions (in)bWriteEndOfObj - The bWriteEndOfObj (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void queryJSONDomain(IDomain pDomain, IJSONObject pDomainJO) throws java.io.IOException, AutomationException
queryJSONDomain in interface IJSONConverterGdbpDomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)pDomainJO - A reference to a com.esri.arcgis.system.IJSONObject (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void queryJSONDomain2(IDomain domain, boolean returnDomainNames, IJSONObject domainJO) throws java.io.IOException, AutomationException
queryJSONDomain2 in interface IJSONConverterGdbdomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)returnDomainNames - The returnDomainNames (in)domainJO - A reference to a com.esri.arcgis.system.IJSONObject (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void queryJSONDomain3(IDomain typeDomain, IDomain fieldDomain, boolean returnDomainNames, IJSONObject domainJO) throws java.io.IOException, AutomationException
queryJSONDomain3 in interface IJSONConverterGdbtypeDomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)fieldDomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)returnDomainNames - The returnDomainNames (in)domainJO - A reference to a com.esri.arcgis.system.IJSONObject (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void querySubtype(ISubtypes subtypes, int subtypeCode, java.lang.String subtypeName, IFields fields, boolean returnDomainNames, IJSONObject subtypeJO) throws java.io.IOException, AutomationException
querySubtype in interface IJSONConverterGdbsubtypes - A reference to a com.esri.arcgis.geodatabase.ISubtypes (in)subtypeCode - The subtypeCode (in)subtypeName - The subtypeName (in)fields - A reference to a com.esri.arcgis.geodatabase.IFields (in)returnDomainNames - The returnDomainNames (in)subtypeJO - A reference to a com.esri.arcgis.system.IJSONObject (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.