|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.schema.XSBooleanValue
public class XSBooleanValue
A class representing a boolean attribute. This class tracks the usage of the literals {true, false, 1, 0} to ensure proper roundtripping when unmarshalling/marshalling.
Constructor Summary | |
---|---|
XSBooleanValue()
Constructor. |
|
XSBooleanValue(Boolean newValue,
boolean numericRepresentation)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Boolean |
getValue()
Gets the boolean value. |
int |
hashCode()
|
boolean |
isNumericRepresentation()
Gets whether to use the numeric or lexical representation. |
void |
setNumericRepresentation(boolean numericRepresentation)
Sets whether to use the numeric or lexical representation. |
void |
setValue(Boolean newValue)
Sets the boolean value. |
String |
toString()
|
static String |
toString(Boolean value,
boolean numericRepresentation)
Converts a boolean value into a string. |
static XSBooleanValue |
valueOf(String booleanString)
Parses a string meant to represent a boolean. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSBooleanValue()
public XSBooleanValue(Boolean newValue, boolean numericRepresentation)
newValue
- the valuenumericRepresentation
- whether to use a numeric or lexical representationMethod Detail |
---|
public Boolean getValue()
public void setValue(Boolean newValue)
newValue
- the boolean valuepublic boolean isNumericRepresentation()
public void setNumericRepresentation(boolean numericRepresentation)
numericRepresentation
- whether to use the numeric or lexical representationpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public static String toString(Boolean value, boolean numericRepresentation)
value
- the boolean valuenumericRepresentation
- whether to use numeric of lexical representation
public static XSBooleanValue valueOf(String booleanString)
booleanString
- the string to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |