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