gov.noaa.eds.xapi.generic
Class GenericResourceSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bygov.noaa.eds.xapi.generic.GenericResourceSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, org.xmldb.api.base.ResourceSet, java.io.Serializable

public class GenericResourceSet
extends java.util.Vector
implements org.xmldb.api.base.ResourceSet

A basic Set of resources.

Version:
$Id: GenericResourceSet.java,v 1.2 2004/12/23 22:26:01 mrxtravis Exp $
Author:
tns
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GenericResourceSet()
          Creates a new instance of GenericResourceSet
 
Method Summary
 void addResource(org.xmldb.api.base.Resource resource)
          Add a resource to this set
 org.xmldb.api.base.ResourceIterator getIterator()
          Returns an iterator for this set of resources
 org.xmldb.api.base.Resource getMembersAsResource()
          Not implemented
 org.xmldb.api.base.Resource getResource(long index)
          Returns the resource at the specified index.
 long getSize()
          Returns the size of this set.
 void removeResource(long index)
          Removes the resource at the specified index
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.ResourceSet
clear
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

GenericResourceSet

public GenericResourceSet()
Creates a new instance of GenericResourceSet

Method Detail

addResource

public void addResource(org.xmldb.api.base.Resource resource)
                 throws org.xmldb.api.base.XMLDBException
Add a resource to this set

Specified by:
addResource in interface org.xmldb.api.base.ResourceSet
Parameters:
resource - The resource to add
Throws:
org.xmldb.api.base.XMLDBException

removeResource

public void removeResource(long index)
                    throws org.xmldb.api.base.XMLDBException
Removes the resource at the specified index

Specified by:
removeResource in interface org.xmldb.api.base.ResourceSet
Parameters:
index - The index of the resource to remove.
Throws:
org.xmldb.api.base.XMLDBException

getSize

public long getSize()
             throws org.xmldb.api.base.XMLDBException
Returns the size of this set.

Specified by:
getSize in interface org.xmldb.api.base.ResourceSet
Returns:
The size
Throws:
org.xmldb.api.base.XMLDBException

getResource

public org.xmldb.api.base.Resource getResource(long index)
                                        throws org.xmldb.api.base.XMLDBException
Returns the resource at the specified index. Throws an XMLDBException if there is the index is inappropriate.

Specified by:
getResource in interface org.xmldb.api.base.ResourceSet
Parameters:
index - The index of the resource to return
Returns:
The resource at the specified index.
Throws:
org.xmldb.api.base.XMLDBException

getMembersAsResource

public org.xmldb.api.base.Resource getMembersAsResource()
                                                 throws org.xmldb.api.base.XMLDBException
Not implemented

Specified by:
getMembersAsResource in interface org.xmldb.api.base.ResourceSet
Throws:
org.xmldb.api.base.XMLDBException

getIterator

public org.xmldb.api.base.ResourceIterator getIterator()
                                                throws org.xmldb.api.base.XMLDBException
Returns an iterator for this set of resources

Specified by:
getIterator in interface org.xmldb.api.base.ResourceSet
Returns:
The iterator.
Throws:
org.xmldb.api.base.XMLDBException


Copyright © 2004 National Oceanic and Atmospheric Administration > National Geophysical Data Center > Enterprise Data Services Division. All Rights Reserved.