|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.cond.FunctionFactory
com.sun.xacml.cond.BaseFunctionFactory
com.sun.xacml.cond.StandardFunctionFactory
This factory supports the standard set of functions specified in XACML 1.0 and 1.1. It is the default factory used by the system, and imposes a singleton pattern insuring that there is only ever one instance of this class.
Note that because this supports only the standard functions, this
factory does not allow the addition of any other functions. If you call
addFunction
on an instance of this class, an exception
will be thrown. If you need a standard factory that is modifiable,
you can either create a new BaseFunctionFactory
(or some
other implementation of FunctionFactory
) populated with
the standard functions from getStandardFunctions
or
you can use getNewFactoryProxy
to get a proxy containing
a new, modifiable set of factories.
Method Summary | |
void |
addAbstractFunction(FunctionProxy proxy,
URI identity)
Always throws an exception, since support for new functions may not be added to a standard factory. |
void |
addFunction(Function function)
Always throws an exception, since support for new functions may not be added to a standard factory. |
static StandardFunctionFactory |
getConditionFactory()
Returns a FuntionFactory that will only provide those functions that are usable in the root of the Condition. |
static StandardFunctionFactory |
getGeneralFactory()
Returns a FunctionFactory that provides access to all the functions. |
static FunctionFactoryProxy |
getNewFactoryProxy()
A convenience method that returns a proxy containing newly created instances of BaseFunctionFactory s that are correctly
supersetted and contain the standard functions and abstract functions. |
Map |
getStandardAbstractFunctions()
Returns the set of abstract functions that this standard factory supports as a mapping of identifier to proxy. |
Set |
getStandardFunctions()
Returns the set of functions that this standard factory supports. |
static StandardFunctionFactory |
getTargetFactory()
Returns a FunctionFactory that will only provide those functions that are usable in Target matching. |
Methods inherited from class com.sun.xacml.cond.BaseFunctionFactory |
createAbstractFunction, createAbstractFunction, createAbstractFunction, createAbstractFunction, createFunction, createFunction, getSupportedFunctions |
Methods inherited from class com.sun.xacml.cond.FunctionFactory |
addAbstractConditionFunction, addAbstractGeneralFunction, addAbstractTargetFunction, addConditionFunction, addGeneralFunction, addTargetFunction, getConditionInstance, getGeneralInstance, getTargetInstance, setDefaultFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static StandardFunctionFactory getTargetFactory()
FunctionFactory
, ensuring quick
access to this factory.
FunctionFactory
for target functionspublic static StandardFunctionFactory getConditionFactory()
FunctionFactory
, ensuring quick
access to this factory.
FunctionFactory
for condition functionspublic static StandardFunctionFactory getGeneralFactory()
FunctionFactory
,
ensuring quick access to this factory.
FunctionFactory
for all functionspublic Set getStandardFunctions()
Set
of Function
spublic Map getStandardAbstractFunctions()
Map
mapping URI
s to
FunctionProxy
spublic static FunctionFactoryProxy getNewFactoryProxy()
BaseFunctionFactory
s that are correctly
supersetted and contain the standard functions and abstract functions.
These factories allow adding support for new functions.
public void addFunction(Function function) throws IllegalArgumentException
addFunction
in class BaseFunctionFactory
function
- the Function
to add to the factory
UnsupportedOperationException
- always
IllegalArgumentException
- if the function's identifier is already
used or if the function is non-boolean
(when this is a Target or Condition
factory)public void addAbstractFunction(FunctionProxy proxy, URI identity) throws IllegalArgumentException
addAbstractFunction
in class BaseFunctionFactory
proxy
- the FunctionProxy
to add to the factoryidentity
- the function's identifier
UnsupportedOperationException
- always
IllegalArgumentException
- if the function's identifier is already
used
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.