Class RdfLiteralImpl
java.lang.Object
no.hasmac.rdf.impl.RdfLiteralImpl
- All Implemented Interfaces:
RdfLiteral, RdfValue
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRdfLiteralImpl(String value) protectedRdfLiteralImpl(String value, String langTag, String datatype) -
Method Summary
Methods inherited from interface RdfLiteral
asLiteral, isBlankNode, isIRI
-
Field Details
-
value
-
langTag
-
dataType
-
-
Constructor Details
-
RdfLiteralImpl
-
RdfLiteralImpl
-
-
Method Details
-
getValue
Description copied from interface:RdfLiteralGet the lexical value of the literal.- Specified by:
getValuein interfaceRdfLiteral- Specified by:
getValuein interfaceRdfValue- Returns:
- lexical value, never
null
-
getDatatype
Description copied from interface:RdfLiteralAn absolute IRI denoting the datatype IRI of the literal. If the value is rdf:langString,RdfLiteral.getLanguage()value is present.- Specified by:
getDatatypein interfaceRdfLiteral- Returns:
- an absolute IRI, never
null
-
isLiteral
public boolean isLiteral()Description copied from interface:RdfValueIndicates if the value type is RDF literal.- Specified by:
isLiteralin interfaceRdfLiteral- Specified by:
isLiteralin interfaceRdfValue- Returns:
trueif the value type is literal,falseotherwise.
-
getLanguage
Description copied from interface:RdfLiteralAn optional language tag. If this value is specified,RdfLiteral.getDatatype()returns rdf:langString.- Specified by:
getLanguagein interfaceRdfLiteral- Returns:
- language tag or
Optional.empty()if not set
-
hashCode
-
equals
-
toString
-
datatype
-