org.apache.tools.ant.types.resources.selectors
Class InstanceOf
java.lang.Object
org.apache.tools.ant.types.resources.selectors.InstanceOf
- ResourceSelector
public class InstanceOf
extends java.lang.Object
InstanceOf ResourceSelector.
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.
|
getCheckClass
public Class getCheckClass()
Get the comparison class.
getType
public String getType()
Get the comparison type.
getURI
public String getURI()
Get the type's URI.
isSelected
public boolean isSelected(Resource r)
Return true if this Resource is selected.
- isSelected in interface ResourceSelector
r
- the Resource to check.
- whether the Resource was selected.
setClass
public void setClass(Class c)
Set the class to compare against.
setProject
public void setProject(Project p)
Set the Project instance for this InstanceOf selector.
p
- the Project instance used for type comparisons.
setType
public void setType(String s)
Set the Ant type to compare against.
setURI
public void setURI(String u)
Set the URI in which the Ant type, if specified, should be defined.