|
JBoss port of sunxacml 2.0.8.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.xacml.sunxacml.attr.AttributeValue
org.jboss.security.xacml.sunxacml.attr.HexBinaryAttribute
public class HexBinaryAttribute
Representation of an xsi:hexBinary value. This class supports parsing xsi:hexBinary values. All objects of this class are immutable and all methods of the class are thread-safe.
Field Summary | |
---|---|
static String |
identifier
Official name of this type |
Constructor Summary | |
---|---|
HexBinaryAttribute(byte[] value)
Creates a new HexBinaryAttribute that represents
the byte [] value supplied. |
Method Summary | |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an obligation. |
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 HexBinaryAttribute |
getInstance(Node root)
Returns a new HexBinaryAttribute that represents
the xsi:hexBinary at a particular DOM node. |
static HexBinaryAttribute |
getInstance(String value)
Returns a new HexBinaryAttribute that represents
the xsi:hexBinary value indicated by the string provided. |
byte[] |
getValue()
Returns the byte [] value represented by this object. |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same type. |
String |
toString()
Returns a String representation. |
Methods inherited from class org.jboss.security.xacml.sunxacml.attr.AttributeValue |
---|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String identifier
Constructor Detail |
---|
public HexBinaryAttribute(byte[] value)
HexBinaryAttribute
that represents
the byte [] value supplied.
value
- the byte []
value to be representedMethod Detail |
---|
public static HexBinaryAttribute getInstance(Node root) throws ParsingException
HexBinaryAttribute
that represents
the xsi:hexBinary at a particular DOM node.
root
- the Node
that contains the desired value
HexBinaryAttribute
representing the
appropriate value
ParsingException
- if a parsing error occurspublic static HexBinaryAttribute getInstance(String value) throws ParsingException
HexBinaryAttribute
that represents
the xsi:hexBinary value indicated by the string provided.
value
- a string representing the desired value
HexBinaryAttribute
representing the
desired value
ParsingException
- if a parsing error occurspublic byte[] getValue()
byte []
value represented by this object.
Note that this value is cloned before returning to prevent
unauthorized modifications.
getValue
in class AttributeValue
byte []
valuepublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
o
- the object to compare
public String toString()
toString
in class Object
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the value
|
JBoss port of sunxacml 2.0.8.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |