Indicium Attribute Sets

net.hep.lcg.pool.Indicium
Class TypedCollection


class TypedCollection
implements RestrictedCollection

TypedCollection is a Collection with associated type (Class). Only objects of that type can be included. Embeded Collection is ArrayList.

$Id: TypedCollection.java,v 1.10 2003/01/09 14:46:22 hrivnac Exp $

$Log: TypedCollection.java,v $
Revision 1.10  2003/01/09 14:46:22  hrivnac
1) Creation/Opening of Collections on Accessor implemened and cleaned.
2) Protection against string inconsistencies in SQLDB added.

Revision 1.9  2002/12/20 09:40:40  hrivnac
Documentation update.

Author:
J.Hrivnac
Version: 1.1.0

Field Summary
 private Class_class
           
 private String_className
           
 private Collection_collection
           
 private String_name
           
 private static Categorylog
          Logging .

Constructor Summary
 private TypedCollection()
          Can't be called.
 TypedCollection(String name, Class cl)
          Create.

Method Summary
 voidadd(Object object)
          Add an Object.
 private StringclassName()
           
 Collectioncollection()
          Give Collection itself.
 Stringname()
          Give name.
 StringtoString()
           
 Classtype()
          Give Class.

Field Detail

_class

private Class _class

_className

private String _className

_collection

private Collection _collection

_name

private String _name

log

private static Category log
Logging .
Constructor Detail

TypedCollection

private TypedCollection()
Can't be called.

TypedCollection

public TypedCollection(String name, Class cl)
Create.
Method Detail

add

public void add(Object object)
Add an Object.

className

private String className()

collection

public Collection collection()
Give Collection itself.

name

public String name()
Give name.

toString

public String toString()

type

public Class type()
Give Class.

Association Links

to Class java.lang.String

to Class java.lang.Class

to Class java.lang.String

to Class java.util.Collection


Indicium Attribute Sets