com.esri.arcgis.geodatabase
Interface IJSONConverterGdb

All Superinterfaces:
Serializable
All Known Implementing Classes:
JSONConverterGdb

public interface IJSONConverterGdb
extends Serializable

Provides high-level deserialization methods for JSON.

Product Availability

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


Method Summary
 void queryJSONDomain(IDomain pDomain, IJSONObject pDomainJO)
          Query domain info from IDomain and populate IJSONObject.
 void readRecordSet(IJSONReader pReader, IFields pDefaultSchema, IPropertySet pConversionProps, IRecordSet[] ppRecordset, IPropertySet[] ppOriginalToNewFieldMap)
          Reads RecordSet object from IJSONReader.
 void toRecordSet(IJSONObject pObj, IFields pDefaultSchema, IPropertySet pConversionProps, IRecordSet[] ppRecordset, IPropertySet[] ppOriginalToNewFieldMap)
          Reads RecordSet object from IJSONObject.
 void writeRecordSet(IJSONWriter pWriter, IJSONConverterGeometry pGeomConv, IPropertySet pProps, String propname, IRecordSet pRecordset, IGeometryResultOptions pGeomOpt, boolean bWriteEndOfObj)
          Writes RecordSet to IJSONWriter.
 

Method Detail

readRecordSet

void readRecordSet(IJSONReader pReader,
                   IFields pDefaultSchema,
                   IPropertySet pConversionProps,
                   IRecordSet[] ppRecordset,
                   IPropertySet[] ppOriginalToNewFieldMap)
                   throws IOException,
                          AutomationException
Reads RecordSet object from IJSONReader.

Product Availability

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

Parameters:
pReader - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toRecordSet

void toRecordSet(IJSONObject pObj,
                 IFields pDefaultSchema,
                 IPropertySet pConversionProps,
                 IRecordSet[] ppRecordset,
                 IPropertySet[] ppOriginalToNewFieldMap)
                 throws IOException,
                        AutomationException
Reads RecordSet object from IJSONObject. pDefaultSchema is used only when input JSON has no 'fields' attribute. Pass NULL if not needed. Also, sometimes field names are corrected by the GeoDatabase, use ppOriginalToNewFieldMap to find new field names.

Product Availability

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

Parameters:
pObj - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

writeRecordSet

void writeRecordSet(IJSONWriter pWriter,
                    IJSONConverterGeometry pGeomConv,
                    IPropertySet pProps,
                    String propname,
                    IRecordSet pRecordset,
                    IGeometryResultOptions pGeomOpt,
                    boolean bWriteEndOfObj)
                    throws IOException,
                           AutomationException
Writes RecordSet to IJSONWriter. Writes closing bracked if bWriteEndOfObj is VARIANT_TRUE. Set bWriteEndOfObj to VARIANT_FALSE if you want to append additional JSON before closing object.

Product Availability

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

Parameters:
pWriter - 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)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryJSONDomain

void queryJSONDomain(IDomain pDomain,
                     IJSONObject pDomainJO)
                     throws IOException,
                            AutomationException
Query domain info from IDomain and populate IJSONObject.

Product Availability

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

Parameters:
pDomain - A reference to a com.esri.arcgis.geodatabase.IDomain (in)
pDomainJO - A reference to a com.esri.arcgis.system.IJSONObject (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.