public class AttributeAssignment extends AttributeValue
| Constructor and Description |
|---|
AttributeAssignment(URI attributeId,
URI dataType,
URI category,
String content,
String issuer)
Constructor that creates a new
AttributeAssignment based on the given elements. |
| 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.
|
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() |
encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBagpublic 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 AttributeAssignmentpublic static AttributeAssignment getInstance(Node root) throws ParsingException
AttributeAssignment based on its DOM node.root - root the node to parse for the AttributeAssignmentAttributeAssignment constructed by parsingParsingException - 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
StringBuilderencode in interface Expressionencode in class AttributeValuebuilder - string stream into which the XML-encoded data is writtenpublic String encode()
AttributeValueencode in class AttributeValueString form of the valueCopyright © 2019 WSO2. All rights reserved.