Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.schema
Interface SchemaService

All Known Implementing Classes:
AbstractSchemaService, SchemaServiceImpl

public interface SchemaService

The schema service is used internally to provide access to the currently loaded schemas.

Author:
Thorsten Reitz, Simon Templer

Field Summary
static String ACTION_READ_SOURCE
          The action id used for reading source schemas.
static String ACTION_READ_TARGET
          The action id used for reading target schemas.
 
Method Summary
 void addSchema(Schema schema, SchemaSpaceID spaceID)
          Add a schema to the source or target schema space.
 void addSchemaServiceListener(SchemaServiceListener listener)
          Adds a listener for schema service events
 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 removeSchemaServiceListener(SchemaServiceListener listener)
          Removes a listener for schema service events
 void toggleMappable(SchemaSpaceID spaceID, Collection<? extends TypeDefinition> types)
          Toggles the mappable flag of all given types of the given schema space
 

Field Detail

ACTION_READ_SOURCE

static final String ACTION_READ_SOURCE
The action id used for reading source schemas.

See Also:
Constant Field Values

ACTION_READ_TARGET

static final String ACTION_READ_TARGET
The action id used for reading target schemas.

See Also:
Constant Field Values
Method Detail

getSchemas

SchemaSpace getSchemas(SchemaSpaceID spaceID)
Get the source or target schema space.

Parameters:
spaceID - the schema space ID, either SchemaSpaceID.SOURCE or SchemaSpaceID.TARGET
Returns:
the schema space

addSchema

void addSchema(Schema schema,
               SchemaSpaceID spaceID)
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

clearSchemas

void clearSchemas(SchemaSpaceID spaceID)
Removes all schemas from the source or target schema space.

Parameters:
spaceID - the schema space ID, either SchemaSpaceID.SOURCE or SchemaSpaceID.TARGET

addSchemaServiceListener

void addSchemaServiceListener(SchemaServiceListener listener)
Adds a listener for schema service events

Parameters:
listener - the listener to add

removeSchemaServiceListener

void removeSchemaServiceListener(SchemaServiceListener listener)
Removes a listener for schema service events

Parameters:
listener - the listener to remove

toggleMappable

void toggleMappable(SchemaSpaceID spaceID,
                    Collection<? extends TypeDefinition> types)
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

editMappableTypes

void editMappableTypes(SchemaSpaceID spaceID)
Edit which types are mappable in the given schema space.

Parameters:
spaceID - the schema space to edit

Humboldt Alignment Editor 2.5.0

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