public abstract class AbstractGeometrySchemaService extends Object implements GeometrySchemaService
Constructor and Description |
---|
AbstractGeometrySchemaService() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(GeometrySchemaServiceListener listener)
Adds a listener for service events.
|
protected List<QName> |
determineDefaultGeometry(TypeDefinition type)
Determine the path to a geometry property to be used as default geometry
for the given type.
|
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. |
protected abstract List<QName> |
loadDefaultGeometry(TypeDefinition type)
Load the path of the default geometry for the given type.
|
protected void |
notifyDefaultGeometryChanged(TypeDefinition type)
Notifies the listeners that the default geometry for the given type has
changed.
|
void |
removeListener(GeometrySchemaServiceListener listener)
Removes a listener for service events.
|
protected abstract void |
saveDefaultGeometry(TypeDefinition type,
List<QName> path)
Save the association of the given property path as the default geometry
of the given type.
|
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. |
public List<QName> getDefaultGeometry(TypeDefinition type)
GeometrySchemaService
GeometryProperty
binding, but can also lead to a property
containing nested geometry properties (e.g. in a choice).getDefaultGeometry
in interface GeometrySchemaService
type
- the type definitionnull
if there is noneGeometrySchemaService.getDefaultGeometry(TypeDefinition)
public void setDefaultGeometry(TypeDefinition type, List<QName> path)
GeometrySchemaService
GeometryProperty
binding, but can also lead to a property
containing nested geometry properties (e.g. in a choice).setDefaultGeometry
in interface GeometrySchemaService
type
- the type definitionpath
- the property pathGeometrySchemaService.setDefaultGeometry(TypeDefinition, List)
protected List<QName> determineDefaultGeometry(TypeDefinition type)
type
- the type definitionnull
if
unknownprotected abstract List<QName> loadDefaultGeometry(TypeDefinition type)
type
- the type definitionnull
if
unknownprotected abstract void saveDefaultGeometry(TypeDefinition type, List<QName> path)
type
- the type definitionpath
- the property pathprotected void notifyDefaultGeometryChanged(TypeDefinition type)
type
- the type definitionpublic void addListener(GeometrySchemaServiceListener listener)
GeometrySchemaService
addListener
in interface GeometrySchemaService
listener
- the listener to addGeometrySchemaService.addListener(GeometrySchemaServiceListener)
public void removeListener(GeometrySchemaServiceListener listener)
GeometrySchemaService
removeListener
in interface GeometrySchemaService
listener
- the listener to removeGeometrySchemaService.removeListener(GeometrySchemaServiceListener)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a