|
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
public abstract class AbstractEntityDefinitionService
Abstract entity definition service implementation. Manages service listeners.
Constructor Summary | |
---|---|
AbstractEntityDefinitionService()
|
Method Summary | |
---|---|
void |
addListener(EntityDefinitionServiceListener listener)
Adds a listener to the service |
protected EntityDefinition |
createEntity(TypeDefinition type,
List<ChildContext> path,
SchemaSpaceID schemaSpace,
Filter filter)
Create an entity definition from a type and a child path |
EntityDefinition |
getParent(EntityDefinition entity)
Get the parent entity definition for the given entity definition. |
void |
notifyContextAdded(EntityDefinition contextEntity)
Called when a new instance context has been added. |
void |
notifyContextRemoved(EntityDefinition contextEntity)
Called when an instance context has been removed. |
void |
notifyContextsAdded(Iterable<EntityDefinition> contextEntities)
Called when multiple new instance contexts have been added. |
void |
removeListener(EntityDefinitionServiceListener listener)
Removes a listener from the service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.esdihumboldt.hale.ui.service.entity.EntityDefinitionService |
---|
addConditionContext, addIndexContext, addNamedContext, getChildren, getTypeEntities, removeContext |
Constructor Detail |
---|
public AbstractEntityDefinitionService()
Method Detail |
---|
public void addListener(EntityDefinitionServiceListener listener)
EntityDefinitionService
addListener
in interface EntityDefinitionService
listener
- the listener to addEntityDefinitionService.addListener(EntityDefinitionServiceListener)
public void removeListener(EntityDefinitionServiceListener listener)
EntityDefinitionService
removeListener
in interface EntityDefinitionService
listener
- the listener to removeEntityDefinitionService.removeListener(EntityDefinitionServiceListener)
public void notifyContextAdded(EntityDefinition contextEntity)
contextEntity
- the entity definition representing the instance
contextpublic void notifyContextsAdded(Iterable<EntityDefinition> contextEntities)
contextEntities
- the entity definitions representing the instance
contextspublic void notifyContextRemoved(EntityDefinition contextEntity)
contextEntity
- the entity definition representing the instance
contextpublic EntityDefinition getParent(EntityDefinition entity)
EntityDefinitionService
getParent
in interface EntityDefinitionService
entity
- the entity definition
null
if the given
entity definition represents a typeEntityDefinitionService.getParent(EntityDefinition)
protected EntityDefinition createEntity(TypeDefinition type, List<ChildContext> path, SchemaSpaceID schemaSpace, Filter filter)
type
- the path parentpath
- the child pathschemaSpace
- the associated schema spacefilter
- the type entity filter
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |