public interface ReactorBase extends ResourceEntity
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(URI prop,
Object o)
Adds a statement (this, prop, o).
|
boolean |
add(URI prop,
Object o,
int maxCard)
Adds a statement (this, prop, o) if the number of statements matching
(this, prop, x) is less then maxCard
|
Object |
castTo(Class<?> targetType) |
void |
delete()
remove all (this, rdf:type, ANY) statements
|
Object |
get(URI prop,
Class<?> returnType)
This method is useful for functional properties.
|
Object[] |
getAll(URI prop,
Class<?> returnType)
Get all predicates x of triples matching (this, prop, x)
|
Model |
getModel() |
URI |
getRDFSClassURI() |
boolean |
in(Model model) |
boolean |
isInstanceof(Class<?> javaClass)
Deprecated.
not needed
|
boolean |
isInstanceof(URI classURI) |
boolean |
remove(URI prop,
Object o)
Tries to remove a statement (this, prop, o).
|
boolean |
remove(URI prop,
Object o,
int minCard)
Tries to remove a statement (this, prop, o) if the number of statements
matching (this, prop, x) in the model is less then minCard
|
boolean |
removeAll(URI prop)
Remove all values of this property (same as remove(this, prop, *)
|
void |
set(URI prop,
Object o)
Removes all statements (this, prop, x) and set one anew: (this, prop, o).
|
void |
setAll(URI prop,
Object[] o)
Removes all statements (this, prop, x) and sets anew: (this, prop, o[0]),
(this, prop, o[1]), ...
|
void |
setAll(URI prop,
Object[] o,
int maxCard)
Removes all statements (this, prop, x) and sets anew: (this, prop, o[0]),
(this, prop, o[1]), ...
|
boolean |
update(URI prop,
Object oldValue,
Object newValue)
Looks for a statement (this, prop, oldValue) and replaces it by a new
statement (this, prop, newValue).
|
getResourceModel getModel()
Object get(URI prop, Class<?> returnType) throws RDFDataException
prop - RDFDataException - if multiple values are presentObject[] getAll(URI prop, Class<?> returnType)
prop - void set(URI prop, Object o)
prop - o - void setAll(URI prop, Object[] o) throws ModelRuntimeException
prop - o - ExceptionModelRuntimeExceptionvoid setAll(URI prop, Object[] o, int maxCard) throws ModelRuntimeException, CardinalityException
prop - o - maxCard - is the maximum number of triples allowed to match (this, prop,
x)ExceptionCardinalityExceptionModelRuntimeExceptionboolean update(URI prop, Object oldValue, Object newValue) throws ModelRuntimeException
prop - oldValue - newValue - ExceptionModelRuntimeExceptionboolean add(URI prop, Object o) throws ModelRuntimeException
prop - o - ExceptionModelRuntimeExceptionboolean add(URI prop, Object o, int maxCard) throws CardinalityException, ModelRuntimeException
property - object - maxCard, - number of occurences of (this, prop, x) allowed in the modelCardinalityExceptionModelRuntimeExceptionboolean remove(URI prop, Object o)
prop - o - boolean remove(URI prop, Object o, int minCard) throws CardinalityException
prop - o - minCard, - number of occurences of (this, prop, x) needed in the modelCardinalityExceptionboolean removeAll(URI prop)
prop - the URI to be removedvoid delete()
URI getRDFSClassURI()
boolean isInstanceof(URI classURI) throws ModelRuntimeException
ModelRuntimeException@Deprecated boolean isInstanceof(Class<?> javaClass) throws ModelRuntimeException
javaClass - ExceptionModelRuntimeExceptionObject castTo(Class<?> targetType)
targetType - any java class that extends ReactorBase directly or indirectlyboolean in(Model model)
model - and RDG2GO modelCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.