gov.noaa.gdsg.xmldbremote.xmldbClient
Class XmldbClientResourceSet

java.lang.Object
  extended by gov.noaa.gdsg.xmldbremote.xmldbClient.XmldbClientResourceSet
All Implemented Interfaces:
org.xmldb.api.base.ResourceSet

public class XmldbClientResourceSet
extends java.lang.Object
implements org.xmldb.api.base.ResourceSet

The client interface for the SOAP interface.

Version:
$Id: XmldbClientResourceSet.java,v 1.2 2004/11/03 23:52:39 mrxtravis Exp $
Author:
tns

Constructor Summary
XmldbClientResourceSet(gov.noaa.gdsg.xmldbremote.ResourceSet resourceSet, gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub, XmldbClientCollection parentCollection)
          Creates a new instance of XmldbClientResourceSet
 
Method Summary
 void addResource(org.xmldb.api.base.Resource resource)
          Adds a resource to this resource set.
 void clear()
          Clears this resrouce set of resource
 org.xmldb.api.base.ResourceIterator getIterator()
          Throws a NOT_IMPLEMENTED exception
 org.xmldb.api.base.Resource getMembersAsResource()
          Throws a NOT_IMPLEMENTED exception
 org.xmldb.api.base.Resource getResource(long index)
          Returns a requested resource.
 long getSize()
          Gets the the number of Resources in this set.
 void removeResource(long index)
          Removes the resource from this resource set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmldbClientResourceSet

public XmldbClientResourceSet(gov.noaa.gdsg.xmldbremote.ResourceSet resourceSet,
                              gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub,
                              XmldbClientCollection parentCollection)
Creates a new instance of XmldbClientResourceSet

Parameters:
resourceSet - Represents the object on the remote server.
stub - used to make remote calls.
parentCollection - The collection this resource set is associated with.
Method Detail

addResource

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

Specified by:
addResource in interface org.xmldb.api.base.ResourceSet
Parameters:
resource - The resource to add
Throws:
org.xmldb.api.base.XMLDBException - Everything is caught and rethrown as one.

clear

public void clear()
           throws org.xmldb.api.base.XMLDBException
Clears this resrouce set of resource

Specified by:
clear in interface org.xmldb.api.base.ResourceSet
Throws:
org.xmldb.api.base.XMLDBException - Everything is caught and rethrown as one.

getIterator

public org.xmldb.api.base.ResourceIterator getIterator()
                                                throws org.xmldb.api.base.XMLDBException
Throws a NOT_IMPLEMENTED exception

Specified by:
getIterator in interface org.xmldb.api.base.ResourceSet
Returns:
Nothing, ever.
Throws:
org.xmldb.api.base.XMLDBException - Everything is caught and rethrown as one.

getMembersAsResource

public org.xmldb.api.base.Resource getMembersAsResource()
                                                 throws org.xmldb.api.base.XMLDBException
Throws a NOT_IMPLEMENTED exception

Specified by:
getMembersAsResource in interface org.xmldb.api.base.ResourceSet
Returns:
Nothing, ever.
Throws:
org.xmldb.api.base.XMLDBException - Everything is caught and rethrown as one.

getResource

public org.xmldb.api.base.Resource getResource(long index)
                                        throws org.xmldb.api.base.XMLDBException
Returns a requested resource.

Specified by:
getResource in interface org.xmldb.api.base.ResourceSet
Parameters:
index - The index, in this set, of the resource which one wishes to retrieve.
Returns:
The request resource.
Throws:
org.xmldb.api.base.XMLDBException - All exceptions are rethrown as one.

getSize

public long getSize()
             throws org.xmldb.api.base.XMLDBException
Gets the the number of Resources in this set.

Specified by:
getSize in interface org.xmldb.api.base.ResourceSet
Returns:
The size
Throws:
org.xmldb.api.base.XMLDBException - All exceptions are rethrown as one.

removeResource

public void removeResource(long index)
                    throws org.xmldb.api.base.XMLDBException
Removes the resource from this resource set.

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 - All exceptions are rethrown as one.


Copyright © 2004-2005 DOC > NOAA > NGDC > EDSD. All Rights Reserved.