Esri Geoportal Server
1.2.9

com.esri.gpt.control.cart
Class Cart

java.lang.Object
  extended by com.esri.gpt.control.cart.Cart

public class Cart
extends Object

Simple implementation of an item cart based upon an in-memory collection of ids.


Constructor Summary
Cart()
          Default constructor
 
Method Summary
 void add(String key)
          Adds a key to the collection.
 Map<String,Object> attrMap(String key)
          Returns attribute map for the specific key.
 void clear()
          Clears the collection.
 boolean containsKey(String key)
          Adds a key to the collection.
 Set<String> keySet()
          Returns the collection key set.
 void remove(String key)
          Removes a key from the collection.
 int size()
          The collection size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cart

public Cart()
Default constructor

Method Detail

add

public void add(String key)
Adds a key to the collection.

Parameters:
key - the key

clear

public void clear()
Clears the collection.


containsKey

public boolean containsKey(String key)
Adds a key to the collection.

Parameters:
key - the key
Returns:
true if key found in the collection

keySet

public Set<String> keySet()
Returns the collection key set.

Returns:
the key set

remove

public void remove(String key)
Removes a key from the collection.

Parameters:
key - the key

size

public int size()
The collection size.

Returns:
the size.

attrMap

public Map<String,Object> attrMap(String key)
Returns attribute map for the specific key.

Parameters:
key - key
Returns:
attribute map or null if the key is not present

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.