| 
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.DoubleAttribute
Representation of an xsi:double value. This class supports parsing xsi:double 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 | |
DoubleAttribute(double value)
Creates a new DoubleAttribute that represents
 the double 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 DoubleAttribute | 
getInstance(Node root)
Returns a new DoubleAttribute that represents
 the xsi:double at a particular DOM node. | 
static DoubleAttribute | 
getInstance(String value)
Returns a new DoubleAttribute that represents
 the xsi:double value indicated by the string provided. | 
 double | 
getValue()
Returns the double value represented by this object. | 
 int | 
hashCode()
Returns the hashcode value used to index and compare this object with others of the same type.  | 
| 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, toString, wait, wait, wait | 
| Field Detail | 
public static final String identifier
| Constructor Detail | 
public DoubleAttribute(double value)
DoubleAttribute that represents
 the double value supplied.
value - the double value to be represented| Method Detail | 
public static DoubleAttribute getInstance(Node root)
                                   throws NumberFormatException
DoubleAttribute that represents
 the xsi:double at a particular DOM node.
root - the Node that contains the desired value
DoubleAttribute representing the
         appropriate value (null if there is a parsing error)
NumberFormatException - if the string form is not a doublepublic static DoubleAttribute getInstance(String value)
DoubleAttribute that represents
 the xsi:double value indicated by the string provided.
value - a string representing the desired value
DoubleAttribute representing the
         desired value (null if there is a parsing error)
NumberFormatException - if the value is not a doublepublic double getValue()
double value represented by this object.
double valuepublic boolean equals(Object o)
o - the object to compare
public int hashCode()
public String encode()
AttributeValue
encode in class AttributeValueString 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.