Package com.microstrategy.web.platform
Class AbstractConfigurableContainerServices.AbstractContainerStringCollection
- java.lang.Object
-
- com.microstrategy.web.platform.AbstractConfigurableContainerServices.AbstractContainerStringCollection
-
- All Implemented Interfaces:
ContainerStringCollection
- Enclosing class:
- AbstractConfigurableContainerServices
protected abstract class AbstractConfigurableContainerServices.AbstractContainerStringCollection extends java.lang.Object implements ContainerStringCollection
Abstract class for string collection classes.- Since:
- MicroStrategy Web 8.0.2
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractContainerStringCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName(int index)This returns a name at a specific numeric index in this collection.intgetNameCount()This returns the number of unique names (keys) in this collection.protected abstract HashListgetStringCollection()java.lang.StringgetStringValue(java.lang.String name)This returns a the first string value associated with a given name (key) in this collection.java.lang.StringgetStringValue(java.lang.String name, int index)This returns a specific string value associated with a given name (key) in this collection.intgetStringValueCount(java.lang.String name)This returns the number of string values associated with a given name (key) in this collection.java.lang.ObjectgetValue(java.lang.String name)This returns a value associated with a given name (key) in this collection.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.platform.ContainerStringCollection
getSource
-
-
-
-
Method Detail
-
getStringCollection
protected abstract HashList getStringCollection()
-
getStringValueCount
public int getStringValueCount(java.lang.String name)
Description copied from interface:ContainerStringCollectionThis returns the number of string values associated with a given name (key) in this collection. For most collections (such as the Query String collection, the Form Data collection and the Cookie collection), all values are represented as strings. However, for the Session collection, many of the values are not Strings and do not contribute to this count.- Specified by:
getStringValueCountin interfaceContainerStringCollection- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- An
intrepresenting the count of values.
-
getStringValue
public java.lang.String getStringValue(java.lang.String name)
Description copied from interface:ContainerStringCollectionThis returns a the first string value associated with a given name (key) in this collection.- Specified by:
getStringValuein interfaceContainerStringCollection- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- A
Stringrepresenting the value of the first string.
-
getStringValue
public java.lang.String getStringValue(java.lang.String name, int index)Description copied from interface:ContainerStringCollectionThis returns a specific string value associated with a given name (key) in this collection. Valid indices range from 0 to 1 less than the value returned byContainerStringCollection.getStringValueCount(java.lang.String).- Specified by:
getStringValuein interfaceContainerStringCollection- Parameters:
name- AStringrepresenting the name of the key in this collection.index- Anintrepresenting the specific value to retrieve.- Returns:
- A
Stringrepresenting the value at that index.
-
getName
public java.lang.String getName(int index)
Description copied from interface:ContainerStringCollectionThis returns a name at a specific numeric index in this collection.- Specified by:
getNamein interfaceContainerStringCollection- Parameters:
index- Anintrepresenting the index of the name to return.- Returns:
- The
Stringrepresenting the name at this index.
-
getNameCount
public int getNameCount()
Description copied from interface:ContainerStringCollectionThis returns the number of unique names (keys) in this collection.- Specified by:
getNameCountin interfaceContainerStringCollection- Returns:
- An
intrepresenting the count of unique names.
-
getValue
public java.lang.Object getValue(java.lang.String name)
Description copied from interface:ContainerStringCollectionThis returns a value associated with a given name (key) in this collection.- Specified by:
getValuein interfaceContainerStringCollection- Parameters:
name- AStringrepresenting the name of the key in this collection.- Returns:
- A Object representing the value for the given name.
-
-