org.wso2.balana.attr
Class AbstractAttributeSelector

java.lang.Object
  extended by org.wso2.balana.attr.AbstractAttributeSelector
All Implemented Interfaces:
Evaluatable, Expression
Direct Known Subclasses:
AttributeSelector, AttributeSelector

public abstract class AbstractAttributeSelector
extends Object
implements Evaluatable

Supports the standard selector functionality in XACML 3.0 version, which uses XPath expressions to resolve values from the Request or elsewhere. This absrtact implementation of


Field Summary
protected  boolean mustBePresent
          must resolution find something
protected  URI type
          the data type returned by this selector
protected  String xpathVersion
          the xpath version we've been told to use
 
Constructor Summary
AbstractAttributeSelector()
           
 
Method Summary
 URI getType()
          Returns the data type of the attribute values that this selector will resolve
 String getXPathVersion()
          Returns the XPath version this selector is supposed to use.
 boolean isMustBePresent()
          Returns whether or not a value is required to be resolved by this selector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wso2.balana.cond.Evaluatable
evaluate, evaluatesToBag, getChildren
 
Methods inherited from interface org.wso2.balana.cond.Expression
encode, returnsBag
 

Field Detail

type

protected URI type
the data type returned by this selector


mustBePresent

protected boolean mustBePresent
must resolution find something


xpathVersion

protected String xpathVersion
the xpath version we've been told to use

Constructor Detail

AbstractAttributeSelector

public AbstractAttributeSelector()
Method Detail

getType

public URI getType()
Returns the data type of the attribute values that this selector will resolve

Specified by:
getType in interface Expression
Returns:
the data type of the values found by this selector

isMustBePresent

public boolean isMustBePresent()
Returns whether or not a value is required to be resolved by this selector.

Returns:
true if a value is required, false otherwise

getXPathVersion

public String getXPathVersion()
Returns the XPath version this selector is supposed to use. This is typically provided by the defaults section of the policy containing this selector.

Returns:
the XPath version


Copyright © 2015 WSO2. All rights reserved.