public class EntityFactory extends Object
Entities
from
DescribedEntities
.Constructor and Description |
---|
EntityFactory() |
Modifier and Type | Method and Description |
---|---|
static Entity |
getEntity(DescribedEntity dentity,
Locale loc)
Given a
DescribedEntity create a new Entity. |
static Entity |
updateEntity(Entity OldEntity,
DescribedEntity dentity,
Locale loc)
Update an entity from the associated
DescribedEntity . |
public static Entity getEntity(DescribedEntity dentity, Locale loc)
DescribedEntity
create a new Entity.dentity
- templateloc
- default localepublic static Entity updateEntity(Entity OldEntity, DescribedEntity dentity, Locale loc)
DescribedEntity
.OldEntity
- the old Entity
to update. if null then
getEntity(DescribedEntity, Locale)
is
called.dentity
- the updated DescribedEntity
.loc
- the preferred locale.Copyright © 2015 universAAL Consortium. All Rights Reserved.