public class PlacemarkDescriptorRegistry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_PLACEMARK_DESCRIPTOR |
Constructor and Description |
---|
PlacemarkDescriptorRegistry(ServiceRegistry<PlacemarkDescriptor> serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
static PlacemarkDescriptorRegistry |
getInstance() |
PlacemarkDescriptor |
getPlacemarkDescriptor(Class<? extends PlacemarkDescriptor> clazz)
Gives a placemark descriptors from the service registry which is compatible with the given class which
extends
PlacemarkDescriptor . |
PlacemarkDescriptor |
getPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType)
Returns the 'best qualified' placemark descriptors which is compatible with the given feature type.
|
PlacemarkDescriptor |
getPlacemarkDescriptor(String className)
Gives a placemark descriptor from the service registry which is compatible with the given class name.
|
Set<PlacemarkDescriptor> |
getPlacemarkDescriptors()
Gives all placemark descriptors from the service registry.
|
List<PlacemarkDescriptor> |
getPlacemarkDescriptors(org.opengis.feature.simple.SimpleFeatureType featureType)
Returns an ordered list of placemark descriptors that are compatible with the given feature type.
|
static void |
setInstance(PlacemarkDescriptorRegistry instance) |
public static final String PROPERTY_NAME_PLACEMARK_DESCRIPTOR
public PlacemarkDescriptorRegistry(ServiceRegistry<PlacemarkDescriptor> serviceRegistry)
public static PlacemarkDescriptorRegistry getInstance()
public static void setInstance(PlacemarkDescriptorRegistry instance)
public PlacemarkDescriptor getPlacemarkDescriptor(Class<? extends PlacemarkDescriptor> clazz)
PlacemarkDescriptor
.clazz
- The class.public PlacemarkDescriptor getPlacemarkDescriptor(String className)
className
- The class name.public Set<PlacemarkDescriptor> getPlacemarkDescriptors()
public List<PlacemarkDescriptor> getPlacemarkDescriptors(org.opengis.feature.simple.SimpleFeatureType featureType)
DecodeQualification
). A feature type may have
given the class name of an appropriate placemark descriptor in its "user data", the key for that descriptor name is
given by AbstractPlacemarkDescriptor.PROPERTY_NAME_PLACEMARK_DESCRIPTOR
.featureType
- The feature type.public PlacemarkDescriptor getPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType)
featureType
- The feature type.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.