org.apache.tools.ant.types.selectors

Class NotSelector

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 Summary
NotSelector()
Default constructor.
NotSelector(FileSelector other)
Constructor that inverts the meaning of its argument.
Method Summary
StringtoString()
voidverifySettings()
Makes sure that there is only one entry, sets an error message if not.

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 String toString()

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.