|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Node
Common interface for all RDF subjects, predicates, and objects.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tell whether this Node should be considered equivalent
to the given object. |
java.lang.String |
getValue()
Get the lexical value of the node. |
int |
hashCode()
Return a hash code for this node. |
java.lang.String |
toString()
Get an N-Triples string representing this node. |
| Method Detail |
|---|
java.lang.String getValue()
The lexical value of a URIReference node is the URI
as a string.
The lexical value of a Literal node is a string
representation of the value, and does not include the language or
data type, if any.
null.java.lang.String toString()
For URIReference nodes, this is <$uri>.
For Literal nodes, this is one of the following:
Note:
toString in class java.lang.Objectboolean equals(java.lang.Object obj)
Node should be considered equivalent
to the given object.
A URIReference node is equal to the given
object if all of the following conditions are met:
obj != nullobj instanceof URIReferenceobj.getURI().equals(this.getURI())
A Literal node is equal to the given
object if all of the following conditions are met:
obj != nullobj instanceof Literalobj.getValue().equals(this.getValue())
equals in class java.lang.Objectobj - the object to compare to this one.
int hashCode()
The hash code of a URIReference is the hash code of getURI(). The hash code of a Literal is the hash code of getValue().
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||