Package org.opengis.cite.iso19136.util
Class FeatureTypeFilter
java.lang.Object
org.opengis.cite.iso19136.util.FeatureTypeFilter
- All Implemented Interfaces:
SchemaComponentFilter
A schema component filter that accepts feature types--types that derive directly or
indirectly from gml:AbstractFeatureType. All other type definitions are rejected. The
supplied collection is expected to be of the type
Map<QName, XSTypeDefinition>.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFilters the given collection of top-level schema components according to specific acceptance criteria.voidRemoves complex type definitions that are not derived (by extension) fromgml:AbstractFeatureType.
-
Constructor Details
-
FeatureTypeFilter
public FeatureTypeFilter()
-
-
Method Details
-
doFilter
public Map<QName,org.apache.xerces.xs.XSObject> doFilter(Map<QName, org.apache.xerces.xs.XSObject> components) Description copied from interface:SchemaComponentFilterFilters the given collection of top-level schema components according to specific acceptance criteria. The supplied Map object is unmodified.- Specified by:
doFilterin interfaceSchemaComponentFilter- Parameters:
components- A (possibly immutable) collection of schema components, keyed by QName.- Returns:
- A new Map object containing those components from the given collection that satisfy the filtering criteria.
-
filterSet
Removes complex type definitions that are not derived (by extension) fromgml:AbstractFeatureType.- Parameters:
complexTypes- A Set of complex type definitions (XSComplexTypeDefinition objects).
-