public class TypedLiteralImpl extends AbstractLiteral implements Serializable
Constructor and Description |
---|
TypedLiteralImpl(String lexicalForm,
IRI dataType) |
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.
|
int |
hashCode()
Returns the hash code of the lexical form plus the hash code of the
datatype plus if the literal has a language the hash code of the
language.
|
String |
toString() |
equals
public IRI getDataType()
Literal
getDataType
in interface Literal
public String getLexicalForm()
Literal
getLexicalForm
in interface Literal
public int hashCode()
Literal
hashCode
in interface Literal
hashCode
in class AbstractLiteral
public Language getLanguage()
Literal
getLanguage
in interface Literal
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.