|
||||||||||
| 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.BooleanAttribute
public class BooleanAttribute
Representation of an xs:boolean value. This class supports parsing xs:boolean 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 |
| 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 BooleanAttribute |
getFalseInstance()
Returns a BooleanAttribute that represents
a false value. |
static BooleanAttribute |
getInstance(boolean value)
Returns a BooleanAttribute that represents
the boolean value provided. |
static BooleanAttribute |
getInstance(Node root)
Returns a BooleanAttribute that represents
the xs:boolean at a particular DOM node. |
static BooleanAttribute |
getInstance(String value)
Returns a BooleanAttribute that represents
the xs:boolean value indicated by the string provided. |
static BooleanAttribute |
getTrueInstance()
Returns a BooleanAttribute that represents
a true value. |
boolean |
getValue()
Returns the boolean 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 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, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String identifier
| Method Detail |
|---|
public static BooleanAttribute getInstance(Node root)
throws ParsingException
BooleanAttribute that represents
the xs:boolean at a particular DOM node.
root - the Node that contains the desired value
BooleanAttribute representing the
appropriate value (null if there is a parsing error)
ParsingException
public static BooleanAttribute getInstance(String value)
throws ParsingException
BooleanAttribute that represents
the xs:boolean value indicated by the string provided.
value - a string representing the desired value
BooleanAttribute representing the
appropriate value (null if there is a parsing error)
ParsingExceptionpublic static BooleanAttribute getInstance(boolean value)
BooleanAttribute that represents
the boolean value provided.
value - a boolean representing the desired value
BooleanAttribute representing the
appropriate valuepublic static BooleanAttribute getTrueInstance()
BooleanAttribute that represents
a true value.
BooleanAttribute representing a
true valuepublic static BooleanAttribute getFalseInstance()
BooleanAttribute that represents
a false value.
BooleanAttribute representing a
false valuepublic boolean getValue()
boolean value represented by this object.
boolean valuepublic boolean equals(Object o)
equals in class Objecto - the object to compare
public int hashCode()
hashCode in class Objectpublic String encode()
AttributeValue
encode in class AttributeValueString form of the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||