com.esri.client.local
Class LayerDetails

java.lang.Object
  extended by com.esri.client.local.LayerDetails

public class LayerDetails
extends Object

This class contains information on the various layers available in a local map service or a local feature service.


Constructor Summary
LayerDetails(Layer layerInfo, String url, LocalService parentService)
          Construct a LayerDetail instance from Layer information.
LayerDetails(Table tableInfo, String url, LocalService parentService)
          Construct a LayerDetail instance from Table information.
 
Method Summary
 int getId()
          Gets unique layer ID indicating the position of the layer within the service.
 String getName()
          Gets the layer name.
 LocalService getParentService()
          Returns the parent service of this layer.
 String getUrl()
          Gets the URL for this layer.
 boolean isEditable()
          Returns true if this layer can be edited.
 boolean isQueryable()
          Returns true if this layer can be queried.
 boolean isTable()
          Returns true if this layer is a table.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayerDetails

public LayerDetails(Layer layerInfo,
                    String url,
                    LocalService parentService)
Construct a LayerDetail instance from Layer information.

Parameters:
layerInfo - Information on a local map service layer
parentService - Parent local service

LayerDetails

public LayerDetails(Table tableInfo,
                    String url,
                    LocalService parentService)
Construct a LayerDetail instance from Table information.

Parameters:
tableInfo - Information on a local map service table
parentService - Parent local service
Method Detail

getId

public int getId()
Gets unique layer ID indicating the position of the layer within the service. Layers IDs start from 0.

Returns:
ID of the layer.

getUrl

public String getUrl()
Gets the URL for this layer.

Returns:
The URL of the layer.

getName

public String getName()
Gets the layer name.

Returns:
The name of the layer.

isTable

public boolean isTable()
Returns true if this layer is a table. Tables within a LocalMapService or LocalFeatureService can be edited using by the table as the basis for an ArcGISLocalFeatureLayer or they can be used in with tasks such as the QueryTask for retrieving records via queries.

Returns:
True if the layer is a table.

isQueryable

public boolean isQueryable()
Returns true if this layer can be queried.

Returns:
True if the layer can be queried.

isEditable

public boolean isEditable()
Returns true if this layer can be edited.

Returns:
True if the layer can be edited.

getParentService

public LocalService getParentService()
Returns the parent service of this layer.

Returns:
The parent service of the layer.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.