public interface AttributeValue extends PrimitiveValue
AttributeValueType
except it is
turned into an interface for more flexibility and it is not JAXB-annotated. Yet, it is designed to be mappable to an AttributeValueType
. Values
of all standard XACML primitive datatypes extend this. Contrary to PrimitiveValue
, this does not represent Functions which are not attribute values. If you want to provide a new type of
AttributeValue, i.e. new datatype, extend AttributeValueFactory
to provide a factory for it.
All implementations must implement/override #equals(Object)
and #hashCode()
properly.Modifier and Type | Method and Description |
---|---|
List<Serializable> |
getContent()
Get the value content as specified by
XmlMixed , i.e. |
Map<QName,String> |
getXmlAttributes()
Get the attributes attached to the value as specified by
XmlAnyAttribute , or any kind of attributes/metadata defined by some markup language that this value
type is designed to be (de)serialized (from) to. |
List<Serializable> getContent()
XmlMixed
, i.e. a list, each item of which may be a String, a JAXBElement
, a instance of a class
annotated with @XmlRootElement, or a Element
. In addition, in the two latter cases, the item must also be Serializable
.Map<QName,String> getXmlAttributes()
XmlAnyAttribute
, 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.Copyright © 2012–2020. All rights reserved.