public class

LayerInfo

extends Object
implements LayerInfoItem
java.lang.Object
   ↳ com.esri.core.map.LayerInfo
Known Direct Subclasses

Summary

Public Constructors
LayerInfo(int layerId, LayerSource source)
Public Methods
String getDefinitionExpression()
Gets the definition expression.
int getId()
Gets the layer id.
LayerSource getLayerSource()
Gets the layer source.
void setDefinitionExpression(String definitionExpression)
Sets the definition expression.
void setId(int id)
Sets the layer id.
void setLayerSource(LayerSource layerSource)
Sets the layer source.
String toJson()
Convert this instance to a json string to allow it to be passed to a dynamic map service REST endpoint.
Protected Methods
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.map.LayerInfoItem

Public Constructors

public LayerInfo (int layerId, LayerSource source)

Parameters
layerId int
source LayerSource

Public Methods

public String getDefinitionExpression ()

Gets the definition expression.

Returns
String the definition expression

public int getId ()

Gets the layer id.

Returns
int the id

public LayerSource getLayerSource ()

Gets the layer source.

Returns
LayerSource the layer source

public void setDefinitionExpression (String definitionExpression)

Sets the definition expression.

Parameters
definitionExpression String: the new definition expression

public void setId (int id)

Sets the layer id.

Parameters
id int: the new id

public void setLayerSource (LayerSource layerSource)

Sets the layer source.

Parameters
layerSource LayerSource: the new layer source

public String toJson ()

Convert this instance to a json string to allow it to be passed to a dynamic map service REST endpoint.

Returns
String the string
Throws
Exception the exception

Protected Methods

protected void toJson (JsonGenerator node)

Throws
IOException
JsonGenerationException
Exception