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, toStringpublic static final BooleanLiteral TRUE
public static final BooleanLiteral FALSE
protected BooleanLiteral(boolean value)
public boolean booleanValue()
LiteralbooleanValue 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-2020 Eclipse Foundation. All Rights Reserved.