Package org.eclipse.rdf4j.model.impl
Class SimpleBNode
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractBNode
-
- org.eclipse.rdf4j.model.impl.SimpleBNode
-
public class SimpleBNode extends AbstractBNode
An simple default implementation of theBNodeinterface.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringidThe blank node's identifier.private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleBNode()Creates a new, unitialized blank node.protectedSimpleBNode(java.lang.String id)Creates a new blank node with the supplied identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetID()Retrieves this blank node's identifier.protected voidsetID(java.lang.String id)-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractBNode
equals, hashCode, stringValue, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private java.lang.String id
The blank node's identifier.
-
-
Constructor Detail
-
SimpleBNode
protected SimpleBNode()
Creates a new, unitialized blank node. This blank node's ID needs to besetbefore the normal methods can be used.
-
SimpleBNode
protected SimpleBNode(java.lang.String id)
Creates a new blank node with the supplied identifier.- Parameters:
id- The identifier for this blank node, must not be null.
-
-
Method Detail
-
getID
public java.lang.String getID()
Description copied from interface:BNodeRetrieves this blank node's identifier.- Returns:
- A blank node identifier.
-
setID
protected void setID(java.lang.String id)
-
-