|
SunTM's XACML Implementation for JavaTM | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.attr.AttributeValue
com.sun.xacml.attr.StringAttribute
public class StringAttribute
Representation of an xs:string value. This class supports parsing xs:string values. All objects of this class are immutable and all methods of the class are thread-safe.
Note that there is currently some confusion in the XACML specification about whether this datatype should be able to handle XML elements (ie, whether <AttributeValue DataType="...string"><foo/> </AttributeValue> is valid). Until that is clarified the strict definition of the string datatype is used in this code, which means that elements are not valid.
Field Summary | |
---|---|
static String |
identifier
Official name of this type |
Constructor Summary | |
---|---|
StringAttribute(String value)
Creates a new StringAttribute 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. |
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 StringAttribute |
getInstance(Node root)
Returns a new StringAttribute that represents
the xs:string at a particular DOM node. |
static StringAttribute |
getInstance(String value)
Returns a new StringAttribute that represents
the xs:string value indicated by the String provided. |
String |
getValue()
Returns the String 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()
Converts to a String representation. |
Methods inherited from class com.sun.xacml.attr.AttributeValue |
---|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag |
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 StringAttribute(String value)
StringAttribute
that represents
the String value supplied.
value
- the String
value to be representedMethod Detail |
---|
public static StringAttribute getInstance(Node root)
StringAttribute
that represents
the xs:string at a particular DOM node.
root
- the Node
that contains the desired value
StringAttribute
representing the
appropriate value (null if there is a parsing error)public static StringAttribute getInstance(String value)
StringAttribute
that represents
the xs:string value indicated by the String
provided.
value
- a string representing the desired value
StringAttribute
representing the
appropriate valuepublic String getValue()
String
value represented by this object.
String
valuepublic boolean equals(Object o)
equals
in class Object
o
- the object to compare
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the value
|
Sun's XACML Implementation Version 1.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.