|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.xacml3.Attributes
public class Attributes
Represents the AttributesType XML type found in the context schema. TODO But here, not supporting the xml:id Identifier. Just use it as String attributes
Constructor Summary | |
---|---|
Attributes(URI category,
Node content,
Set<Attribute> attributes,
String id)
Constructor that creates a new Attributes based on
the given elements. |
|
Attributes(URI category,
Set<Attribute> attributes)
Constructor that creates a new Attributes based on
the given elements. |
Method Summary | |
---|---|
String |
encode()
Encodes this Attributes into its XML form |
void |
encode(StringBuilder builder)
Encodes this Attributes into its XML form and writes this out to the provided
StringBuilder |
Set<Attribute> |
getAttributes()
Returns list of attribute that contains in the attributes element |
URI |
getCategory()
Returns the category of this attributes |
Node |
getContent()
Returns the content of this attributes, or null if no content was included |
String |
getId()
Returns the id of this attributes, or null if it was not included |
static Attributes |
getInstance(Node root)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attributes(URI category, Set<Attribute> attributes)
Attributes
based on
the given elements.
category
- category of the Attributes element whether it is subject, action and etcattributes
- a Set
of Attribute
that contains in Attributes
public Attributes(URI category, Node content, Set<Attribute> attributes, String id)
Attributes
based on
the given elements.
category
- category of the Attributes element whether it is subject, action and etccontent
- content of the Attributes element that can be a XML dataattributes
- a Set
of Attribute
that contains in Attributes
id
- id of the Attribute elementMethod Detail |
---|
public static Attributes getInstance(Node root) throws ParsingException
root
-
ParsingException
public URI getCategory()
URI
public Node getContent()
Node
or nullpublic Set<Attribute> getAttributes()
Attribute
public String getId()
String
or nullpublic String encode()
Attributes
into its XML form
String
public void encode(StringBuilder builder)
Attributes
into its XML form and writes this out to the provided
StringBuilder
- Parameters:
builder
- string stream into which the XML-encoded data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |