Class FeatureTypeFilter

java.lang.Object
org.opengis.cite.iso19136.util.FeatureTypeFilter
All Implemented Interfaces:
SchemaComponentFilter

public class FeatureTypeFilter extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<QName,org.apache.xerces.xs.XSObject>
    doFilter(Map<QName,org.apache.xerces.xs.XSObject> components)
    Filters the given collection of top-level schema components according to specific acceptance criteria.
    void
    filterSet(Set<org.apache.xerces.xs.XSComplexTypeDefinition> complexTypes)
    Removes complex type definitions that are not derived (by extension) from gml:AbstractFeatureType.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: SchemaComponentFilter
      Filters the given collection of top-level schema components according to specific acceptance criteria. The supplied Map object is unmodified.
      Specified by:
      doFilter in interface SchemaComponentFilter
      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

      public void filterSet(Set<org.apache.xerces.xs.XSComplexTypeDefinition> complexTypes)
      Removes complex type definitions that are not derived (by extension) from gml:AbstractFeatureType.
      Parameters:
      complexTypes - A Set of complex type definitions (XSComplexTypeDefinition objects).