org.geotools.referencing.factory
Class AllAuthoritiesFactory

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
          extended by org.geotools.referencing.factory.AbstractAuthorityFactory
              extended by org.geotools.referencing.factory.AuthorityFactoryAdapter
                  extended by org.geotools.referencing.factory.ManyAuthoritiesFactory
                      extended by org.geotools.referencing.factory.AllAuthoritiesFactory
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, Factory, OptionalFactory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory

public class AllAuthoritiesFactory
extends ManyAuthoritiesFactory

An authority factory that delegates the object creation to an other factory determined from the authority name in the code. This is similar to ManyAuthoritiesFactory except that the set of factories is determined by calls to ReferencingFactoryFinder.getFooAuthorityFactory(authority, hints).

This class is not registered in ReferencingFactoryFinder. If this "authority" factory is wanted, then users need to refer explicitly to the DEFAULT constant or to create their own instance.

Since:
2.2
Version:
$Id: AllAuthoritiesFactory.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Martin Desruisseaux (IRD)

Field Summary
static AllAuthoritiesFactory DEFAULT
          An instance of AllAuthoritiesFactory with the default name separator and no hints.
 
Fields inherited from class org.geotools.referencing.factory.ReferencingFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
AllAuthoritiesFactory(Hints hints)
          Creates a new factory using the specified hints.
 
Method Summary
 java.util.Set<java.lang.String> getAuthorityNames()
          Returns the set of authority names.
 IdentifiedObjectFinder getIdentifiedObjectFinder(java.lang.Class<? extends org.opengis.referencing.IdentifiedObject> type)
          Returns a finder which can be used for looking up unidentified objects.
 
Methods inherited from class org.geotools.referencing.factory.ManyAuthoritiesFactory
createObject, getAuthority, getAuthorityCodes, getAuthorityFactory, getBackingStoreDescription, getCoordinateOperationAuthorityFactory, getCRSAuthorityFactory, getCSAuthorityFactory, getDatumAuthorityFactory, getDescriptionText, getSeparator, getVendor
 
Methods inherited from class org.geotools.referencing.factory.AuthorityFactoryAdapter
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, dispose, isAvailable, toBackingFactoryCode
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
noSuchAuthorityCode, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
 
Methods inherited from interface org.opengis.referencing.cs.CSAuthorityFactory
createCartesianCS, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createUnit, createVerticalCS
 
Methods inherited from interface org.opengis.referencing.datum.DatumAuthorityFactory
createDatum, createEllipsoid, createEngineeringDatum, createGeodeticDatum, createImageDatum, createPrimeMeridian, createTemporalDatum, createVerticalDatum
 
Methods inherited from interface org.opengis.referencing.operation.CoordinateOperationAuthorityFactory
createCoordinateOperation, createFromCoordinateReferenceSystemCodes
 
Methods inherited from interface org.geotools.factory.Factory
getImplementationHints
 

Field Detail

DEFAULT

public static AllAuthoritiesFactory DEFAULT
An instance of AllAuthoritiesFactory with the default name separator and no hints.

Constructor Detail

AllAuthoritiesFactory

public AllAuthoritiesFactory(Hints hints)
Creates a new factory using the specified hints.

Parameters:
hints - An optional set of hints, or null if none.
Method Detail

getAuthorityNames

public java.util.Set<java.lang.String> getAuthorityNames()
Returns the set of authority names.

Overrides:
getAuthorityNames in class ManyAuthoritiesFactory
Since:
2.4

getIdentifiedObjectFinder

public IdentifiedObjectFinder getIdentifiedObjectFinder(java.lang.Class<? extends org.opengis.referencing.IdentifiedObject> type)
                                                 throws org.opengis.referencing.FactoryException
Returns a finder which can be used for looking up unidentified objects. The default implementation delegates the lookups to the underlying factories.

Overrides:
getIdentifiedObjectFinder in class ManyAuthoritiesFactory
Parameters:
type - The type of objects to look for. Should be a GeoAPI interface like GeographicCRS.class, but this method accepts also implementation class. If the type is unknown, use IdentifiedObject.class. A more accurate type may help to speed up the search, since it reduces the amount of tables to scan in some implementations like the factories backed by EPSG database.
Returns:
A finder to use for looking up unidentified objects.
Throws:
org.opengis.referencing.FactoryException - if the object creation failed.
Since:
2.4


Copyright © 1996-2010 Geotools. All Rights Reserved.