|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityDefinitionService
Service that manages entity definitions and the associated instance contexts
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. |
void |
addListener(EntityDefinitionServiceListener listener)
Adds a listener to the service |
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. |
Collection<? extends EntityDefinition> |
getChildren(EntityDefinition entity)
Get the children of the given entity definition, i.e. |
EntityDefinition |
getParent(EntityDefinition entity)
Get the parent entity definition for the given entity definition. |
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). |
void |
removeListener(EntityDefinitionServiceListener listener)
Removes a listener from the service |
Method Detail |
---|
Collection<? extends EntityDefinition> getChildren(EntityDefinition entity)
entity
- the entity definition
Collection<? extends TypeEntityDefinition> getTypeEntities(TypeDefinition type, SchemaSpaceID schemaSpace)
type
- the type definitionschemaSpace
- the type schema space
EntityDefinition getParent(EntityDefinition entity)
entity
- the entity definition
null
if the given
entity definition represents a typeEntityDefinition addNamedContext(EntityDefinition sibling)
sibling
- the entity definition which is a sibling of the entity
definition to create
EntityDefinition addIndexContext(EntityDefinition sibling, Integer index)
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
EntityDefinition addConditionContext(EntityDefinition sibling, Filter filter)
sibling
- the entity definition which is a sibling of the entity
definition to createfilter
- the condition filter
void removeContext(EntityDefinition entity)
entity
- the entity definition or null
if creating an
instance context is not possible FIXME report success/failure?void addListener(EntityDefinitionServiceListener listener)
listener
- the listener to addvoid removeListener(EntityDefinitionServiceListener listener)
listener
- the listener to remove
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |