|
||||||||||
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.ctx.AttributeAssignment
public class AttributeAssignment
Represents AttributeAssignmentType in the XACML 3.0 and 2.0 policy schema This is used for including arguments in obligations and advices
Constructor Summary | |
---|---|
AttributeAssignment(URI attributeId,
URI dataType,
URI category,
String content,
String issuer)
Constructor that creates a new AttributeAssignment based on the given elements. |
Method Summary | |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an obligation. |
void |
encode(StringBuilder builder)
Encodes this AttributeAssignment into its XML form and writes this out to the provided
StringBuilder |
URI |
getAttributeId()
|
URI |
getCategory()
|
String |
getContent()
|
static AttributeAssignment |
getInstance(Node root)
TODO remove this method if possible creates a AttributeAssignment based on its DOM node. |
String |
getIssuer()
|
Methods inherited from class org.wso2.balana.attr.AttributeValue |
---|
encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeAssignment(URI attributeId, URI dataType, URI category, String content, String issuer)
AttributeAssignment
based on the given elements.
attributeId
- attribute id of the AttributeAssignment elementdataType
- attributes datatypecategory
- category of the AttributeAssignment element whether it is subject, action and etccontent
- Content as Stringissuer
- issuer of the AttributeAssignmentMethod Detail |
---|
public static AttributeAssignment getInstance(Node root) throws ParsingException
AttributeAssignment
based on its DOM node.
root
- root the node to parse for the AttributeAssignment
AttributeAssignment
constructed by parsing
ParsingException
- if the DOM node is invalidpublic URI getAttributeId()
public URI getCategory()
public String getIssuer()
public String getContent()
public void encode(StringBuilder builder)
AttributeAssignment
into its XML form and writes this out to the provided
StringBuilder
- Specified by:
encode
in interface Expression
- Overrides:
encode
in class AttributeValue
- Parameters:
builder
- string stream into which the XML-encoded data is written
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |