com.esri.core.internal.value
Class LayerInfo

java.lang.Object
  extended by com.esri.core.internal.value.LayerInfo
All Implemented Interfaces:
LayerInfoItem
Direct Known Subclasses:
DynamicLayerInfo

public class LayerInfo
extends Object
implements LayerInfoItem


Constructor Summary
LayerInfo(int layerId, LayerSource source)
           
 
Method Summary
 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  void toJson(org.codehaus.jackson.JsonGenerator node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerInfo

public LayerInfo(int layerId,
                 LayerSource source)
Method Detail

getId

public int getId()
Description copied from interface: LayerInfoItem
Gets the layer id.

Specified by:
getId in interface LayerInfoItem
Returns:
the id

setId

public void setId(int id)
Description copied from interface: LayerInfoItem
Sets the layer id.

Specified by:
setId in interface LayerInfoItem
Parameters:
id - the new id

getLayerSource

public LayerSource getLayerSource()
Gets the layer source.

Returns:
the layer source

setLayerSource

public void setLayerSource(LayerSource layerSource)
Sets the layer source.

Parameters:
layerSource - the new layer source

getDefinitionExpression

public String getDefinitionExpression()
Gets the definition expression.

Returns:
the definition expression

setDefinitionExpression

public void setDefinitionExpression(String definitionExpression)
Sets the definition expression.

Parameters:
definitionExpression - the new definition expression

toJson

public String toJson()
              throws Exception
Convert this instance to a json string to allow it to be passed to a dynamic map service REST endpoint.

Specified by:
toJson in interface LayerInfoItem
Returns:
the string
Throws:
Exception - the exception

toJson

protected void toJson(org.codehaus.jackson.JsonGenerator node)
               throws IOException,
                      org.codehaus.jackson.JsonGenerationException,
                      Exception
Parameters:
node -
Throws:
IOException
org.codehaus.jackson.JsonGenerationException
Exception


Copyright © 2012. All Rights Reserved.