public class ValueOrString extends Object
Modifier and Type | Field and Description |
---|---|
private String |
string |
private org.eclipse.rdf4j.model.Value |
value |
Constructor and Description |
---|
ValueOrString(String string) |
ValueOrString(org.eclipse.rdf4j.model.Value value) |
Modifier and Type | Method and Description |
---|---|
String |
getString()
Get the String contained in this instance.
|
org.eclipse.rdf4j.model.Value |
getValue()
Get the Value.
|
boolean |
isString()
check if this instance contains a String
|
boolean |
isValue()
check if this instance contains a Value
|
private org.eclipse.rdf4j.model.Value value
private String string
public ValueOrString(org.eclipse.rdf4j.model.Value value)
value
- the Value that this instance will containpublic ValueOrString(String string)
string
- the string this instance will containpublic boolean isValue()
public boolean isString()
public org.eclipse.rdf4j.model.Value getValue()
isValue()
returns truepublic String getString()
isString()
returns trueCopyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.