Microsoft SDK for Java

IncludeExcludeWildcards Class

The IncludeExcludeWildcards Class of the com.ms.util package maintains a set of strings specified by a pair of WildcardExpression objects. The first expression specifies a set of strings that are included in the set, the second specifies strings that are excluded from the set. Because WildcardExpression cannot be subtracted, this class provides a way of emulating subtraction.

public class IncludeExcludeWildcards implements
            ProvideSetComparisonInfo, SetComparison
{
  // Constructors
  public IncludeExcludeWildcards(WildcardExpression include,
        WildcardExpression exclude);

  // Methods
  public Object combineSetRules(Object o1, Object o2);
  public int compareSet(Object other);
  public int compareSetRules(Object o1, Object o2);
  public synchronized void exclude(WildcardExpression expr);
  public WildcardExpression getExcludeExpression();
  public WildcardExpression getIncludeExpression();
  public Object getSetRule(int rule);
  public String getStringForSetRule(Object o);
  public synchronized void include(WildcardExpression expr);
  public Object intersectSetRules(Object o1, Object o2)
  public synchronized void invalidate();
  public boolean isEmptySetRule(Object o);
  public boolean match(String s);
  public String toString();
  public synchronized void validate();
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.