|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.model.impl.BNodeImpl
An implementation of the BNode interface.
| Constructor Summary | |
BNodeImpl(String id)
|
|
| Method Summary | |
void |
addProperty(URI property,
Value value)
Adds a property to this Resource in the RDF graph. |
int |
compareTo(Object other)
Compares this BNode with the supplied object. |
boolean |
equals(Object o)
Compares a blank node object to another object. |
String |
getID()
retrieves this bNode's identifier. |
StatementIterator |
getObjectStatements()
Gets all statements from the RDF graph for which this value is the object. |
StatementIterator |
getSubjectStatements()
Gets all statements from the RDF graph for which this resource is the subject. |
int |
hashCode()
The hash code of a blank node is defined as the hash code of its identifier: id.hashCode(). |
String |
toString()
Returns the BNode's string representation. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BNodeImpl(String id)
| Method Detail |
public String getID()
BNode
getID in interface BNodepublic boolean equals(Object o)
BNode
equals in interface BNodepublic int hashCode()
BNode
hashCode in interface BNodepublic int compareTo(Object other)
compareTo in interface ComparableClassCastException - if o is not of type BNodeComparablepublic String toString()
public void addProperty(URI property,
Value value)
throws GraphException
Resource
addProperty in interface Resourceproperty - the predicate of the statement that should be added.value - the value of the statements that should be added.
GraphException
public StatementIterator getSubjectStatements()
throws GraphException
Resource
getSubjectStatements in interface ResourceGraphException
public StatementIterator getObjectStatements()
throws GraphException
Value
getObjectStatements in interface ValueGraphException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||