org.mydm.core
Class ECollection

java.lang.Object
  extended byorg.mydm.core.ECollection

public class ECollection
extends java.lang.Object

Basic ECollection Object. ECollection is a container for the EDocument Objects.

See Also:
EDocument, ECollectionManager

Constructor Summary
ECollection(java.lang.String colname)
          Contructor
 
Method Summary
 void addEDocument(EDocument edoc)
          Adds an EDocument to the Collection.
 void addEDocuments(EDocument[] edocs)
          Adds an array of EDocument Objects.
 java.lang.String getDocCount()
          Gets the Document count of this collection.
 java.lang.String[] getDocIDs()
          Gets back an array of all document ID's
 EDocument[] getEDocuments()
          Gets an array of EDocument Objects of this collection.
 java.lang.String getName()
          Gets the collection name
 void remAllEDocuments()
          Removes All the Document of the collection.
 void remDoc(java.lang.String doc)
          Removes the document from the collection
 void remDocs(java.lang.String[] docs)
          removes an array documents from the collectiom.
 void remEDocument(EDocument edoc)
          Removes a EDocument from the collection.
 void remEDocuments(EDocument[] edocs)
          Removes an array of EDocument Objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECollection

public ECollection(java.lang.String colname)
Contructor

Parameters:
colname - Collection name
Method Detail

getName

public java.lang.String getName()
Gets the collection name

Returns:
colname

getDocCount

public java.lang.String getDocCount()
Gets the Document count of this collection.

Returns:
doccount

getEDocuments

public EDocument[] getEDocuments()
Gets an array of EDocument Objects of this collection.

Returns:
Array of EDocuments

getDocIDs

public java.lang.String[] getDocIDs()
Gets back an array of all document ID's

Returns:
Array of document ID's

remDoc

public void remDoc(java.lang.String doc)
Removes the document from the collection

Parameters:
doc - document id

remDocs

public void remDocs(java.lang.String[] docs)
removes an array documents from the collectiom.

Parameters:
docs - array of document id's

addEDocument

public void addEDocument(EDocument edoc)
Adds an EDocument to the Collection.

Parameters:
edoc - EDocument Object

addEDocuments

public void addEDocuments(EDocument[] edocs)
Adds an array of EDocument Objects.

Parameters:
edocs - Array of EDocument Objects

remEDocument

public void remEDocument(EDocument edoc)
Removes a EDocument from the collection.

Parameters:
edoc - EDocument Object

remEDocuments

public void remEDocuments(EDocument[] edocs)
Removes an array of EDocument Objects.

Parameters:
edocs - Array of EDocument Objects

remAllEDocuments

public void remAllEDocuments()
Removes All the Document of the collection. Makes the Collection empty.