com.esri.core.internal.value
Class LayerTimeOptions

java.lang.Object
  extended by com.esri.core.internal.value.LayerTimeOptions
All Implemented Interfaces:
LayerInfoItem

public class LayerTimeOptions
extends Object
implements LayerInfoItem

This class defines time options for the layer with the given ID within a map service. This can be used to indicate whether or not the layer should use the time extent specified by the TimeInterval property or not, whether to draw the layer features cumulatively or not and the time offsets for the layer.


Constructor Summary
LayerTimeOptions(int layerId)
          Instantiates a new layer time options.
LayerTimeOptions(int layerId, TimeOptions timeOptions)
          Instantiates a new layer time options.
 
Method Summary
 int getId()
          Gets the layer id.
 TimeOptions getTimeOptions()
          Gets the time options.
 void setId(int layerId)
          Sets the layer id.
 void setTimeOptions(TimeOptions timeOptions)
          Sets the time options.
 String toJson()
          Create a JSON string that can be used to send instances of this class to a REST end point.
 void toJson(org.codehaus.jackson.JsonGenerator node)
          Create a JSON node within the given generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerTimeOptions

public LayerTimeOptions(int layerId)
Instantiates a new layer time options.

Parameters:
layerId - the layer id

LayerTimeOptions

public LayerTimeOptions(int layerId,
                        TimeOptions timeOptions)
Instantiates a new layer time options.

Parameters:
layerId - the layer id
timeOptions - the time options
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 layerId)
Description copied from interface: LayerInfoItem
Sets the layer id.

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

getTimeOptions

public TimeOptions getTimeOptions()
Gets the time options.

Returns:
the time options

setTimeOptions

public void setTimeOptions(TimeOptions timeOptions)
Sets the time options.

Parameters:
timeOptions - the new time options

toJson

public String toJson()
              throws Exception
Description copied from interface: LayerInfoItem
Create a JSON string that can be used to send instances of this class to a REST end point.

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

toJson

public void toJson(org.codehaus.jackson.JsonGenerator node)
            throws Exception
Create a JSON node within the given generator.

Parameters:
node - the node
Throws:
Exception - the exception


Copyright © 2012. All Rights Reserved.