org.openpermis.policy.predicate
Class ValueSet

java.lang.Object
  extended by org.openpermis.policy.predicate.ValueSet

public class ValueSet
extends Object

Set of values.

Since:
0.3.0

Field Summary
private static long serialVersionUID
           
private  List<Value<?>> values
           
 
Constructor Summary
ValueSet(List<Value<?>> values)
          Creates a set, at least one argument is needed.
ValueSet(Value<?>... values)
          Creates a set, at least one argument is needed.
 
Method Summary
 boolean containsAllElementOfSet(ValueSet otherSet, TimeStamp timeStamp, Map<String,?> arguments)
          Checks if all elements of another set are contained.
 boolean containsAnyElementOfSet(ValueSet otherSet, TimeStamp timeStamp, Map<String,?> arguments)
          Checks if any element of another set is contained.
private  boolean containsElement(Value<?> value, TimeStamp timeStamp, Map<String,?> arguments)
           
 boolean equals(Object obj)
           
 List<Value<?>> getValues()
          Get current values.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Constant Field Value:
-120774600735285360L
Since:
0.3.0

values

private final List<Value<?>> values
Since:
0.3.0
Constructor Detail

ValueSet

public ValueSet(Value<?>... values)
Creates a set, at least one argument is needed.

Parameters:
values - Values.
Since:
0.3.0

ValueSet

public ValueSet(List<Value<?>> values)
Creates a set, at least one argument is needed.

Parameters:
values - Values.
Since:
0.3.0
Method Detail

getValues

public List<Value<?>> getValues()
Get current values. new


containsElement

private boolean containsElement(Value<?> value,
                                TimeStamp timeStamp,
                                Map<String,?> arguments)
Since:
0.3.0

containsAnyElementOfSet

public boolean containsAnyElementOfSet(ValueSet otherSet,
                                       TimeStamp timeStamp,
                                       Map<String,?> arguments)
Checks if any element of another set is contained.

Since:
0.3.0

containsAllElementOfSet

public boolean containsAllElementOfSet(ValueSet otherSet,
                                       TimeStamp timeStamp,
                                       Map<String,?> arguments)
Checks if all elements of another set are contained.

Since:
0.3.0

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object
Since:
0.3.0

hashCode

public final int hashCode()
Overrides:
hashCode in class Object
Since:
0.3.0


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