public class XPathAttribute extends AttributeValue
Modifier and Type | Field and Description |
---|---|
static String |
identifier
Official name of this type
|
Constructor and Description |
---|
XPathAttribute(String value,
String xPathCategory)
Creates a new
XPathAttribute that represents the String value supplied. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an
obligation.
|
String |
encodeWithTags(boolean includeType)
Encodes the value and includes the AttributeValue XML tags so that the resulting string can
be included in a valid XACML policy or Request/Response.
|
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its value equals the value
contained in this class.
|
static XPathAttribute |
getInstance(Node root)
Returns a new
XPathAttribute that represents a particular DOM node. |
static XPathAttribute |
getInstance(String value,
String xPathCategory)
Returns a new
XPathAttribute that represents value indicated by
the String provided. |
String |
getValue()
Returns the
String value that represents xpath expression |
String |
getXPathCategory()
Returns the
String value that represents the namespace context |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same
type.
|
encode, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public static final String identifier
public static XPathAttribute getInstance(Node root)
XPathAttribute
that represents a particular DOM node.root
- the Node
that contains the desired valueXPathAttribute
representing the appropriate value (null if there
is a parsing error)public static XPathAttribute getInstance(String value, String xPathCategory)
XPathAttribute
that represents value indicated by
the String
provided.value
- a string representing the desired xpath expression valuexPathCategory
- a String represents the namespace contextXPathAttribute
representing the appropriate valuepublic String getValue()
String
value that represents xpath expressionString
valuepublic String getXPathCategory()
String
value that represents the namespace contextString
xPathCategorypublic boolean equals(Object o)
public int hashCode()
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valuepublic String encodeWithTags(boolean includeType)
AttributeValue
boolean
parameter
lets you include the DataType attribute, which is required in a policy but not allowed in a
Request or Response.encodeWithTags
in class AttributeValue
includeType
- include the DataType XML attribute if true
, exclude if
false
String
encoding including the XML tagsCopyright © 2021 WSO2. All rights reserved.