ro.polak.utilities
Class AttributeList

java.lang.Object
  extended by ro.polak.utilities.AttributeList
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Config, Headers

public class AttributeList
extends java.lang.Object
implements java.io.Serializable

Attribute list

Java Little Web Server Homepage

Version:
1.0/21.02.2008
Author:
Piotr Polak www.polak.ro
See Also:
Serialized Form

Constructor Summary
AttributeList()
           
 
Method Summary
 java.lang.String get(java.lang.String attributeName)
           
 java.lang.String getNameAt(int i)
          Returns name at specified index
 java.lang.String getValueAt(int i)
          Returns value at specified index
 void set(java.lang.String attributeName, java.lang.String attributeValue)
          Sets attribute
 int size()
          Returns size of the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeList

public AttributeList()
Method Detail

set

public void set(java.lang.String attributeName,
                java.lang.String attributeValue)
Sets attribute

Parameters:
attributeName - attribute name
attributeValue - attribute value

getNameAt

public java.lang.String getNameAt(int i)
Returns name at specified index

Parameters:
i - index
Returns:
value at name index

getValueAt

public java.lang.String getValueAt(int i)
Returns value at specified index

Parameters:
i - index
Returns:
value at specified index

get

public java.lang.String get(java.lang.String attributeName)
Parameters:
attributeName - name of the attribute
Returns:
specified attribute value

size

public int size()
Returns size of the list

Returns:
size of the list