com.sapportals.portal.prt.util
Class MultiValueAttributeList

java.lang.Object
  |
  +--com.sapportals.portal.prt.util.MultiValueAttributeList

public class MultiValueAttributeList
extends java.lang.Object

Copyright (c) SAP Portals Europe GmbH 2001

Version:
$Revision: #3 $

Constructor Summary
MultiValueAttributeList()
          Constructor using defaults
MultiValueAttributeList(int initialCapacity)
          Constructor allowing to specify initial assumptions on the number of parameters
 
Method Summary
 void add(java.lang.String attribute, java.lang.String value)
          add an attribute with value.
 java.lang.String getAttribute(java.lang.String name)
          Returns the
 java.lang.String[] getAttributeNames()
          Returns the
 java.util.Enumeration getAttributesEnumeration()
          Returns the
 java.lang.String[] getAttributeValues(java.lang.String name)
          Returns the
 java.util.Iterator getAttributeValuesIterator(java.lang.String name)
          Returns the
 void remove(java.lang.String attribute)
          remove an attribute with all values.
 void remove(java.lang.String attribute, java.lang.String value)
          remove an attribute/value combination from this event's data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiValueAttributeList

public MultiValueAttributeList()
Constructor using defaults

MultiValueAttributeList

public MultiValueAttributeList(int initialCapacity)
Constructor allowing to specify initial assumptions on the number of parameters
Parameters:
initialCapacity -  
Method Detail

add

public void add(java.lang.String attribute,
                java.lang.String value)
add an attribute with value. Note: attributes can be multi-valued
Parameters:
attribute - The name of the attribute.
value - The value of the attribute to be added

remove

public void remove(java.lang.String attribute)
remove an attribute with all values.
Parameters:
attribute - The name of the attribute.

remove

public void remove(java.lang.String attribute,
                   java.lang.String value)
remove an attribute/value combination from this event's data.
Parameters:
attribute - The name of the attribute.
value - The value of the attribute to be removed.

getAttributeNames

public java.lang.String[] getAttributeNames()
Returns the
Returns:
An array of attribute names.

getAttributesEnumeration

public java.util.Enumeration getAttributesEnumeration()
Returns the
Returns:
An Enumeration of attribute names.

getAttributeValuesIterator

public java.util.Iterator getAttributeValuesIterator(java.lang.String name)
Returns the
Parameters:
name - The name of the queried attribute
Returns:
An Iterator over the values of an attribute.

getAttributeValues

public java.lang.String[] getAttributeValues(java.lang.String name)
Returns the
Parameters:
name - The name of the queried attribute
Returns:
An array of values of an attribute.

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Returns the
Parameters:
name -  
Returns:
The lone value of an attribute. Note: If the attribute is multi-valued, any one the values can be the result of a call to this method.