Interface AttributeValue
-
- All Superinterfaces:
PrimitiveValue
,Value
- All Known Implementing Classes:
AnyUriValue
,Base64BinaryValue
,BaseTimeValue
,BooleanValue
,DateTimeValue
,DateValue
,DayTimeDurationValue
,DnsNameWithPortRangeValue
,DoubleValue
,DurationValue
,HexBinaryValue
,IntegerValue
,IpAddressValue
,NumericValue
,Rfc822NameValue
,SimpleValue
,StringParseableValue
,StringValue
,TimeValue
,X500NameValue
,XPathValue
,YearMonthDurationValue
public interface AttributeValue extends PrimitiveValue
The base type for all primitive/non-bag attribute values used in a policy or request/response. It is similar toAttributeValueType
except it is turned into an interface for more flexibility and it is not JAXB-annotated. Yet, it is designed to be mappable to anAttributeValueType
. Values of all standard XACML primitive datatypes extend this. Contrary toPrimitiveValue
, this does not represent Functions which are not attribute values. If you want to provide a new type of AttributeValue, i.e. new datatype, extendAttributeValueFactory
to provide a factory for it. All implementations must implement/override#equals(Object)
and#hashCode()
properly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Serializable>
getContent()
Get the value content as specified byXmlMixed
, i.e.Map<QName,String>
getXmlAttributes()
Get the attributes attached to the value as specified byXmlAnyAttribute
, or any kind of attributes/metadata defined by some markup language that this value type is designed to be (de)serialized (from) to.
-
-
-
Method Detail
-
getContent
List<Serializable> getContent()
Get the value content as specified byXmlMixed
, i.e. a list, each item of which may be a String, aJAXBElement
, a instance of a class annotated with @XmlRootElement, or aElement
. In addition, in the two latter cases, the item must also beSerializable
.- Returns:
- (possibly mixed) content; not null (must be empty if no content)
-
getXmlAttributes
Map<QName,String> getXmlAttributes()
Get the attributes attached to the value as specified byXmlAnyAttribute
, or any kind of attributes/metadata defined by some markup language that this value type is designed to be (de)serialized (from) to. The primary use of this is (de)serialization of XML attributes. Each key is an attribute's QName and the associated value is the attribute's string value. One example of such XML attribute in XACML standard is the xpathExpression value which has an XPathCategory attribute.- Returns:
- (possibly mixed) content ; not null (must be empty if no attribute)
-
-