public class SchemaServiceImpl extends AbstractSchemaService
SchemaService
implementationModifier and Type | Class and Description |
---|---|
class |
SchemaServiceImpl.ToggleMappableOperation
Operation that toggles mappable flags.
|
ACTION_READ_SOURCE, ACTION_READ_TARGET
Constructor and Description |
---|
SchemaServiceImpl(ProjectService projectService) |
Modifier and Type | Method and Description |
---|---|
void |
addSchema(Schema schema,
SchemaSpaceID spaceID)
Add a schema to the source or target schema space.
|
void |
clearSchemas(SchemaSpaceID spaceID)
Removes all schemas from the source or target schema space.
|
void |
editMappableTypes(SchemaSpaceID spaceID)
Edit which types are mappable in the given schema space.
|
SchemaSpace |
getSchemas(SchemaSpaceID spaceID)
Get the source or target schema space.
|
void |
toggleMappable(SchemaSpaceID spaceID,
Collection<? extends TypeDefinition> types)
Toggles the mappable flag of all given types of the given schema space
|
addSchemaServiceListener, getProjectService, notifyMappableTypesChanged, notifySchemaAdded, notifySchemasCleared, removeSchemaServiceListener
public SchemaServiceImpl(ProjectService projectService)
public SchemaSpace getSchemas(SchemaSpaceID spaceID)
SchemaService
spaceID
- the schema space ID, either SchemaSpaceID.SOURCE
or SchemaSpaceID.TARGET
SchemaService.getSchemas(SchemaSpaceID)
public void addSchema(Schema schema, SchemaSpaceID spaceID)
SchemaService
schema
- the schema to addspaceID
- the schema space ID, either SchemaSpaceID.SOURCE
or SchemaSpaceID.TARGET
SchemaService.addSchema(Schema, SchemaSpaceID)
public void clearSchemas(SchemaSpaceID spaceID)
SchemaService
spaceID
- the schema space ID, either SchemaSpaceID.SOURCE
or SchemaSpaceID.TARGET
SchemaService.clearSchemas(SchemaSpaceID)
public void toggleMappable(SchemaSpaceID spaceID, Collection<? extends TypeDefinition> types)
SchemaService
spaceID
- the schema space the types are intypes
- he typesSchemaService.toggleMappable(eu.esdihumboldt.hale.common.schema.SchemaSpaceID,
java.util.Collection)
public void editMappableTypes(SchemaSpaceID spaceID)
SchemaService
spaceID
- the schema space to editSchemaService.editMappableTypes(eu.esdihumboldt.hale.common.schema.SchemaSpaceID)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a