Package com.github.jsonldjava.core
Class RDFDataset.Literal
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,java.lang.Object>
-
- com.github.jsonldjava.core.RDFDataset.Node
-
- com.github.jsonldjava.core.RDFDataset.Literal
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<RDFDataset.Node>
,java.util.Map<java.lang.String,java.lang.Object>
- Enclosing class:
- RDFDataset
public static class RDFDataset.Literal extends RDFDataset.Node
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Literal(java.lang.String value, java.lang.String datatype, java.lang.String language)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RDFDataset.Node o)
boolean
isBlankNode()
boolean
isIRI()
boolean
isLiteral()
private static int
nullSafeCompare(java.lang.String a, java.lang.String b)
-
Methods inherited from class com.github.jsonldjava.core.RDFDataset.Node
getDatatype, getLanguage, getValue, toObject
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isLiteral
public boolean isLiteral()
- Specified by:
isLiteral
in classRDFDataset.Node
-
isIRI
public boolean isIRI()
- Specified by:
isIRI
in classRDFDataset.Node
-
isBlankNode
public boolean isBlankNode()
- Specified by:
isBlankNode
in classRDFDataset.Node
-
nullSafeCompare
private static int nullSafeCompare(java.lang.String a, java.lang.String b)
-
compareTo
public int compareTo(RDFDataset.Node o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RDFDataset.Node>
- Overrides:
compareTo
in classRDFDataset.Node
-
-