Search in sources :

Example 11 with DefaultSchemaSpace

use of eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchemaSpace in project hale by halestudio.

the class SchemaServiceImpl method addSchema.

/**
 * @see SchemaService#addSchema(Schema, SchemaSpaceID)
 */
@Override
public void addSchema(Schema schema, SchemaSpaceID spaceID) {
    Preconditions.checkNotNull(spaceID);
    SchemaIO.loadMappingRelevantTypesConfig(schema, spaceID, getProjectService().getConfigurationService());
    DefaultSchemaSpace space = (DefaultSchemaSpace) getSchemas(spaceID);
    space.addSchema(schema);
    notifySchemaAdded(spaceID, schema);
}
Also used : DefaultSchemaSpace(eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchemaSpace)

Aggregations

DefaultSchemaSpace (eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchemaSpace)11 IOReport (eu.esdihumboldt.hale.common.core.io.report.IOReport)7 FileIOSupplier (eu.esdihumboldt.hale.common.core.io.supplier.FileIOSupplier)4 LogProgressIndicator (eu.esdihumboldt.hale.common.core.io.impl.LogProgressIndicator)3 Schema (eu.esdihumboldt.hale.common.schema.model.Schema)3 JaxbAlignmentReader (eu.esdihumboldt.hale.common.align.io.impl.JaxbAlignmentReader)2 IOProviderDescriptor (eu.esdihumboldt.hale.common.core.io.extension.IOProviderDescriptor)2 DefaultInputSupplier (eu.esdihumboldt.hale.common.core.io.supplier.DefaultInputSupplier)2 Instance (eu.esdihumboldt.hale.common.instance.model.Instance)2 InstanceCollection (eu.esdihumboldt.hale.common.instance.model.InstanceCollection)2 XmlSchemaReader (eu.esdihumboldt.hale.io.xsd.reader.XmlSchemaReader)2 File (java.io.File)2 BeforeClass (org.junit.BeforeClass)2 Geometry (com.vividsolutions.jts.geom.Geometry)1 MultiPoint (com.vividsolutions.jts.geom.MultiPoint)1 MultiPolygon (com.vividsolutions.jts.geom.MultiPolygon)1 Point (com.vividsolutions.jts.geom.Point)1 Polygon (com.vividsolutions.jts.geom.Polygon)1 AlignmentReader (eu.esdihumboldt.hale.common.align.io.AlignmentReader)1 AlignmentWriter (eu.esdihumboldt.hale.common.align.io.AlignmentWriter)1