kaos.kpat.models
Class ModelPolicyList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet
              extended by kaos.kpat.models.ModelPolicyList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.Set

public class ModelPolicyList
extends java.util.HashSet
implements java.io.Serializable

A group of related ModelPolicy objects. $Revision: 1.3 $

See Also:
Serialized Form

Constructor Summary
ModelPolicyList()
           
 
Method Summary
 boolean add(java.lang.Object o)
          Override the superclass's add(), to allow only the proper objects to be added.
 java.lang.Object clone()
          'Deep' implementation of clone().
 ModelPolicy getPolicy(java.lang.String policyId)
           
 void print()
          Pretty-print the policies.
 java.lang.String toString()
          toString for pretty printing
 
Methods inherited from class java.util.HashSet
clear, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ModelPolicyList

public ModelPolicyList()
Method Detail

add

public boolean add(java.lang.Object o)
Override the superclass's add(), to allow only the proper objects to be added.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.Set
Overrides:
add in class java.util.HashSet

toString

public java.lang.String toString()
toString for pretty printing

Overrides:
toString in class java.util.AbstractCollection

print

public void print()
Pretty-print the policies.


clone

public java.lang.Object clone()
'Deep' implementation of clone().

Overrides:
clone in class java.util.HashSet

getPolicy

public ModelPolicy getPolicy(java.lang.String policyId)