@Override public LayerType getLayerType(AnnotationLayer aLayer) { if (aLayer.getType() == null) { return null; } // Figure out which layer support provides the given type. // If we can find a suitable layer support, then use it to resolve the type to a LayerType LayerType featureType = null; for (LayerSupport s : getLayerSupports()) { Optional<LayerType> ft = s.getLayerType(aLayer); if (ft.isPresent()) { featureType = ft.get(); break; } } return featureType; } }
@Override public LayerType getLayerType(AnnotationLayer aLayer) { if (aLayer.getType() == null) { return null; } // Figure out which layer support provides the given type. // If we can find a suitable layer support, then use it to resolve the type to a LayerType LayerType featureType = null; for (LayerSupport s : getLayerSupports()) { Optional<LayerType> ft = s.getLayerType(aLayer); if (ft.isPresent()) { featureType = ft.get(); break; } } return featureType; } }