gov.noaa.gdsg.xmldbremote.service
Class ResourceSetHandler

java.lang.Object
  extended bygov.noaa.gdsg.xmldbremote.service.BaseHandler
      extended bygov.noaa.gdsg.xmldbremote.service.ResourceSetHandler

public class ResourceSetHandler
extends BaseHandler

Author:
tns

Constructor Summary
ResourceSetHandler()
          Creates a new instance of ResourceSetHandler
 
Method Summary
 void addResource(ResourceSetTransport transport, org.xmldb.api.base.Resource resource)
          Adds a resource instance to the set
 void clear(ResourceSetTransport transport)
          clears the resource
protected  BaseTransport createTransportObject(java.lang.Object object)
          Subclass implement this in order to create the appropriate object and populate it with appropriate values.
 org.xmldb.api.base.Resource getMembersAsResource(ResourceSetTransport transport)
          get iterator should be handled on the client
 org.xmldb.api.base.Resource getResource(ResourceSetTransport transport, long index)
          Returns the ith resource in the set
 long getSize(ResourceSetTransport transport)
          Returns the number of resources contained
 void removeResource(ResourceSetTransport transport, long index)
          Removes the specified resource
 
Methods inherited from class gov.noaa.gdsg.xmldbremote.service.BaseHandler
getAllStoredObjects, getObjectFromSession, nextId, saveForSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSetHandler

public ResourceSetHandler()
Creates a new instance of ResourceSetHandler

Method Detail

createTransportObject

protected BaseTransport createTransportObject(java.lang.Object object)
Description copied from class: BaseHandler
Subclass implement this in order to create the appropriate object and populate it with appropriate values.

Specified by:
createTransportObject in class BaseHandler
Parameters:
object - The actual object in which the mock object should be created to represent.
Returns:
The transport object representing the given object.

addResource

public void addResource(ResourceSetTransport transport,
                        org.xmldb.api.base.Resource resource)
                 throws org.xmldb.api.base.XMLDBException
Adds a resource instance to the set

Throws:
org.xmldb.api.base.XMLDBException

clear

public void clear(ResourceSetTransport transport)
           throws org.xmldb.api.base.XMLDBException
clears the resource

Throws:
org.xmldb.api.base.XMLDBException

getMembersAsResource

public org.xmldb.api.base.Resource getMembersAsResource(ResourceSetTransport transport)
                                                 throws org.xmldb.api.base.XMLDBException
get iterator should be handled on the client

Throws:
org.xmldb.api.base.XMLDBException

getSize

public long getSize(ResourceSetTransport transport)
             throws org.xmldb.api.base.XMLDBException
Returns the number of resources contained

Throws:
org.xmldb.api.base.XMLDBException

getResource

public org.xmldb.api.base.Resource getResource(ResourceSetTransport transport,
                                               long index)
                                        throws org.xmldb.api.base.XMLDBException
Returns the ith resource in the set

Throws:
org.xmldb.api.base.XMLDBException

removeResource

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

Throws:
org.xmldb.api.base.XMLDBException


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