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, getXsdDatatype, hashCode, integerValue, intValue, longValue, setDatatype, setDatatype, setLabel, setLanguage, shortValue, stringValue, toString
temporalAccessorValue, temporalAmountValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBNode, isIRI, isResource, isTriple
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 © 2015-2020 Eclipse Foundation. All Rights Reserved.