com.sapportals.portal.prt.util

Class MultiValueAttributeList

java.lang.Object
  extended by com.sapportals.portal.prt.util.MultiValueAttributeList

public class MultiValueAttributeList
extends Object

Copyright (c) SAP Portals Europe GmbH 2001


Constructor Summary
MultiValueAttributeList()
          Constructor using defaults
MultiValueAttributeList(int initialCapacity)
          Constructor allowing to specify initial assumptions on the number of parameters
 
Method Summary
 void add(String attribute, String value)
          add an attribute with value.
 String getAttribute(String name)
          Returns the
 String[] getAttributeNames()
          Returns the
 Enumeration getAttributesEnumeration()
          Returns the
 String[] getAttributeValues(String name)
          Returns the
 Iterator getAttributeValuesIterator(String name)
          Returns the
 void remove(String attribute)
          remove an attribute with all values.
 void remove(String attribute, 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(String attribute,
                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(String attribute)
remove an attribute with all values.

Parameters:
attribute - The name of the attribute.

remove

public void remove(String attribute,
                   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 String[] getAttributeNames()
Returns the

Returns:
An array of attribute names.

getAttributesEnumeration

public Enumeration getAttributesEnumeration()
Returns the

Returns:
An Enumeration of attribute names.

getAttributeValuesIterator

public Iterator getAttributeValuesIterator(String name)
Returns the

Parameters:
name - The name of the queried attribute
Returns:
An Iterator over the values of an attribute.

getAttributeValues

public String[] getAttributeValues(String name)
Returns the

Parameters:
name - The name of the queried attribute
Returns:
An array of values of an attribute.

getAttribute

public String getAttribute(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.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] epbc.prtapi._apideprecated default EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice