Interface EntityContext<T>
- Type Parameters:
T-
- All Known Implementing Classes:
EntityContextImpl
public interface EntityContext<T>
Interface for associating metadata with entities.
We could replace with with Jena EnhGraph
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescription<X> XgetAttribute(Object entity, String attribute, X defaultValue) getOrCreate(T entity) booleanvoidsetAttribute(T entity, String attribute, Object value) getsOrCreates an entity and sets an attribute
-
Method Details
-
get
-
getOrCreate
-
register
-
getState
- Parameters:
entity-- Returns:
-
isManaged
-
setAttribute
getsOrCreates an entity and sets an attribute- Parameters:
entity-attribute-value-
-
getAttribute
-