net.sf.fastxmldb.impl
Class LocalCollection

java.lang.Object
  |
  +--net.sf.fastxmldb.impl.LocalCollection
All Implemented Interfaces:
org.xmldb.api.base.Collection, org.xmldb.api.base.Configurable

public class LocalCollection
extends java.lang.Object
implements org.xmldb.api.base.Collection

The Collection implementation. This implementation uses a SequencedhashMap as the underlying map structure. You are guaranteed that you will get the resources back in the order in which you added them

Author:
jbirchfield

Constructor Summary
LocalCollection(java.lang.String name)
          Default constructor.
 
Method Summary
 void close()
           
 java.lang.String createId()
          not yet implemented
 org.xmldb.api.base.Resource createResource(java.lang.String docId, java.lang.String type)
           
 boolean equals(java.lang.Object o)
           
 org.xmldb.api.base.Collection getChildCollection(java.lang.String s)
          not yet implemented
 int getChildCollectionCount()
          not yet implemented
 java.lang.String getName()
           
 org.xmldb.api.base.Collection getParentCollection()
          not yet implemented
 java.lang.String getProperty(java.lang.String s)
          not yet implemented
 org.xmldb.api.base.Resource getResource(java.lang.String id)
           
 int getResourceCount()
           
 org.xmldb.api.base.Service getService(java.lang.String name, java.lang.String version)
           
 org.xmldb.api.base.Service[] getServices()
          not yet implemented
 boolean isOpen()
          not yet implemented
 java.lang.String[] listChildCollections()
          not yet implemented
 java.lang.String[] listResources()
           
 void removeResource(org.xmldb.api.base.Resource resource)
           
 void setProperty(java.lang.String s, java.lang.String s1)
          not yet implemented
 void storeResource(org.xmldb.api.base.Resource resource)
           
 java.lang.String toString()
          This toString implementation allows you to quickly print out all of the contained XML documents (as strings).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalCollection

public LocalCollection(java.lang.String name)
Default constructor.
Parameters:
name - the name of the collection
Method Detail

getName

public java.lang.String getName()
                         throws org.xmldb.api.base.XMLDBException
Specified by:
getName in interface org.xmldb.api.base.Collection
See Also:
Collection.getName()

getServices

public org.xmldb.api.base.Service[] getServices()
                                         throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
getServices in interface org.xmldb.api.base.Collection
See Also:
Collection.getServices()

getService

public org.xmldb.api.base.Service getService(java.lang.String name,
                                             java.lang.String version)
                                      throws org.xmldb.api.base.XMLDBException
Specified by:
getService in interface org.xmldb.api.base.Collection
See Also:
Collection.getService(String, String)

getParentCollection

public org.xmldb.api.base.Collection getParentCollection()
                                                  throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
getParentCollection in interface org.xmldb.api.base.Collection
See Also:
Collection.getParentCollection()

getChildCollectionCount

public int getChildCollectionCount()
                            throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
getChildCollectionCount in interface org.xmldb.api.base.Collection
See Also:
Collection.getChildCollectionCount()

listChildCollections

public java.lang.String[] listChildCollections()
                                        throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
listChildCollections in interface org.xmldb.api.base.Collection
See Also:
Collection.listChildCollections()

getChildCollection

public org.xmldb.api.base.Collection getChildCollection(java.lang.String s)
                                                 throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
getChildCollection in interface org.xmldb.api.base.Collection
See Also:
Collection.getChildCollection(String)

getResourceCount

public int getResourceCount()
                     throws org.xmldb.api.base.XMLDBException
Specified by:
getResourceCount in interface org.xmldb.api.base.Collection
See Also:
Collection.getResourceCount()

listResources

public java.lang.String[] listResources()
                                 throws org.xmldb.api.base.XMLDBException
Specified by:
listResources in interface org.xmldb.api.base.Collection
See Also:
Collection.listResources()

createResource

public org.xmldb.api.base.Resource createResource(java.lang.String docId,
                                                  java.lang.String type)
                                           throws org.xmldb.api.base.XMLDBException
Specified by:
createResource in interface org.xmldb.api.base.Collection
See Also:
Collection.createResource(String, String)

removeResource

public void removeResource(org.xmldb.api.base.Resource resource)
                    throws org.xmldb.api.base.XMLDBException
Specified by:
removeResource in interface org.xmldb.api.base.Collection
See Also:
Collection.removeResource(Resource)

storeResource

public void storeResource(org.xmldb.api.base.Resource resource)
                   throws org.xmldb.api.base.XMLDBException
Specified by:
storeResource in interface org.xmldb.api.base.Collection
See Also:
Collection.storeResource(Resource)

getResource

public org.xmldb.api.base.Resource getResource(java.lang.String id)
                                        throws org.xmldb.api.base.XMLDBException
Specified by:
getResource in interface org.xmldb.api.base.Collection
See Also:
Collection.getResource(String)

createId

public java.lang.String createId()
                          throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
createId in interface org.xmldb.api.base.Collection
See Also:
Collection.createId()

isOpen

public boolean isOpen()
               throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
isOpen in interface org.xmldb.api.base.Collection
See Also:
Collection.isOpen()

close

public void close()
           throws org.xmldb.api.base.XMLDBException
Specified by:
close in interface org.xmldb.api.base.Collection
See Also:
Collection.close()

getProperty

public java.lang.String getProperty(java.lang.String s)
                             throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
getProperty in interface org.xmldb.api.base.Configurable
See Also:
Configurable.getProperty(String)

setProperty

public void setProperty(java.lang.String s,
                        java.lang.String s1)
                 throws org.xmldb.api.base.XMLDBException
not yet implemented
Specified by:
setProperty in interface org.xmldb.api.base.Configurable
See Also:
Configurable.setProperty(String, String)

toString

public java.lang.String toString()
This toString implementation allows you to quickly print out all of the contained XML documents (as strings).
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)


Copyright © 2003-2003 Birchfield & Associates, Inc.. All Rights Reserved.