org.openpermis.policy.bean.basic.predicate
Class Constant<T>

java.lang.Object
  extended by org.openpermis.policy.bean.basic.predicate.Constant<T>
Type Parameters:
T - constant value type.
All Implemented Interfaces:
Value<T>

public class Constant<T>
extends Object
implements Value<T>

A constant value.

Since:
0.1.0

Constructor Summary
Constant(T value)
          Creates a constant.
 
Method Summary
 boolean equals(Object obj)
           
 Class<?> getType()
           
 T getValue()
          Returns the value.
 int hashCode()
           
 boolean isMatchable(Map<String,Class<?>> arguments)
           
 T valueOf(TimeStamp timeStamp, Map<String,?> arguments)
          Returns the enclosed value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant(T value)
Creates a constant.

Method Detail

getType

public Class<?> getType()
Specified by:
getType in interface Value<T>
Since:
0.1.0

getValue

public T getValue()
Returns the value.

Returns:
the value.
Since:
0.1.0

valueOf

public T valueOf(TimeStamp timeStamp,
                 Map<String,?> arguments)
Description copied from interface: Value
Returns the enclosed value.

Specified by:
valueOf in interface Value<T>
Since:
0.1.0

isMatchable

public boolean isMatchable(Map<String,Class<?>> arguments)
Specified by:
isMatchable in interface Value<T>
Since:
0.3.0

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Since:
0.1.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG