Class InstanceOf
java.lang.Object
org.apache.tools.ant.types.resources.selectors.InstanceOf
- All Implemented Interfaces:
- ResourceSelector
InstanceOf ResourceSelector.
- Since:
- Ant 1.7
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClass<?>Get the comparison class.getType()Get the comparison type.getURI()Get the type's URI.booleanReturn true if this Resource is selected.voidSet the class to compare against.voidSet the Project instance for this InstanceOf selector.voidSet the Ant type to compare against.voidSet the URI in which the Ant type, if specified, should be defined.
- 
Constructor Details- 
InstanceOfpublic InstanceOf()
 
- 
- 
Method Details- 
setProjectSet the Project instance for this InstanceOf selector.- Parameters:
- p- the Project instance used for type comparisons.
 
- 
setClassSet the class to compare against.- Parameters:
- c- the class.
 
- 
setTypeSet the Ant type to compare against.- Parameters:
- s- the type name.
 
- 
setURISet the URI in which the Ant type, if specified, should be defined.- Parameters:
- u- the URI.
 
- 
getCheckClassGet the comparison class.- Returns:
- the Class object.
 
- 
getTypeGet the comparison type.- Returns:
- the String typename.
 
- 
getURIGet the type's URI.- Returns:
- the String URI.
 
- 
isSelectedReturn true if this Resource is selected.- Specified by:
- isSelectedin interface- ResourceSelector
- Parameters:
- r- the Resource to check.
- Returns:
- whether the Resource was selected.
- Throws:
- BuildException- if an error occurs.
 
 
-