|
JBoss port of sunxacml 2.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.xacml.sunxacml.cond.VariableManager
public class VariableManager
This class is used by the parsing routines to handle the relationships between variable references and definitions. Specifically, it takes care of the fact that definitions can be placed after their first reference, and can use references to create circular or recursive relationships. It keeps track of what's in the process of being parsed and will pre-parse elements as needed.
Note that you should never have to use this class directly. It is really meant only as a utility for the internal parsing routines. Also, note that the operations on this class are not thread-safe. Typically this doesn't matter, since the code doesn't support using more than one thread to parse a single Policy.
Constructor Summary | |
---|---|
VariableManager(Map variableIds,
PolicyMetaData metaData)
Creates a manager with a fixed set of supported identifiers. |
Method Summary | |
---|---|
VariableDefinition |
getDefinition(String variableId)
Returns the definition with the given identifier. |
URI |
getVariableType(String variableId)
Returns the datatype that the identified definition's expression resolves to on evaluation. |
boolean |
returnsBag(String variableId)
Returns true if the identified definition's expression resolves to a bag on evaluation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableManager(Map variableIds, PolicyMetaData metaData)
Note that the use of a DOM node may change to an arbitrary interface, so that you could use your own mechanism, but this is still being hashed out. This interface will be forzed before a 2.0 release.
variableIds
- a Map
from an identifier to the
Node
that is the root of the
cooresponding variable definition, or nullmetaData
- the meta-data associated with the containing policyMethod Detail |
---|
public VariableDefinition getDefinition(String variableId)
variableId
- the definition's identifier
ProcessingException
- if the definition cannot be resolvedpublic URI getVariableType(String variableId)
variableId
- the identifier for the definition
ProcessingException
- if the identifier is not supported or if
the result cannot be resolvedpublic boolean returnsBag(String variableId)
variableId
- the identifier for the definition
ProcessingException
- if the identifier is not supported or if
the result cannot be resolved
|
JBoss port of sunxacml 2.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |