org.wso2.balana.cond
Interface Expression

All Known Subinterfaces:
Evaluatable, Function
All Known Implementing Classes:
AbsFunction, AbstractAttributeSelector, AbstractDesignator, AddFunction, AnyURIAttribute, Apply, AttributeAssignment, AttributeDesignator, AttributeDesignator, AttributeSelector, AttributeSelector, AttributeValue, BagAttribute, BagFunction, Base64BinaryAttribute, BooleanAttribute, ComparisonFunction, Condition, ConditionBagFunction, ConditionSetFunction, DateAttribute, DateMathFunction, DateTimeAttribute, DayTimeDurationAttribute, DivideFunction, DNSNameAttribute, DoubleAttribute, EqualFunction, FloorFunction, FunctionBase, GeneralBagFunction, GeneralSetFunction, HexBinaryAttribute, HigherOrderFunction, IntegerAttribute, IPAddressAttribute, IPv4AddressAttribute, IPv6AddressAttribute, LogicalFunction, MatchFunction, ModFunction, MultiplyFunction, NOfFunction, NotFunction, NumericConvertFunction, RFC822NameAttribute, RoundFunction, SetFunction, StringAttribute, StringComparingFunction, StringConversionFunction, StringCreationFunction, StringFunction, StringNormalizeFunction, SubStringFunction, SubtractFunction, TimeAttribute, TimeInRangeFunction, URLStringCatFunction, VariableReference, X500NameAttribute, XPathAttribute, XPathFunction, YearMonthDurationAttribute

public interface Expression

This interface represents the expression type in the XACML 2.0 schema.

Since:
2.0
Author:
Seth Proctor

Method Summary
 void encode(StringBuilder builder)
          Encodes this AttributeValue into its XML representation and writes this encoding to the given StringBuilder This will always produce the version used in a policy rather than that used in a request, so this is equivalent to calling encodeWithTags(true) and then stuffing that into a stream.
 URI getType()
          Returns the type of the expression.
 boolean returnsBag()
          Returns whether or not this expression returns, or evaluates to a Bag.
 

Method Detail

getType

URI getType()
Returns the type of the expression. This may be the data type of an AttributeValue, the return type of a Function, etc.

Returns:
the attribute type of the referenced expression

returnsBag

boolean returnsBag()
Returns whether or not this expression returns, or evaluates to a Bag. Note that Evaluatable, which extends this interface, defines evaluatesToBag which is essentially the same function. This method has been deprecated, and returnsBag is now the preferred way to query all Expressions.


encode

void encode(StringBuilder builder)
Encodes this AttributeValue into its XML representation and writes this encoding to the given StringBuilder This will always produce the version used in a policy rather than that used in a request, so this is equivalent to calling encodeWithTags(true) and then stuffing that into a stream.

Parameters:
builder - string stream into which the XML-encoded data is written


Copyright © 2015 WSO2. All rights reserved.