Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acs.damsel.srvr.collection
Class CollectionView  view CollectionView download CollectionView.java

java.lang.Object
  extended byorg.acs.damsel.srvr.collection.CollectionView

public class CollectionView
extends java.lang.Object

Class Name: Collection View

Description: This class provides methods to add, remove and iterate through assets in a particular collection view. More features to be added later, i.e. the ability to apply a Mask object to this view, etc.

Version:
1.0

Field Summary
private static org.apache.log4j.Logger log
           
private  java.util.Vector myView
           
 
Constructor Summary
CollectionView()
           
 
Method Summary
 void addAsset(org.acs.damsel.srvr.asset.Asset as)
          Adds an Asset to this CollectionView
 boolean contains(org.acs.damsel.srvr.asset.Asset as)
          Method checks whether the specified asset is in this CollectionView
 java.util.Vector getMetadataTagsCommonToAllAssets()
          Iterate through the assets in this collection view and determine what asset descriptors are common for all.
 java.util.Iterator iterator()
           
 void merge(CollectionView collView)
          Merges specified collection view assets with the current collection view.
 boolean removeAsset(org.acs.damsel.srvr.asset.Asset as)
          Removes the specified Asset from this CollectionView
 org.acs.damsel.srvr.asset.Asset returnAsset(int index)
          Returns the asset sitting at the specified index in the CollectionView(Vector).
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myView

private java.util.Vector myView

log

private static org.apache.log4j.Logger log
Constructor Detail

CollectionView

public CollectionView()
Method Detail

merge

public void merge(CollectionView collView)
           throws java.sql.SQLException
Merges specified collection view assets with the current collection view.


addAsset

public void addAsset(org.acs.damsel.srvr.asset.Asset as)
Adds an Asset to this CollectionView


removeAsset

public boolean removeAsset(org.acs.damsel.srvr.asset.Asset as)
Removes the specified Asset from this CollectionView


returnAsset

public org.acs.damsel.srvr.asset.Asset returnAsset(int index)
Returns the asset sitting at the specified index in the CollectionView(Vector).


getMetadataTagsCommonToAllAssets

public java.util.Vector getMetadataTagsCommonToAllAssets()
Iterate through the assets in this collection view and determine what asset descriptors are common for all.


size

public int size()

iterator

public java.util.Iterator iterator()

contains

public boolean contains(org.acs.damsel.srvr.asset.Asset as)
                 throws java.sql.SQLException
Method checks whether the specified asset is in this CollectionView