org.apache.tools.ant.types.resources.selectors
public class InstanceOf extends Object implements ResourceSelector
Since: Ant 1.7
Method Summary | |
---|---|
Class | getCheckClass()
Get the comparison class. |
String | getType()
Get the comparison type. |
String | getURI()
Get the type's URI. |
boolean | isSelected(Resource r)
Return true if this Resource is selected. |
void | setClass(Class c)
Set the class to compare against. |
void | setProject(Project p)
Set the Project instance for this InstanceOf selector. |
void | setType(String s)
Set the Ant type to compare against. |
void | setURI(String u)
Set the URI in which the Ant type, if specified, should be defined. |
Returns: the Class object.
Returns: the String typename.
Returns: the String URI.
Parameters: r the Resource to check.
Returns: whether the Resource was selected.
Throws: BuildException if an error occurs.
Parameters: c the class.
Parameters: p the Project instance used for type comparisons.
Parameters: s the type name.
Parameters: u the URI.