Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.schema.internal
Class SchemaServiceImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.service.schema.internal.AbstractSchemaService
      extended by eu.esdihumboldt.hale.ui.service.schema.internal.SchemaServiceImpl
All Implemented Interfaces:
SchemaService

public class SchemaServiceImpl
extends AbstractSchemaService

Default SchemaService implementation

Author:
Simon Templer

Nested Class Summary
 class SchemaServiceImpl.ToggleMappableOperation
          Operation that toggles mappable flags.
 
Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.service.schema.SchemaService
ACTION_READ_SOURCE, ACTION_READ_TARGET
 
Constructor Summary
SchemaServiceImpl(ProjectService projectService)
           
 
Method Summary
 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
 
Methods inherited from class eu.esdihumboldt.hale.ui.service.schema.internal.AbstractSchemaService
addSchemaServiceListener, getProjectService, notifyMappableTypesChanged, notifySchemaAdded, notifySchemasCleared, removeSchemaServiceListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaServiceImpl

public SchemaServiceImpl(ProjectService projectService)
See Also:
AbstractSchemaService.AbstractSchemaService(ProjectService)
Method Detail

getSchemas

public SchemaSpace getSchemas(SchemaSpaceID spaceID)
Description copied from interface: SchemaService
Get the source or target schema space.

Parameters:
spaceID - the schema space ID, either SchemaSpaceID.SOURCE or SchemaSpaceID.TARGET
Returns:
the schema space
See Also:
SchemaService.getSchemas(SchemaSpaceID)

addSchema

public void addSchema(Schema schema,
                      SchemaSpaceID spaceID)
Description copied from interface: SchemaService
Add a schema to the source or target schema space.

Parameters:
schema - the schema to add
spaceID - the schema space ID, either SchemaSpaceID.SOURCE or SchemaSpaceID.TARGET
See Also:
SchemaService.addSchema(Schema, SchemaSpaceID)

clearSchemas

public void clearSchemas(SchemaSpaceID spaceID)
Description copied from interface: SchemaService
Removes all schemas from the source or target schema space.

Parameters:
spaceID - the schema space ID, either SchemaSpaceID.SOURCE or SchemaSpaceID.TARGET
See Also:
SchemaService.clearSchemas(SchemaSpaceID)

toggleMappable

public void toggleMappable(SchemaSpaceID spaceID,
                           Collection<? extends TypeDefinition> types)
Description copied from interface: SchemaService
Toggles the mappable flag of all given types of the given schema space

Parameters:
spaceID - the schema space the types are in
types - he types
See Also:
SchemaService.toggleMappable(eu.esdihumboldt.hale.common.schema.SchemaSpaceID, java.util.Collection)

editMappableTypes

public void editMappableTypes(SchemaSpaceID spaceID)
Description copied from interface: SchemaService
Edit which types are mappable in the given schema space.

Parameters:
spaceID - the schema space to edit
See Also:
SchemaService.editMappableTypes(eu.esdihumboldt.hale.common.schema.SchemaSpaceID)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d