public class XSBooleanValue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
numeric
Whether to use the numeric representation of the lexical one.
|
private java.lang.Boolean |
value
Value of this boolean.
|
| Constructor and Description |
|---|
XSBooleanValue()
Constructor.
|
XSBooleanValue(java.lang.Boolean newValue,
boolean numericRepresentation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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(java.lang.Boolean newValue)
Sets the boolean value.
|
java.lang.String |
toString() |
static java.lang.String |
toString(java.lang.Boolean value,
boolean numericRepresentation)
Converts a boolean value into a string.
|
static XSBooleanValue |
valueOf(java.lang.String booleanString)
Parses a string meant to represent a boolean.
|
private boolean numeric
private java.lang.Boolean value
public XSBooleanValue()
public XSBooleanValue(@Nullable
java.lang.Boolean newValue,
boolean numericRepresentation)
newValue - the valuenumericRepresentation - whether to use a numeric or lexical representation@Nullable public java.lang.Boolean getValue()
public void setValue(@Nullable
java.lang.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 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toString(java.lang.Boolean value,
boolean numericRepresentation)
value - the boolean valuenumericRepresentation - whether to use numeric of lexical representationpublic static XSBooleanValue valueOf(@Nullable java.lang.String booleanString)
booleanString - the string to parse