public abstract class AbstractEntityDefinitionService extends Object implements EntityDefinitionService
Constructor and Description |
---|
AbstractEntityDefinitionService() |
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConditionContext, addIndexContext, addNamedContext, editConditionContext, getChildren, getTypeEntities, removeContext
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 definitionnull
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 filterBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a