|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.BNodeImpl
public class BNodeImpl
An implementation of the BNode interface.
| Constructor Summary | |
|---|---|
protected |
BNodeImpl()
Creates a new, unitialized blank node. |
|
BNodeImpl(String id)
Creates a new blank node with the supplied identifier. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares a blank node object to another object. |
String |
getID()
retrieves this blank node's identifier. |
int |
hashCode()
The hash code of a blank node is defined as the hash code of its identifier: id.hashCode(). |
protected void |
setID(String id)
|
String |
stringValue()
Returns the String-value of a Value object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected BNodeImpl()
set before the normal methods can be used.
public BNodeImpl(String id)
id - The identifier for this blank node, must not be null.| Method Detail |
|---|
public String getID()
BNode
getID in interface BNodeprotected void setID(String id)
public String stringValue()
ValueLiteral's label, a URI's URI or a BNode's ID.
stringValue in interface Valuepublic boolean equals(Object o)
BNode
equals in interface BNodeequals in class Objecto - The object to compare this blank node to.
BNode
and their IDs are equal, false otherwise.public int hashCode()
BNode
hashCode in interface BNodehashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||