org.openpermis.policy.bean.basic
Class BasicTargetCollection

java.lang.Object
  extended by org.openpermis.policy.bean.basic.BasicPart
      extended by org.openpermis.policy.bean.basic.BasicPartBean
          extended by org.openpermis.policy.bean.basic.BasicAbstractCollection<TargetBean>
              extended by org.openpermis.policy.bean.basic.BasicTargetCollection
All Implemented Interfaces:
Serializable, Iterable<TargetBean>, BeanCollection<TargetBean>, PartBean, TargetBeanCollection, Part, TargetCollection

public class BasicTargetCollection
extends BasicAbstractCollection<TargetBean>
implements TargetBeanCollection

Basic implementation of TargetBeanCollection.

See Also:
Serialized Form
Since:
0.3.0

Constructor Summary
protected BasicTargetCollection(SerialNumber serialNumber)
          Creates a basic target collection.
protected BasicTargetCollection(SerialNumber serialNumber, Collection<TargetBean> collection)
          Creates a basic target collection.
 
Method Summary
 boolean contains(Target target)
          Returns true if target is contained in this collection.
 BasicTargetCollection create(List<TargetBean> list)
          Returns a new bean collection containing the list.
protected  boolean isCollectionType(BasicPart part)
          Returns true if collection type of part is an instance of this collection.
 
Methods inherited from class org.openpermis.policy.bean.basic.BasicAbstractCollection
appendPartDetails, comparablePart, equalPart, findBySerialNumber, getCollection, isPartValid, iterator, partHashCode, toList
 
Methods inherited from class org.openpermis.policy.bean.basic.BasicPartBean
addPropertyChangeListener, equalSerialNumber, firePropertyChange, getPartBeanType, getSerialNumber, getSerialNumberString, notifyIdentityChange, notifyNameChange, removePropertyChangeListener, toShortString
 
Methods inherited from class org.openpermis.policy.bean.basic.BasicPart
appendDetails, equals, getIdentity, getName, getSimpleClassName, hashCode, hasPartIdentity, hasPartName, isChildCollectionValid, isChildNotNull, isChildNullOrValid, isChildValid, isIdentityValid, isNameValid, isValid, reportProblem, setIdentity, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openpermis.policy.bean.BeanCollection
iterator, toList
 
Methods inherited from interface org.openpermis.policy.bean.PartBean
addPropertyChangeListener, equalSerialNumber, findBySerialNumber, getPartBeanType, getSerialNumber, removePropertyChangeListener, toShortString
 

Constructor Detail

BasicTargetCollection

protected BasicTargetCollection(SerialNumber serialNumber)
Creates a basic target collection.

Parameters:
serialNumber - the serial number of this part.
Since:
0.3.0

BasicTargetCollection

protected BasicTargetCollection(SerialNumber serialNumber,
                                Collection<TargetBean> collection)
Creates a basic target collection.

Parameters:
serialNumber - the serial number of this part.
collection - a collection of TargetBean's.
Since:
0.3.0
Method Detail

isCollectionType

protected boolean isCollectionType(BasicPart part)
Description copied from class: BasicAbstractCollection
Returns true if collection type of part is an instance of this collection.

Specified by:
isCollectionType in class BasicAbstractCollection<TargetBean>
Parameters:
part - a BasicPart.
Returns:
true if collection type of part is an instance of this collection.
Since:
0.3.0

contains

public boolean contains(Target target)
Description copied from interface: TargetCollection
Returns true if target is contained in this collection.

Specified by:
contains in interface TargetCollection
Parameters:
target - the target.
Returns:
true if target is contained in this collection.
Since:
0.3.0

create

public BasicTargetCollection create(List<TargetBean> list)
Description copied from interface: BeanCollection
Returns a new bean collection containing the list.

Specified by:
create in interface BeanCollection<TargetBean>
Parameters:
list - a List.
Returns:
a new bean collection containing the list.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:10
Copyright (c) 2002-2007 Ergon Informatik AG