|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OValue
A class representing something that is either a literal or a OResource.
Developer note: ideally this would be implemented as a superinteface of the Literal and OResource interfaces, but Literal is implemented as a class and has to remain a class for backwards compatibility.löschnaz
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Literal |
getLiteral()
Get the Literal object if this object represents a literal. |
OResource |
getOResource()
Get the OResource object if this object represents a resource. |
int |
hashCode()
|
boolean |
isLiteral()
Check if the object represents a literal. |
boolean |
isOResource()
Check if the object represents a OResource |
String |
toString()
|
String |
toTurtle()
Create a String representation that conforms to Turtle language syntax. |
| Method Detail |
|---|
boolean isLiteral()
boolean isOResource()
OResource getOResource()
OResource object if this object represents a resource. Throws a
GateOntologyException if this object represents a literal.
Literal getLiteral()
Literal object if this object represents a literal.
Throws a GateOntologyException if this object represents a
node ID.
String toString()
toString in class ObjectString toTurtle()
int hashCode()
hashCode in class Objectboolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||