public class XSBooleanValue extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
numeric
Whether to use the numeric representation of the lexical one.
|
private Boolean |
value
Value of this boolean.
|
| Constructor and Description |
|---|
XSBooleanValue()
Constructor.
|
XSBooleanValue(Boolean newValue,
boolean numericRepresentation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private boolean numeric
private Boolean value
public XSBooleanValue()
public XSBooleanValue(Boolean newValue, boolean numericRepresentation)
newValue - the valuenumericRepresentation - whether to use a numeric or lexical representationpublic 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 static String toString(Boolean value, boolean numericRepresentation)
value - the boolean valuenumericRepresentation - whether to use numeric of lexical representationpublic static XSBooleanValue valueOf(String booleanString)
booleanString - the string to parseCopyright © 1999-2015. All Rights Reserved.