org.openpermis.policy.predicate
Class Argument<T>

java.lang.Object
  extended by org.openpermis.policy.predicate.Argument<T>
Type Parameters:
T - argument value type.
All Implemented Interfaces:
Value<T>

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

An argument value that is evaluated at runtime.

Since:
0.1.0

Field Summary
private  String name
           
private  Class<?> type
           
 
Constructor Summary
Argument(String name, Class<T> type)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Returns the argument name.
 Class<?> getType()
           
 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
 

Field Detail

name

private String name
Since:
0.1.0

type

private Class<?> type
Since:
0.1.0
Constructor Detail

Argument

public Argument(String name,
                Class<T> type)
Method Detail

getType

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

getName

public String getName()
Returns the argument name.

Returns:
the argument name.
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


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