Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.geometry.service
Interface GeometrySchemaService

All Known Implementing Classes:
AbstractGeometrySchemaService, ProjectGeometrySchemaService

public interface GeometrySchemaService

Service that manages default geometry information for definitions.

Author:
Simon Templer

Method Summary
 void addListener(GeometrySchemaServiceListener listener)
          Adds a listener for service events.
 List<QName> getDefaultGeometry(TypeDefinition type)
          Get the property path to the default geometry of the given type.

Note that the path does not necessarily have to point to a property with GeometryProperty binding, but can also lead to a property containing nested geometry properties (e.g.
 void removeListener(GeometrySchemaServiceListener listener)
          Removes a listener for service events.
 void setDefaultGeometry(TypeDefinition type, List<QName> path)
          Set the property path of the default geometry for the given type.

Note that the path does not necessarily have to point to a property with GeometryProperty binding, but can also lead to a property containing nested geometry properties (e.g.
 

Method Detail

getDefaultGeometry

List<QName> getDefaultGeometry(TypeDefinition type)
Get the property path to the default geometry of the given type.

Note that the path does not necessarily have to point to a property with GeometryProperty binding, but can also lead to a property containing nested geometry properties (e.g. in a choice).

Parameters:
type - the type definition
Returns:
the property path to the default geometry property, or null if there is none

setDefaultGeometry

void setDefaultGeometry(TypeDefinition type,
                        List<QName> path)
Set the property path of the default geometry for the given type.

Note that the path does not necessarily have to point to a property with GeometryProperty binding, but can also lead to a property containing nested geometry properties (e.g. in a choice).

Parameters:
type - the type definition
path - the property path

addListener

void addListener(GeometrySchemaServiceListener listener)
Adds a listener for service events.

Parameters:
listener - the listener to add

removeListener

void removeListener(GeometrySchemaServiceListener listener)
Removes a listener for service events.

Parameters:
listener - the listener to remove

Humboldt Alignment Editor 2.5.0

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