com.esri.core.internal.value
Class LayerTimeOptionsCollection

java.lang.Object
  extended by com.esri.core.internal.value.LayerTimeOptionsCollection
All Implemented Interfaces:
Iterable<LayerTimeOptions>, Collection<LayerTimeOptions>

public class LayerTimeOptionsCollection
extends Object


Constructor Summary
LayerTimeOptionsCollection(Collection<LayerInfo> layerInfos)
           
LayerTimeOptionsCollection(Collection<LayerInfo> layerInfos, boolean addDefaults)
           
 
Method Summary
 boolean add(T e)
          Add a new item to this collection.
 boolean addAll(Collection<? extends T> c)
          This method is equivalent to iterating through the given collection calling #add(T) for each item.
 void clear()
          Remove all T instances from this list.
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 T get(int layerId)
          Return the T instance representing the layer with the given id, if it exists.
protected  LayerTimeOptions getDefaultItem(int id)
           
protected  HashMap<Integer,T> getDynamicLayerItemInfos()
           
protected  HashMap<Integer,LayerInfo> getLayersList()
           
 List<LayerTimeOptions> getTimeOptionsList()
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 boolean remove(Object o)
          Remove the given item from the list.
 boolean removeAll(Collection<?> c)
          This method is equivalent to iterating through the given collection and calling remove(Object) for each item.
 void resetToDefault()
          Call this method to reset all the sublayer renderers back to the service defaults.
 boolean retainAll(Collection<?> c)
          This method is equivalent to calling remove(Object) for all the items in this list that are not contained in the given list.
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

LayerTimeOptionsCollection

public LayerTimeOptionsCollection(Collection<LayerInfo> layerInfos,
                                  boolean addDefaults)
Parameters:
parentLayer -
addDefaults -

LayerTimeOptionsCollection

public LayerTimeOptionsCollection(Collection<LayerInfo> layerInfos)
Method Detail

getTimeOptionsList

public List<LayerTimeOptions> getTimeOptionsList()

getDefaultItem

protected LayerTimeOptions getDefaultItem(int id)

size

public int size()
Specified by:
size in interface Collection<T extends LayerInfoItem>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<T extends LayerInfoItem>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<T extends LayerInfoItem>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T extends LayerInfoItem>
Specified by:
iterator in interface Collection<T extends LayerInfoItem>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<T extends LayerInfoItem>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<T extends LayerInfoItem>

add

public boolean add(T e)
Add a new item to this collection. Note that if there is already an item for the associated sublayer, it will be replaced with this one.

Specified by:
add in interface Collection<T extends LayerInfoItem>
See Also:
Collection.add(java.lang.Object)

remove

public boolean remove(Object o)
Remove the given item from the list. This will have the effect of reseting the associated sublayer back to its default behaviour.

Specified by:
remove in interface Collection<T extends LayerInfoItem>
See Also:
Collection.remove(java.lang.Object)

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<T extends LayerInfoItem>

addAll

public boolean addAll(Collection<? extends T> c)
This method is equivalent to iterating through the given collection calling #add(T) for each item.

Specified by:
addAll in interface Collection<T extends LayerInfoItem>
See Also:
Collection.addAll(java.util.Collection)

removeAll

public boolean removeAll(Collection<?> c)
This method is equivalent to iterating through the given collection and calling remove(Object) for each item. See the documentation for the remove(Object) method for information on the behaviour of this method.

Specified by:
removeAll in interface Collection<T extends LayerInfoItem>
See Also:
Collection.removeAll(java.util.Collection)

retainAll

public boolean retainAll(Collection<?> c)
This method is equivalent to calling remove(Object) for all the items in this list that are not contained in the given list. See the documentation for the remove(Object) method for information on the behaviour of this method.

Specified by:
retainAll in interface Collection<T extends LayerInfoItem>
See Also:
Collection.retainAll(java.util.Collection)

clear

public void clear()
Remove all T instances from this list. This will have the effect of reseting all the dynamic map service layers back to their default behaviour.

Specified by:
clear in interface Collection<T extends LayerInfoItem>
See Also:
Collection.clear()

get

public T get(int layerId)
Return the T instance representing the layer with the given id, if it exists.

Parameters:
layerId -
Returns:
DynamicLayerInfo matching layerId or null.

getDynamicLayerItemInfos

protected HashMap<Integer,T> getDynamicLayerItemInfos()
Returns:
the _dynamicLayerItemInfos

getLayersList

protected HashMap<Integer,LayerInfo> getLayersList()
Returns:
the _layersList

resetToDefault

public void resetToDefault()
Call this method to reset all the sublayer renderers back to the service defaults.



Copyright © 2012. All Rights Reserved.