public class Node
extends java.util.HashMap<java.lang.String,byte[]>
implements java.util.Map<java.lang.String,byte[]>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
static java.lang.String |
SUBJECT |
private Rdf |
type |
Constructor and Description |
---|
Node(Rdf type) |
Node(Rdf type,
byte[] subject) |
Node(Rdf type,
java.util.Map<java.lang.String,byte[]> set)
initialize the triples.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getObject(Vocabulary predicate) |
byte[] |
getSubject() |
Rdf |
getType() |
boolean |
isBlank() |
byte[] |
removePredicate(Vocabulary predicate) |
byte[] |
setObject(Vocabulary predicate,
byte[] object) |
void |
setSubject(byte[] subject) |
byte[] |
toObject() |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
private static final long serialVersionUID
public static final java.lang.String SUBJECT
private final Rdf type
public Node(Rdf type)
public Node(Rdf type, byte[] subject)
public Node(Rdf type, java.util.Map<java.lang.String,byte[]> set)
set
- public Rdf getType()
public boolean isBlank()
public byte[] getSubject()
public void setSubject(byte[] subject)
public byte[] getObject(Vocabulary predicate)
public byte[] setObject(Vocabulary predicate, byte[] object)
public byte[] removePredicate(Vocabulary predicate)
public byte[] toObject()