com.sun.xacml.cond
Class ConditionSetFunction
java.lang.Object
com.sun.xacml.cond.FunctionBase
com.sun.xacml.cond.SetFunction
com.sun.xacml.cond.ConditionSetFunction
- All Implemented Interfaces:
- Function
- public class ConditionSetFunction
- extends SetFunction
Specific SetFunction
class that supports all of the
condition set functions: type-at-least-one-member-of, type-subset, and
type-set-equals.
- Since:
- 1.2
Constructor Summary |
ConditionSetFunction(String functionName)
Constructor that is used to create one of the condition standard
set functions. |
ConditionSetFunction(String functionName,
String datatype,
String functionType)
Constructor that is used to create instances of condition set
functions for new (non-standard) datatypes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionSetFunction
public ConditionSetFunction(String functionName)
- Constructor that is used to create one of the condition standard
set functions. The name supplied must be one of the standard XACML
functions supported by this class, including the full namespace,
otherwise an exception is thrown. Look in
SetFunction
for details about the supported names.
- Parameters:
functionName
- the name of the function to create
- Throws:
IllegalArgumentException
- if the function is unknown
ConditionSetFunction
public ConditionSetFunction(String functionName,
String datatype,
String functionType)
- Constructor that is used to create instances of condition set
functions for new (non-standard) datatypes. This is equivalent to
using the
getInstance
methods in SetFunction
and is generally only used by the run-time configuration code.
- Parameters:
functionName
- the name of the new functiondatatype
- the full identifier for the supported datatypefunctionType
- which kind of Set function, based on the
NAME_BASE_*
fields
getSupportedIdentifiers
public static Set getSupportedIdentifiers()
- Returns a
Set
containing all the function identifiers
supported by this class.
- Returns:
- a
Set
of String
s
evaluate
public EvaluationResult evaluate(List inputs,
EvaluationCtx context)
- Evaluates the function, using the specified parameters.
- Parameters:
inputs
- a List
of Evaluatable
objects representing the arguments passed to the functioncontext
- an EvaluationCtx
so that the
Evaluatable
objects can be evaluated
- Returns:
- an
EvaluationResult
representing the
function's result
Copyright 2003-2004 Sun Microsystems,
Inc. All rights reserved. Use is subject to license
terms.Sun, Sun Microsystems, the Sun Logo, and Java are
trademarks or registered trademarks of Sun Microsystems, Inc. in
the US and other countries.