|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.attr.AttributeValue
org.wso2.balana.attr.xacml3.XPathAttribute
public class XPathAttribute
Representation of Xpath attribute type
Field Summary | |
---|---|
static String |
identifier
Official name of this type |
Constructor Summary | |
---|---|
XPathAttribute(String value,
String xPathCategory)
Creates a new XPathAttribute that represents the String value supplied. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.wso2.balana.attr.AttributeValue |
---|
encode, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String identifier
Constructor Detail |
---|
public XPathAttribute(String value, String xPathCategory)
XPathAttribute
that represents the String value supplied.
value
- the String
that represent xpath expressionxPathCategory
- the String
that represent the namespace contextMethod Detail |
---|
public static XPathAttribute getInstance(Node root)
XPathAttribute
that represents a particular DOM node.
root
- the Node
that contains the desired value
XPathAttribute
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 context
XPathAttribute
representing the appropriate valuepublic String getValue()
String
value that represents xpath expression
String
valuepublic String getXPathCategory()
String
value that represents the namespace context
String
xPathCategorypublic boolean equals(Object o)
equals
in class Object
o
- the object to compare
public int hashCode()
hashCode
in class Object
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 tags
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |