|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.service.entity.internal.AbstractEntityDefinitionService
eu.esdihumboldt.hale.ui.service.entity.internal.EntityDefinitionServiceImpl
public class EntityDefinitionServiceImpl
Manages instance contexts and the corresponding entity definitions.
Constructor Summary | |
---|---|
EntityDefinitionServiceImpl(AlignmentService alignmentService,
ProjectService projectService)
Create the entity definition service |
Method Summary | |
---|---|
EntityDefinition |
addConditionContext(EntityDefinition sibling,
Filter filter)
Add a new condition context for the given entity definition and create a new sibling associated to the new context. |
EntityDefinition |
addIndexContext(EntityDefinition sibling,
Integer index)
Add a new index context for the given entity definition and create a new sibling associated to the new context. |
protected void |
addMissingContexts(Iterable<? extends Cell> cells)
Add missing contexts for the given cells |
EntityDefinition |
addNamedContext(EntityDefinition sibling)
Add a new named instance context for the given entity definition and create a new sibling associated to the new context. |
protected void |
clean()
Remove all defined contexts |
Collection<? extends EntityDefinition> |
getChildren(EntityDefinition entity)
Get the children of the given entity definition, i.e. |
Collection<? extends TypeEntityDefinition> |
getTypeEntities(TypeDefinition type,
SchemaSpaceID schemaSpace)
Get all available entity definitions for a given type. |
void |
removeContext(EntityDefinition entity)
Remove the instance context associated with the given entity definition (if possible). |
Methods inherited from class eu.esdihumboldt.hale.ui.service.entity.internal.AbstractEntityDefinitionService |
---|
addListener, createEntity, getParent, notifyContextAdded, notifyContextRemoved, notifyContextsAdded, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityDefinitionServiceImpl(AlignmentService alignmentService, ProjectService projectService)
alignmentService
- the alignment serviceprojectService
- the project serviceMethod Detail |
---|
protected void clean()
public EntityDefinition addNamedContext(EntityDefinition sibling)
EntityDefinitionService
sibling
- the entity definition which is a sibling of the entity
definition to create
EntityDefinitionService.addNamedContext(EntityDefinition)
public EntityDefinition addIndexContext(EntityDefinition sibling, Integer index)
EntityDefinitionService
sibling
- the entity definition which is a sibling of the entity
definition to createindex
- the property index associated to the context, if
null
will be determined automatically
EntityDefinitionService.addIndexContext(EntityDefinition, Integer)
public EntityDefinition addConditionContext(EntityDefinition sibling, Filter filter)
EntityDefinitionService
sibling
- the entity definition which is a sibling of the entity
definition to createfilter
- the condition filter
EntityDefinitionService.addConditionContext(EntityDefinition,
Filter)
public Collection<? extends TypeEntityDefinition> getTypeEntities(TypeDefinition type, SchemaSpaceID schemaSpace)
EntityDefinitionService
type
- the type definitionschemaSpace
- the type schema space
EntityDefinitionService.getTypeEntities(TypeDefinition,
SchemaSpaceID)
protected void addMissingContexts(Iterable<? extends Cell> cells)
cells
- the cellspublic void removeContext(EntityDefinition entity)
EntityDefinitionService
entity
- the entity definition or null
if creating an
instance context is not possible FIXME report success/failure?EntityDefinitionService.removeContext(EntityDefinition)
public Collection<? extends EntityDefinition> getChildren(EntityDefinition entity)
EntityDefinitionService
entity
- the entity definition
EntityDefinitionService.getChildren(EntityDefinition)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |