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() |
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, toStringtemporalAccessorValue, temporalAmountValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisBNode, isIRI, isResource, isTriplepublic static final BooleanLiteral TRUE
public static final BooleanLiteral FALSE
protected BooleanLiteral(boolean value)
public boolean booleanValue()
booleanValue in interface LiteralbooleanValue in class SimpleLiteralpublic 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-2021 Eclipse Foundation. All Rights Reserved.