org.gxos
Class Collections

java.lang.Object
  |
  +--org.gxos.Collections

public class Collections
extends java.lang.Object

Provides necessary methods for collection management such as collection creation and initialization.

$Id: Collections.java,v 1.9 2001/06/22 23:37:10 balsoy Exp $


Constructor Summary
Collections()
           
 
Method Summary
static CollectionType constructCollection(TreeObject parent, java.lang.String name)
          Returns an empty collection with default values set.
static CollectionType constructRootObject(java.lang.String rootName)
          Returns an empty root collection with default values set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collections

public Collections()
Method Detail

constructCollection

public static CollectionType constructCollection(TreeObject parent,
                                                 java.lang.String name)

Returns an empty collection with default values set. Its NodeType is set to NodeTypeType.COLLECTION. NodeRooting is set to NoteRootingType.INTERNALNODE.

If the parent is given, then newly created collection is added to the parent's child list as well.

Parameters:
parent - Parent object of this newly created collection.
name - Name of this collection.
Returns:
New collection with default values set.

constructRootObject

public static CollectionType constructRootObject(java.lang.String rootName)

Returns an empty root collection with default values set. Its NodeType is set to NodeTypeType.ROOTCONTEXT. NodeRooting is set to NoteRootingType.ROOT.

Root collections do not require a parent object.

Parameters:
name - Name of the root collection.
Returns:
New root collection with default values set.