org.ozoneDB.xml.core
Class XMLCollectionImpl

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.xml.core.XMLCollectionImpl
All Implemented Interfaces:
org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, java.io.Serializable, XMLCollection

public class XMLCollectionImpl
extends org.ozoneDB.OzoneObject
implements XMLCollection

Version:
$Revision: 1.2 $
Author:
SMB
See Also:
Serialized Form

Constructor Summary
XMLCollectionImpl()
           
 
Method Summary
 void addResource(java.lang.String id)
           
 XMLCollection getChildCollection(java.lang.String name)
           
 int getChildCollectionCount()
          Returnes a non-recursive count of child collections (i.e. immediate children)
 java.lang.String getName()
          get the name given to this collection
 XMLCollection getParentCollection()
           
 int getResourceCount()
           
 java.util.Set getResources()
           
 boolean hasResource(java.lang.String id)
           
 java.lang.String[] listChildCollections()
           
 void setChildCollection(java.lang.String childName, XMLCollection childCollection)
          Added to support parent-child collections
 void setName(java.lang.String name)
          Set the name of this collection
 void setParentCollection(XMLCollection parentCollection)
          Added to support parent-child collections
 void storeResource(java.lang.String id, Resource res)
           
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 

Constructor Detail

XMLCollectionImpl

public XMLCollectionImpl()
Method Detail

getParentCollection

public XMLCollection getParentCollection()
Specified by:
getParentCollection in interface XMLCollection

setParentCollection

public void setParentCollection(XMLCollection parentCollection)
Added to support parent-child collections

Specified by:
setParentCollection in interface XMLCollection

getName

public java.lang.String getName()
Description copied from interface: XMLCollection
get the name given to this collection

Specified by:
getName in interface XMLCollection

setName

public void setName(java.lang.String name)
Description copied from interface: XMLCollection
Set the name of this collection

Specified by:
setName in interface XMLCollection

getChildCollectionCount

public int getChildCollectionCount()
Description copied from interface: XMLCollection
Returnes a non-recursive count of child collections (i.e. immediate children)

Specified by:
getChildCollectionCount in interface XMLCollection

listChildCollections

public java.lang.String[] listChildCollections()
Specified by:
listChildCollections in interface XMLCollection

getChildCollection

public XMLCollection getChildCollection(java.lang.String name)
Specified by:
getChildCollection in interface XMLCollection

getResourceCount

public int getResourceCount()
Specified by:
getResourceCount in interface XMLCollection

getResources

public java.util.Set getResources()
Specified by:
getResources in interface XMLCollection

hasResource

public boolean hasResource(java.lang.String id)
Specified by:
hasResource in interface XMLCollection

addResource

public void addResource(java.lang.String id)
Specified by:
addResource in interface XMLCollection

storeResource

public void storeResource(java.lang.String id,
                          Resource res)
Specified by:
storeResource in interface XMLCollection

setChildCollection

public void setChildCollection(java.lang.String childName,
                               XMLCollection childCollection)
Added to support parent-child collections

Specified by:
setChildCollection in interface XMLCollection


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.