Class NotSelector

  • All Implemented Interfaces:
    java.lang.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.
    Since:
    1.5
    • Constructor Detail

      • NotSelector

        public NotSelector()
        Default constructor.
      • NotSelector

        public NotSelector​(FileSelector other)
        Constructor that inverts the meaning of its argument.
        Parameters:
        other - the selector to invert
        Since:
        Ant 1.7
    • Method Detail

      • toString

        public java.lang.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.
        Overrides:
        toString in class NoneSelector
        Returns:
        a string representation of the selector
      • verifySettings

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