public class BooleanLiteralImpl extends LiteralImpl
LiteralImpl
that stores a boolean value to avoid
parsing.Modifier and Type | Field and Description |
---|---|
static BooleanLiteralImpl |
FALSE |
static BooleanLiteralImpl |
TRUE |
Constructor and Description |
---|
BooleanLiteralImpl(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 BooleanLiteralImpl |
valueOf(boolean value)
Returns a
BooleanLiteralImpl 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 BooleanLiteralImpl TRUE
public static final BooleanLiteralImpl FALSE
public BooleanLiteralImpl(boolean value)
public boolean booleanValue()
Literal
booleanValue
in interface Literal
booleanValue
in class LiteralImpl
public static BooleanLiteralImpl valueOf(boolean value)
BooleanLiteralImpl
for the specified value. This method
uses the constants TRUE
and FALSE
as result values,
preventing the often unnecessary creation of new
BooleanLiteralImpl
objects.Copyright © 2001-2016 Aduna. All Rights Reserved.