Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.schema.io
Class SchemaIO

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.io.SchemaIO

public abstract class SchemaIO
extends Object

Schema I/O utilities

Since:
2.5
Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
static String ACTION_LOAD_SOURCE_SCHEMA
          ID of the action to load a source schema.
static String ACTION_LOAD_TARGET_SCHEMA
          ID of the action to load a target schema.
 
Constructor Summary
SchemaIO()
           
 
Method Summary
static SchemaReader createSchemaReader(org.eclipse.core.runtime.content.IContentType contentType, String providerId)
          Creates a schema reader instance
static void loadMappingRelevantTypesConfig(TypeIndex types, SchemaSpaceID spaceID, de.fhg.igd.osgi.util.configuration.IConfigurationService configurationService)
          Load the configuration of mapping relevant types.
static void loadMappingRelevantTypesConfig(TypeIndex types, SchemaSpaceID spaceID, Project project)
          Load the configuration of mapping relevant types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_LOAD_SOURCE_SCHEMA

public static final String ACTION_LOAD_SOURCE_SCHEMA
ID of the action to load a source schema. Reflects the ID defined in the extension.

See Also:
Constant Field Values

ACTION_LOAD_TARGET_SCHEMA

public static final String ACTION_LOAD_TARGET_SCHEMA
ID of the action to load a target schema. Reflects the ID defined in the extension.

See Also:
Constant Field Values
Constructor Detail

SchemaIO

public SchemaIO()
Method Detail

createSchemaReader

public static SchemaReader createSchemaReader(org.eclipse.core.runtime.content.IContentType contentType,
                                              String providerId)
Creates a schema reader instance

Parameters:
contentType - the content type the provider must match, may be null if providerId is set
providerId - the id of the provider to use, may be null if contentType is set
Returns:
the I/O provider preconfigured with the content type if it was given or null if no matching I/O provider is found

loadMappingRelevantTypesConfig

public static void loadMappingRelevantTypesConfig(TypeIndex types,
                                                  SchemaSpaceID spaceID,
                                                  de.fhg.igd.osgi.util.configuration.IConfigurationService configurationService)
Load the configuration of mapping relevant types.

Parameters:
types - the types
spaceID - the schema space identifier
configurationService - the configuration service

loadMappingRelevantTypesConfig

public static void loadMappingRelevantTypesConfig(TypeIndex types,
                                                  SchemaSpaceID spaceID,
                                                  Project project)
Load the configuration of mapping relevant types.

Parameters:
types - the types
spaceID - the schema space identifier
project - the project holding the configuration information

Humboldt Alignment Editor 2.5.0

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