Class ReadOnlyAttributes

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.

Constructors

ReadOnlyAttributes

public ReadOnlyAttributes();

Construct empty attributes collection.

ReadOnlyAttributes

public ReadOnlyAttributes(Vector v);

Construct attributes collection using the vector of attributes.

ParameterDescription
vAttribute vector

ReadOnlyAttributes

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.

ParameterDescription
elemsthe number of attributes to reserve initially.

Methods

attributes 

public Enumeration attributes();

Return an Enumeration for iterating through the attributes.

get 

public Object get(Name name);

Find the named attribute and return the associated value.

lookup 

public Attribute lookup(Name name);

size 

public int size();

Return the number of attribute/value pairs in the collection.

toString 

public String toString();