public final class StardogBooleanLiteral extends Object implements StardogBuiltInLiteral
Custom implementation of a boolean typed literal
| Modifier and Type | Field and Description |
|---|---|
static org.openrdf.model.Literal |
FALSE
Global constant for the literal with the value of boolean false
|
static org.openrdf.model.Literal |
TRUE
Global constant for the literal with the value of boolean true
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue() |
byte |
byteValue() |
XMLGregorianCalendar |
calendarValue() |
static org.openrdf.model.Literal |
create(boolean theValue)
Create a boolean instance of a Literal.
|
static org.openrdf.model.Literal |
create(String theLabel) |
BigDecimal |
decimalValue() |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
StardogValueFactory.Datatype |
getBuiltInDatatype() |
String |
getLabel() |
Optional<String> |
getLanguage() |
int |
hashCode() |
BigInteger |
integerValue() |
int |
intValue() |
long |
longValue() |
short |
shortValue() |
String |
stringValue() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDatatypepublic static final org.openrdf.model.Literal TRUE
public static final org.openrdf.model.Literal FALSE
public StardogValueFactory.Datatype getBuiltInDatatype()
getBuiltInDatatype in interface StardogBuiltInLiteralpublic static org.openrdf.model.Literal create(boolean theValue)
theValue - the literal valuepublic static org.openrdf.model.Literal create(String theLabel)
public boolean equals(Object o)
public int hashCode()
public String getLabel()
getLabel in interface org.openrdf.model.Literalpublic byte byteValue()
byteValue in interface org.openrdf.model.Literalpublic short shortValue()
shortValue in interface org.openrdf.model.Literalpublic int intValue()
intValue in interface org.openrdf.model.Literalpublic long longValue()
longValue in interface org.openrdf.model.Literalpublic BigDecimal decimalValue()
decimalValue in interface org.openrdf.model.Literalpublic float floatValue()
floatValue in interface org.openrdf.model.Literalpublic double doubleValue()
doubleValue in interface org.openrdf.model.Literalpublic boolean booleanValue()
booleanValue in interface org.openrdf.model.Literalpublic Optional<String> getLanguage()
getLanguage in interface org.openrdf.model.Literalpublic BigInteger integerValue()
integerValue in interface org.openrdf.model.Literalpublic XMLGregorianCalendar calendarValue()
calendarValue in interface org.openrdf.model.Literalpublic String stringValue()
stringValue in interface org.openrdf.model.ValueCopyright © 2010-2016 Stardog Union. All Rights Reserved.