|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(Properties properties,
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. |
|
|
getCachedIdentifiable(Class<V> expectedType,
CRSCodeType id)
Get a CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType. |
|
|
getCachedIdentifiable(Class<V> expectedType,
CRSCodeType[] ids)
Get a CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType. |
|
|
getCachedIdentifiable(Class<V> expectedType,
CRSIdentifiable ids)
The id are what they are, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(Class<V> expectedType,
String id)
The id is as it is, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(Class<V> expectedType,
String[] ids)
The id are what they are, not trimming 'upcasing' or other modifications will be done in this method. |
|
|
getCachedIdentifiable(CRSCodeType id)
Get a CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType. |
|
|
getCachedIdentifiable(String id)
The id is as it is, not trimming 'upcasing' or other modifications will be done in this method. |
|
CoordinateSystem |
getCRSByCode(CRSCodeType id)
Retrieves the CoordinateSystem from the set provider that is identified by the given CRSCodeType
id. |
|
protected CRSResource<T> |
getResolver()
|
|
protected AbstractCRSProvider.SupportedProjectionParameters |
mapProjectionParameters(CRSCodeType[] codes)
|
|
protected AbstractCRSProvider.SupportedProjections |
mapProjections(CRSCodeType[] codes)
|
|
protected AbstractCRSProvider.SupportedTransformations |
mapTransformation(CRSCodeType[] codes)
|
|
protected AbstractCRSProvider.SupportedTransformationParameters |
mapTransformationParameters(CRSCodeType[] codes)
|
|
protected abstract CoordinateSystem |
parseCoordinateSystem(T crsDefinition)
|
|
abstract Transformation |
parseTransformation(T transformationDefinition)
|
|
protected 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, getAvailableCRSCodes, getAvailableCRSs, getIdentifiable, getTransformation |
| Constructor Detail |
|---|
public AbstractCRSProvider(Properties properties,
Class<K> subType,
CRSResource<T> defaultResolver)
K - properties - subType - defaultResolver - | Method Detail |
|---|
public CoordinateSystem getCRSByCode(CRSCodeType id)
throws CRSConfigurationException
CoordinateSystem from the set provider that is identified by the given CRSCodeType
id.
getCRSByCode in interface CRSProviderid - the CRSCodeType of the wanted crs
CoordinateSystem that corresponds to the id
CRSConfigurationExceptionprotected 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 crsDefintion
public 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 crsDefintion
public <V extends CRSIdentifiable> V getCachedIdentifiable(Class<V> expectedType,
CRSIdentifiable 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
CRSIdentifiable of the first matching id or null if it was not found.
public <V extends CRSIdentifiable> V getCachedIdentifiable(Class<V> expectedType,
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
CRSIdentifiable of the first matching id or null if it was not found.
public <V extends CRSIdentifiable> V getCachedIdentifiable(Class<V> expectedType,
CRSCodeType[] ids)
CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType. An array of code types is given; the first identifiable that is found in (for a code, when
they are checked in order) is returned
V - expectedType - the type of the sought objectids - an array of CRSCodeTypes
public <V extends CRSIdentifiable> V getCachedIdentifiable(Class<V> expectedType,
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
CRSIdentifiable or null if it was not found or the wrong type was found.
public <V extends CRSIdentifiable> V getCachedIdentifiable(Class<V> expectedType,
CRSCodeType id)
CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType.
V - expectedType - the type of the sought objectid - a CRSCodeType
public <V extends CRSIdentifiable> V getCachedIdentifiable(String id)
V - the type to cast to if the casting fails, null will be returned.id - to search the cache for
CRSIdentifiable or null if it was not found or the wrong type was found.public <V extends CRSIdentifiable> V getCachedIdentifiable(CRSCodeType id)
CRSIdentifiable (actually a type V that extends it) from the cache that corresponds to the a
CRSCodeType.
V - id - a CRSCodeType
CRSIdentifiable-extending object that corresponds to the given id
public <V extends CRSIdentifiable> V addIdToCache(V identifiable,
boolean update)
V - type of CRSIdentifiableidentifiable - to insert into cacheupdate - if true an existing identifiable in the cache will be overwritten.
protected AbstractCRSProvider.SupportedProjections mapProjections(CRSCodeType[] codes)
codes - to check for.
AbstractCRSProvider.SupportedProjections.NOT_SUPPORTED, never nullprotected AbstractCRSProvider.SupportedProjectionParameters mapProjectionParameters(CRSCodeType[] codes)
codes - to check for.
AbstractCRSProvider.SupportedProjectionParameters.NOT_SUPPORTED, never
nullprotected AbstractCRSProvider.SupportedTransformations mapTransformation(CRSCodeType[] codes)
codes - to check for.
AbstractCRSProvider.SupportedTransformations.NOT_SUPPORTED, never nullprotected AbstractCRSProvider.SupportedTransformationParameters mapTransformationParameters(CRSCodeType[] codes)
codes - to check for.
AbstractCRSProvider.SupportedTransformations.NOT_SUPPORTED, never null
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||