|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semanticdesktop.aperture.rdf.impl.RDFContainerImpl
public class RDFContainerImpl
A default RDFContainer implementation, wrapping and editing a RDF2Go Model.
RDFContainerImpl can wrap a dedicated Model or can alternatively wrap a Model shared with other RDFContainerImpls. Depending on this mode, the dispose method will or will not close the underlying Model.
Constructor Summary | |
---|---|
RDFContainerImpl(Model model,
String describedUri)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
String describedUri,
boolean modelShared)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
URI describedUri)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
|
RDFContainerImpl(Model model,
URI describedUri,
boolean modelShared)
Create a new RDFContainerImpl that will manage statements concerning the specified URI. |
Method Summary | |
---|---|
void |
add(Statement statement)
|
void |
add(URI property,
boolean value)
|
void |
add(URI property,
Calendar value)
|
void |
add(URI property,
Date value)
|
void |
add(URI property,
int value)
|
void |
add(URI property,
long value)
|
void |
add(URI property,
Node node)
|
void |
add(URI property,
String value)
|
void |
dispose()
Disposes this RDFContainerImpl. |
Collection |
getAll(URI property)
|
Boolean |
getBoolean(URI property)
|
Calendar |
getCalendar(URI property)
|
Date |
getDate(URI property)
|
URI |
getDescribedUri()
Get the identifier of the resource that is described by the contents of this RDFContainer. |
Integer |
getInteger(URI property)
|
Long |
getLong(URI property)
|
Model |
getModel()
Get the underlying RDF2Go model holding the RDF statements. |
Node |
getNode(URI property)
|
String |
getString(URI property)
|
URI |
getURI(URI property)
|
ValueFactory |
getValueFactory()
Get a ValueFactory with which RDF2Go datatype instances can be made. |
boolean |
isDisposed()
Returns whether this RDFContainerImpl has been disposed. |
boolean |
isModelShared()
Returns whether the wrapped Model is shared with other RDFContainerImpls. |
void |
put(URI property,
boolean value)
|
void |
put(URI property,
Calendar value)
|
void |
put(URI property,
Date value)
|
void |
put(URI property,
int value)
|
void |
put(URI property,
long value)
|
void |
put(URI property,
Node value)
|
void |
put(URI property,
String value)
|
void |
remove(Statement statement)
|
void |
remove(URI property)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDFContainerImpl(Model model, String describedUri)
model
- A non-shared Model to store statements in and retrieve statements from.describedUri
- The URI that typically will serve as subject in most statements.public RDFContainerImpl(Model model, URI describedUri)
model
- A non-shared Model to store statements in and retrieve statements from.describedUri
- The URI that typically will serve as subject in most statements.public RDFContainerImpl(Model model, URI describedUri, boolean modelShared)
model
- A Model to store statements in and retrieve statements from.describedUri
- The URI that typically will serve as subject in most statements.modelShared
- Indicates if the specified Model is shared with other RDFContainerImpls. When set to
'false', the model will be closed when this container is disposed.public RDFContainerImpl(Model model, String describedUri, boolean modelShared)
model
- A Model to store statements in and retrieve statements from.describedUri
- The URI that typically will serve as subject in most statements.modelShared
- Indicates if the specified Model is shared with other RDFContainerImpls. When set to
'false', the model will be closed when this container is disposed.Method Detail |
---|
public URI getDescribedUri()
RDFContainer
getDescribedUri
in interface RDFContainer
public Model getModel()
RDFContainer
getModel
in interface RDFContainer
public void put(URI property, String value)
put
in interface RDFContainer
public void put(URI property, Date value)
put
in interface RDFContainer
public void put(URI property, Calendar value)
put
in interface RDFContainer
public void put(URI property, boolean value)
put
in interface RDFContainer
public void put(URI property, int value)
put
in interface RDFContainer
public void put(URI property, long value)
put
in interface RDFContainer
public void put(URI property, Node value)
put
in interface RDFContainer
public void add(URI property, String value)
add
in interface RDFContainer
public void add(URI property, Date value)
add
in interface RDFContainer
public void add(URI property, Calendar value)
add
in interface RDFContainer
public void add(URI property, boolean value)
add
in interface RDFContainer
public void add(URI property, int value)
add
in interface RDFContainer
public void add(URI property, long value)
add
in interface RDFContainer
public void add(URI property, Node node)
add
in interface RDFContainer
public String getString(URI property)
getString
in interface RDFContainer
public Date getDate(URI property)
getDate
in interface RDFContainer
public Calendar getCalendar(URI property)
getCalendar
in interface RDFContainer
public Boolean getBoolean(URI property)
getBoolean
in interface RDFContainer
public Integer getInteger(URI property)
getInteger
in interface RDFContainer
public Long getLong(URI property)
getLong
in interface RDFContainer
public URI getURI(URI property)
getURI
in interface RDFContainer
public Node getNode(URI property)
getNode
in interface RDFContainer
public void remove(URI property)
remove
in interface RDFContainer
public Collection getAll(URI property)
getAll
in interface RDFContainer
public void add(Statement statement)
add
in interface RDFContainer
public void remove(Statement statement)
remove
in interface RDFContainer
public ValueFactory getValueFactory()
RDFContainer
getValueFactory
in interface RDFContainer
public void dispose()
dispose
in interface RDFContainer
public boolean isDisposed()
public boolean isModelShared()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |