java.lang.Object
com.esri.arcgisruntime.arcgisservices.IdInfo
Direct Known Subclasses:
FeatureServiceLayerIdInfo, MapServiceLayerIdInfo

public class IdInfo extends Object
Represents the service level metadata for a layer, table or sublayer in an ArcGIS map service (from ArcGISMapServiceInfo) or feature service (from ArcGISFeatureServiceInfo).

This is a subset of the full metadata that would be available if the layer, table or sublayer was requested on its own. The full metadata for the layer, table or sublayer is available if you create a ServiceFeatureTable for the layer and access its ArcGISFeatureLayerInfo. To do this, append the ID from getId() to the URL of the feature service or map service.

For example: If one had the ArcGISFeatureServiceInfo for the following service: http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer getId() would return 0 for the Wildfire_Response_Points layer (as its ID is 0) so one would create a ServiceFeatureTable for this layer using the following URL: http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer/0

Since:
100.0.0
See Also:
  • Method Details

    • getId

      public long getId()
      Gets the ID of the sublayer, layer or table.
      Returns:
      the ID of the sublayer, layer or table as a long
      Since:
      100.0.0
    • getName

      public String getName()
      Gets the name of the sublayer, layer or table.
      Returns:
      the name of the sublayer, layer or table.
      Since:
      100.0.0