|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.jastor.GraphThingImpl
public class GraphThingImpl
Implementation of GraphThing
| Field Summary |
|---|
| Fields inherited from interface org.openanzo.jastor.CoreThing |
|---|
TYPE |
| Constructor Summary | |
|---|---|
GraphThingImpl(org.openrdf.model.Resource resource,
INamedGraph graph)
Create a new GraphThingImpl for given resource |
|
| Method Summary | ||
|---|---|---|
void |
clearCache()
Clear any property caches for this THING |
|
boolean |
equals(java.lang.Object obj)
|
|
org.openrdf.model.Literal |
getLiteral(java.lang.Object value,
java.lang.String returnType,
java.lang.String rangeUri)
Get the Literal value for the raw data |
|
|
getLiteralValue(org.openrdf.model.Literal literal,
java.lang.Class<T> expectedType)
Get the native value of a literal |
|
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
getProperties()
Retrieve set of statements containing all properties for THING's resource |
|
org.openrdf.model.Value |
getPropertyValue(java.lang.String property)
Retrieve single DatasetProperty for the given property |
|
org.openrdf.model.Value |
getPropertyValue(org.openrdf.model.URI property)
Retrieve single DatasetProperty for the given property |
|
INamedGraph |
graph()
Get the INamedGraph where this THING resides |
|
boolean |
isRDFType(org.openrdf.model.Resource type)
Verify if this THING is of RDFType type |
|
java.util.Collection<org.openrdf.model.Statement> |
listStatements()
Get set of statements that makeup this THINGS's properties and types |
|
void |
registerListener(ThingListener listener)
Register a ThingListener for this THING |
|
void |
removeStatements()
Remove set of statements that makeup this THINGS's properties and types |
|
org.openrdf.model.Resource |
resource()
Resource representation of this THING's resource |
|
void |
setPropertyValue(java.lang.String property,
org.openrdf.model.Value value)
Set the property value for THING |
|
void |
setPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Value value)
Set the property value for THING |
|
java.lang.String |
toString()
|
|
void |
unregisterListener(ThingListener listener)
Unregister a ThingListener for this THING |
|
java.lang.String |
uri()
String representation of this THING's resource |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphThingImpl(org.openrdf.model.Resource resource,
INamedGraph graph)
throws JastorException
resource - Resource of Thinggraph - NamedGraph where data for this Thing resides
JastorException - if graph is null| Method Detail |
|---|
public java.lang.String uri()
CoreThing
uri in interface CoreThingpublic INamedGraph graph()
GraphThing
graph in interface GraphThingpublic org.openrdf.model.Resource resource()
CoreThing
resource in interface CoreThingpublic java.util.Collection<org.openrdf.model.Statement> listStatements()
CoreThing
listStatements in interface CoreThingpublic void removeStatements()
CoreThing
removeStatements in interface CoreThingpublic void clearCache()
CoreThing
clearCache in interface CoreThingpublic void registerListener(ThingListener listener)
CoreThing
registerListener in interface CoreThinglistener - ThingListenerpublic void unregisterListener(ThingListener listener)
CoreThing
unregisterListener in interface CoreThinglistener - ThingListenerpublic boolean isRDFType(org.openrdf.model.Resource type)
CoreThing
isRDFType in interface CoreThingtype - type to verify
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public <T> T getLiteralValue(org.openrdf.model.Literal literal,
java.lang.Class<T> expectedType)
T - Type of class for which to convertliteral - literal value to convertexpectedType - expected java type
public org.openrdf.model.Literal getLiteral(java.lang.Object value,
java.lang.String returnType,
java.lang.String rangeUri)
value - the native value to convertreturnType - the expected native typerangeUri - the range type
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> getProperties()
GraphThing
getProperties in interface GraphThingpublic org.openrdf.model.Value getPropertyValue(java.lang.String property)
GraphThing
getPropertyValue in interface GraphThingproperty - property containing DatasetProperty
public void setPropertyValue(org.openrdf.model.URI property,
org.openrdf.model.Value value)
GraphThing
setPropertyValue in interface GraphThingproperty - URI of property to setvalue - Value of property to set
public void setPropertyValue(java.lang.String property,
org.openrdf.model.Value value)
GraphThing
setPropertyValue in interface GraphThingproperty - String representation of URI of property to setvalue - Value of property to setpublic org.openrdf.model.Value getPropertyValue(org.openrdf.model.URI property)
GraphThing
getPropertyValue in interface GraphThingproperty - property containing DatasetProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||