|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.configuration.AbstractCRSProvider<T>
T
- the type of object the parse method awaits.public abstract class AbstractCRSProvider<T>
add class documentation here.
Nested Class Summary | |
---|---|
static class |
AbstractCRSProvider.SupportedProjectionParameters
The SupportedProjectionParameters enumeration defines currently supported projection parameters |
static class |
AbstractCRSProvider.SupportedProjections
The SupportedProjections enumeration defines currently supported projections |
static class |
AbstractCRSProvider.SupportedTransformationParameters
The SupportedTransformationParameters enumeration defines currently supported transformation
parameters |
static class |
AbstractCRSProvider.SupportedTransformations
The SupportedTransformations enumeration defines currently supported transformations |
Constructor Summary | |
---|---|
AbstractCRSProvider(java.util.Properties properties,
java.lang.Class<K> subType,
CRSResource<T> defaultResolver)
|
Method Summary | ||
---|---|---|
|
addIdToCache(V identifiable,
boolean update)
Add the id to the cache, by mapping it to all its identifiers. |
|
void |
clearCache()
Clears the cache. |
|
|
getCachedIdentifiable(java.lang.Class<V> expectedType,
Identifiable ids)
The id are what they are, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(java.lang.Class<V> expectedType,
java.lang.String id)
The id is as it is, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(java.lang.Class<V> expectedType,
java.lang.String[] ids)
The id are what they are, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(java.lang.String id)
The id is as it is, not trimming 'upcasing' or other modifications will be done in this method. |
|
CoordinateSystem |
getCRSByID(java.lang.String id)
|
|
protected CRSResource<T> |
getResolver()
|
|
protected AbstractCRSProvider.SupportedProjectionParameters |
mapProjectionParameters(java.lang.String[] identifiers)
|
|
protected AbstractCRSProvider.SupportedProjections |
mapProjections(java.lang.String[] identifiers)
|
|
protected AbstractCRSProvider.SupportedTransformations |
mapTransformation(java.lang.String[] identifiers)
|
|
protected AbstractCRSProvider.SupportedTransformationParameters |
mapTransformationParameters(java.lang.String[] identifiers)
|
|
protected abstract CoordinateSystem |
parseCoordinateSystem(T crsDefinition)
|
|
abstract Transformation |
parseTransformation(T transformationDefinition)
|
|
void |
setResolver(CRSResource<T> newResolver)
Set the resolver to the given resolver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.crs.configuration.CRSProvider |
---|
canExport, export, getAvailableCRSIds, getAvailableCRSs, getIdentifiable, getSortedAvailableCRSIds, getTransformation, getTransformations |
Constructor Detail |
---|
public AbstractCRSProvider(java.util.Properties properties, java.lang.Class<K> subType, CRSResource<T> defaultResolver)
K
- properties
- subType
- defaultResolver
- Method Detail |
---|
public CoordinateSystem getCRSByID(java.lang.String id) throws CRSConfigurationException
getCRSByID
in interface CRSProvider
id
- string representation of the CoordinateSystem
null
if no such CRS was found.
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested crs. This
exception should not be thrown if the given id wasn't found, in this case null
should
be returned.public void setResolver(CRSResource<T> newResolver)
newResolver
- protected CRSResource<T> getResolver()
protected abstract CoordinateSystem parseCoordinateSystem(T crsDefinition) throws CRSConfigurationException
crsDefinition
- containing the definition of a crs in the understood type.
CoordinateSystem
instance initialized with values from the given type definition fragment or
null
if the given crsDefinition is null
or not known.
CRSConfigurationException
- if an error was found in the given crsDefintionpublic abstract Transformation parseTransformation(T transformationDefinition) throws CRSConfigurationException
transformationDefinition
- containing the parameters needed to build a Transformation.
Transformation
instance initialized with values from the given definition or null
if the given transformationDefintion is null
. If the parsed transformation is not supported
or a NotSupportedTransformation
will be returned.
CRSConfigurationException
- if an error was found in the given crsDefintionpublic void clearCache()
clearCache
in interface CRSProvider
public <V extends Identifiable> V getCachedIdentifiable(java.lang.Class<V> expectedType, Identifiable ids)
V
- the type to cast to if the casting fails, null will be returned.expectedType
- The class of type T which is expected.ids
- to search the cache for
Identifiable
of the first matching id or null
if it was not found.public <V extends Identifiable> V getCachedIdentifiable(java.lang.Class<V> expectedType, java.lang.String[] ids)
V
- the type to cast to if the casting fails, null will be returned.expectedType
- The class of type T which is expected.ids
- to search the cache for
Identifiable
of the first matching id or null
if it was not found.public <V extends Identifiable> V getCachedIdentifiable(java.lang.Class<V> expectedType, java.lang.String id)
V
- the type to cast to if the casting fails, null will be returned.expectedType
- The class of type T which is expected.id
- to search the cache for
Identifiable
or null
if it was not found or the wrong type was found.public <V extends Identifiable> V getCachedIdentifiable(java.lang.String id)
V
- the type to cast to if the casting fails, null will be returned.id
- to search the cache for
Identifiable
or null
if it was not found or the wrong type was found.public <V extends Identifiable> V addIdToCache(V identifiable, boolean update)
V
- type of Identifiableidentifiable
- to insert into cacheupdate
- if true an existing identifiable in the cache will be overwritten.
protected AbstractCRSProvider.SupportedProjections mapProjections(java.lang.String[] identifiers)
identifiers
- to check for.
AbstractCRSProvider.SupportedProjections.NOT_SUPPORTED
, never null
protected AbstractCRSProvider.SupportedProjectionParameters mapProjectionParameters(java.lang.String[] identifiers)
identifiers
- to check for.
AbstractCRSProvider.SupportedProjectionParameters.NOT_SUPPORTED
, never
null
protected AbstractCRSProvider.SupportedTransformations mapTransformation(java.lang.String[] identifiers)
identifiers
- to check for.
AbstractCRSProvider.SupportedTransformations.NOT_SUPPORTED
, never null
protected AbstractCRSProvider.SupportedTransformationParameters mapTransformationParameters(java.lang.String[] identifiers)
identifiers
- to check for.
AbstractCRSProvider.SupportedTransformations.NOT_SUPPORTED
, never null
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org