Constructor and Description |
---|
EntityManager(SharedObjectConnector connector,
File file)
Create and link the manager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEntity(Entity ent)
Add a single Entity to the configuration file.
|
static List<Entity> |
filter(List<Entity> list,
List<TypeExpression> filters)
Utility method, Filter a list of entities and return only those that
match all
TypeExpression filters. |
List<Entity> |
find(List<TypeExpression> filters)
Look in the file for an
Entity with matching Restrictions. |
Entity |
find(String uri)
|
List<Entity> |
mergeAdd(List<Entity> news)
Try to add all new entities.
|
List<Entity> |
mergeProbe(List<Entity> news)
Try to merge all new entities.
|
public EntityManager(SharedObjectConnector connector, File file)
public boolean addEntity(Entity ent)
ent
- the entity to be added.public List<Entity> mergeProbe(List<Entity> news)
public List<Entity> mergeAdd(List<Entity> news)
public Entity find(String uri)
uri
- the uri(scope) to be matched.public List<Entity> find(List<TypeExpression> filters)
Entity
with matching Restrictions.filters
- all the restrictions that the Entity should comply (anded,
empty list returns all).public static List<Entity> filter(List<Entity> list, List<TypeExpression> filters)
TypeExpression
filters.list
- filters
- Copyright © 2015 universAAL Consortium. All Rights Reserved.