Class ScopeFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      ScopeFilter​(java.util.Collection<java.lang.String> included, java.util.Collection<java.lang.String> excluded)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ScopeFilter excluding​(java.lang.String... excluded)
      Construct a ScopeFilter based on excluded scopes
      static ScopeFilter excluding​(java.util.Collection<java.lang.String> excluded)
      Construct a ScopeFilter based on excluded scopes
      java.util.Collection<java.lang.String> getExcluded()
      Get the excluded scopes
      java.util.Collection<java.lang.String> getIncluded()
      Get the included scopes
      static ScopeFilter including​(java.lang.String... included)
      Construct a ScopeFilter based on included scopes
      static ScopeFilter including​(java.util.Collection<java.lang.String> included)
      Construct a ScopeFilter based on included scopes
      <T> T transform​(FilterTransformer<T> transformer)
      Transform this filter to a tool specific implementation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScopeFilter

        public ScopeFilter​(java.util.Collection<java.lang.String> included,
                           java.util.Collection<java.lang.String> excluded)
        Parameters:
        included - specific scopes to include or null to include all
        excluded - specific scopes to exclude or null to exclude none
    • Method Detail

      • including

        public static ScopeFilter including​(java.util.Collection<java.lang.String> included)
        Construct a ScopeFilter based on included scopes
        Parameters:
        included - the scopes to include, may be null
        Returns:
        the filter, never null
      • including

        public static ScopeFilter including​(java.lang.String... included)
        Construct a ScopeFilter based on included scopes
        Parameters:
        included - the scopes to include, must not be null
        Returns:
        the filter, never null
      • excluding

        public static ScopeFilter excluding​(java.util.Collection<java.lang.String> excluded)
        Construct a ScopeFilter based on excluded scopes
        Parameters:
        excluded - the scopes to exclude, may be null
        Returns:
        the filter, never null
      • excluding

        public static ScopeFilter excluding​(java.lang.String... excluded)
        Construct a ScopeFilter based on excluded scopes
        Parameters:
        excluded - the scopes to exclude, must not be null
        Returns:
        the filter, never null
      • getExcluded

        public final java.util.Collection<java.lang.String> getExcluded()
        Get the excluded scopes
        Returns:
        the scopes to exclude, may be null
      • getIncluded

        public final java.util.Collection<java.lang.String> getIncluded()
        Get the included scopes
        Returns:
        the scopes to include, may be null
      • transform

        public <T> T transform​(FilterTransformer<T> transformer)
        Transform this filter to a tool specific implementation
        Specified by:
        transform in interface TransformableFilter
        Type Parameters:
        T - The type to be used.
        Parameters:
        transformer - the transformer, must not be null
        Returns:
        T.