public class XSBooleanValue extends Object
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.
|
public XSBooleanValue()
public void setValue(@Nullable 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(@Nullable String booleanString)
booleanString
- the string to parseCopyright © 2016 JBoss by Red Hat. All rights reserved.