Package com.apicatalog.rdf.impl
Class ImmutableRdfLiteral
- java.lang.Object
-
- com.apicatalog.rdf.impl.ImmutableRdfLiteral
-
- All Implemented Interfaces:
RdfLiteral,RdfValue
@Deprecated final class ImmutableRdfLiteral extends java.lang.Object implements RdfLiteral
Deprecated.since 1.7.0 - use an alternative RDF primitives library.This class is deprecated as of version 1.7.0.Please use Titanium RDF Primitives or any other third-party library to materialize RDF primitives.
- See Also:
- Titanium RDF Primitives
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedImmutableRdfLiteral(java.lang.String value, java.lang.String langTag, java.lang.String datatype)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static java.lang.Stringdatatype(java.lang.String langTag, java.lang.String datatype)Deprecated.booleanequals(java.lang.Object obj)Deprecated.java.lang.StringgetDatatype()Deprecated.An absolute IRI denoting the datatype IRI of the literal.java.util.Optional<java.lang.String>getLanguage()Deprecated.An optional language tag.java.lang.StringgetValue()Deprecated.Get the lexical value of the literal.inthashCode()Deprecated.booleanisLiteral()Deprecated.Indicates if the value type is RDF literal.java.lang.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.apicatalog.rdf.RdfLiteral
asLiteral, isBlankNode, isIRI
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Deprecated.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
public java.lang.String getDatatype()
Deprecated.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()
Deprecated.Description copied from interface:RdfValueIndicates if the value type is RDF literal.
-
getLanguage
public java.util.Optional<java.lang.String> getLanguage()
Deprecated.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
public int hashCode()
Deprecated.
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.
-
datatype
private static final java.lang.String datatype(java.lang.String langTag, java.lang.String datatype)Deprecated.
-
-