public class PlainLiteralImpl extends AbstractLiteral implements Literal, Serializable
Constructor and Description |
---|
PlainLiteralImpl(String value) |
PlainLiteralImpl(String value,
Language language) |
Modifier and Type | Method and Description |
---|---|
IRI |
getDataType()
The IRI identifying the datatype that determines how the lexical form
maps to a literal value.
|
Language |
getLanguage()
If and only if the datatype IRI is http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, the language
tag for this Literal is a language tag as defined by BCP47.
If the datatype IRI is not http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, this method must null. |
String |
getLexicalForm()
The lexical form of this literal, represented by a Unicode string.
|
String |
toString() |
equals, hashCode
public PlainLiteralImpl(String value)
public String getLexicalForm()
Literal
getLexicalForm
in interface Literal
public Language getLanguage()
Literal
getLanguage
in interface Literal
public IRI getDataType()
Literal
getDataType
in interface Literal
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.