public class ReadOnlyAttributes { // Constructors public ReadOnlyAttributes(); public ReadOnlyAttributes(Vector v); public ReadOnlyAttributes(int elems); // Methods public Enumeration attributes(); public Object get(Name name); public Attribute lookup(Name name); public int size(); public String toString(); }
Attributes wrapper class which provides read only access.
public ReadOnlyAttributes();Construct empty attributes collection.
public ReadOnlyAttributes(Vector v);Construct attributes collection using the vector of attributes.
Parameter Description v Attribute vector
public ReadOnlyAttributes(int elems);Construct attributes collection with given number of empty slots. The collection will grow automatically if you add more than this number.
Parameter Description elems the number of attributes to reserve initially.
public Enumeration attributes();Return an Enumeration for iterating through the attributes.
public Object get(Name name);Find the named attribute and return the associated value.
public Attribute lookup(Name name);
public int size();Return the number of attribute/value pairs in the collection.
public String toString();