org.decisiondeck.xmcda_oo.structure
Class Criteria

java.lang.Object
  extended by org.decisiondeck.xmcda_oo.utils.MapBackedSet<String,Criterion>
      extended by org.decisiondeck.xmcda_oo.structure.Criteria
All Implemented Interfaces:
Iterable<Criterion>, Collection<Criterion>, Set<Criterion>

public class Criteria
extends MapBackedSet<String,Criterion>
implements Set<Criterion>


Constructor Summary
Criteria()
           
Criteria(Set<Criterion> criteria)
           
 
Method Summary
 boolean add(Criterion object)
           
 boolean contains(Object object)
           
 Criterion get(String id)
          Returns the object associated with the given id, or null if no object having the given id is found.
 Map<String,Criterion> getById()
           
 boolean remove(Object object)
           
 
Methods inherited from class org.decisiondeck.xmcda_oo.utils.MapBackedSet
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

Criteria

public Criteria(Set<Criterion> criteria)

Criteria

public Criteria()
Method Detail

add

public boolean add(Criterion object)
Specified by:
add in interface Collection<Criterion>
Specified by:
add in interface Set<Criterion>

contains

public boolean contains(Object object)
Specified by:
contains in interface Collection<Criterion>
Specified by:
contains in interface Set<Criterion>

get

public Criterion get(String id)
Returns the object associated with the given id, or null if no object having the given id is found.


getById

public Map<String,Criterion> getById()

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection<Criterion>
Specified by:
remove in interface Set<Criterion>
Overrides:
remove in class MapBackedSet<String,Criterion>


Copyright © 2011. All Rights Reserved.