Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.geometry
Class ProjectGeometrySchemaService

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.geometry.service.impl.AbstractGeometrySchemaService
      extended by eu.esdihumboldt.hale.ui.service.geometry.ProjectGeometrySchemaService
All Implemented Interfaces:
GeometrySchemaService

public class ProjectGeometrySchemaService
extends AbstractGeometrySchemaService

Geometry schema service that stores the default geometry information in the project.

Author:
Simon Templer

Constructor Summary
ProjectGeometrySchemaService(ProjectService projectService)
          Create a geometry schema service storing the default geometry information using the given project service.
 
Method Summary
protected  List<QName> loadDefaultGeometry(TypeDefinition type)
          Load the path of the default geometry for the given type.
protected  void saveDefaultGeometry(TypeDefinition type, List<QName> path)
          Save the association of the given property path as the default geometry of the given type.
 
Methods inherited from class eu.esdihumboldt.hale.ui.geometry.service.impl.AbstractGeometrySchemaService
addListener, determineDefaultGeometry, getDefaultGeometry, notifyDefaultGeometryChanged, removeListener, setDefaultGeometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectGeometrySchemaService

public ProjectGeometrySchemaService(ProjectService projectService)
Create a geometry schema service storing the default geometry information using the given project service.

Parameters:
projectService - the project service
Method Detail

loadDefaultGeometry

protected List<QName> loadDefaultGeometry(TypeDefinition type)
Description copied from class: AbstractGeometrySchemaService
Load the path of the default geometry for the given type.

Specified by:
loadDefaultGeometry in class AbstractGeometrySchemaService
Parameters:
type - the type definition
Returns:
the path to the default geometry property or null if unknown
See Also:
AbstractGeometrySchemaService.loadDefaultGeometry(TypeDefinition)

saveDefaultGeometry

protected void saveDefaultGeometry(TypeDefinition type,
                                   List<QName> path)
Description copied from class: AbstractGeometrySchemaService
Save the association of the given property path as the default geometry of the given type.

Specified by:
saveDefaultGeometry in class AbstractGeometrySchemaService
Parameters:
type - the type definition
path - the property path
See Also:
AbstractGeometrySchemaService.saveDefaultGeometry(TypeDefinition, List)

Humboldt Alignment Editor 2.5.0

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