public class BooleanLiteral extends SimpleLiteral
SimpleLiteral
that stores a boolean value to avoid
parsing.Modifier and Type | Field and Description |
---|---|
static BooleanLiteral |
FALSE |
static BooleanLiteral |
TRUE |
Modifier | Constructor and Description |
---|---|
protected |
BooleanLiteral(boolean value)
Creates an xsd:boolean typed literal with the specified value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Returns the boolean value of this literal.
|
static BooleanLiteral |
valueOf(boolean value)
Returns a
BooleanLiteral for the specified value. |
byteValue, calendarValue, decimalValue, doubleValue, equals, floatValue, getDatatype, getLabel, getLanguage, hashCode, integerValue, intValue, longValue, setDatatype, setLabel, setLanguage, shortValue, stringValue, toString
public static final BooleanLiteral TRUE
public static final BooleanLiteral FALSE
protected BooleanLiteral(boolean value)
public boolean booleanValue()
Literal
booleanValue
in interface Literal
booleanValue
in class SimpleLiteral
public static BooleanLiteral valueOf(boolean value)
BooleanLiteral
for the specified value. This method
uses the constants TRUE
and FALSE
as result values,
preventing the often unnecessary creation of new
BooleanLiteral
objects.Copyright © 2001-2016 Aduna. All Rights Reserved.