Class NotSelector

All Implemented Interfaces:
Cloneable, ResourceSelector, FileSelector, SelectorContainer

public class NotSelector extends NoneSelector
This selector has one other selectors whose meaning it inverts. It actually relies on NoneSelector for its implementation of the isSelected() method, but it adds a check to ensure there is only one other selector contained within.
  • Constructor Details

    • NotSelector

      public NotSelector()
      Default constructor.
    • NotSelector

      public NotSelector(FileSelector other)
      Constructor that inverts the meaning of its argument.
      other - the selector to invert
      Ant 1.7
  • Method Details

    • toString

      public String toString()
      Description copied from class: BaseSelectorContainer
      Convert the Selectors within this container to a string. This will just be a helper class for the subclasses that put their own name around the contents listed here.
      toString in class NoneSelector
      a string representation of the selector
    • verifySettings

      public void verifySettings()
      Makes sure that there is only one entry, sets an error message if not.
      verifySettings in class BaseSelector