Open SiteSearch 4.1.1
Final

ORG.oclc.xml.util
Class ReadOnlyAttributes

java.lang.Object
  |
  +--ORG.oclc.xml.util.ReadOnlyAttributes
Direct Known Subclasses:
Attributes

public class ReadOnlyAttributes
extends Object

Attributes wrapper class which provides read only access.


Constructor Summary
ReadOnlyAttributes()
          Construct empty attributes collection.
ReadOnlyAttributes(int elems)
          Construct attributes collection with given number of empty slots.
ReadOnlyAttributes(Vector v)
          Construct attributes collection using the vector of attributes.
 
Method Summary
 Enumeration attributes()
          Return an Enumeration for iterating through the attributes.
 Object get(Name name)
          Find the named attribute and return the associated value.
 Attribute lookup(Name name)
           
 int size()
          Return the number of attribute/value pairs in the collection.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadOnlyAttributes

public ReadOnlyAttributes()
Construct empty attributes collection.

ReadOnlyAttributes

public ReadOnlyAttributes(Vector v)
Construct attributes collection using the vector of attributes.
Parameters:
v - Attribute 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.
Parameters:
elems - the number of attributes to reserve initially.
Method Detail

size

public int size()
Return the number of attribute/value pairs in the collection.

get

public Object get(Name name)
Find the named attribute and return the associated value.

attributes

public Enumeration attributes()
Return an Enumeration for iterating through the attributes.

lookup

public Attribute lookup(Name name)

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final