Class InstanceOf
- java.lang.Object
- 
- org.apache.tools.ant.types.resources.selectors.InstanceOf
 
- 
- All Implemented Interfaces:
- ResourceSelector
 
 public class InstanceOf extends java.lang.Object implements ResourceSelector InstanceOf ResourceSelector.- Since:
- Ant 1.7
 
- 
- 
Constructor SummaryConstructors Constructor Description InstanceOf()
 - 
Method SummaryModifier and Type Method Description java.lang.Class<?>getCheckClass()Get the comparison class.java.lang.StringgetType()Get the comparison type.java.lang.StringgetURI()Get the type's URI.booleanisSelected(Resource r)Return true if this Resource is selected.voidsetClass(java.lang.Class<?> c)Set the class to compare against.voidsetProject(Project p)Set the Project instance for this InstanceOf selector.voidsetType(java.lang.String s)Set the Ant type to compare against.voidsetURI(java.lang.String u)Set the URI in which the Ant type, if specified, should be defined.
 
- 
- 
- 
Method Detail- 
setProjectpublic void setProject(Project p) Set the Project instance for this InstanceOf selector.- Parameters:
- p- the Project instance used for type comparisons.
 
 - 
setClasspublic void setClass(java.lang.Class<?> c) Set the class to compare against.- Parameters:
- c- the class.
 
 - 
setTypepublic void setType(java.lang.String s) Set the Ant type to compare against.- Parameters:
- s- the type name.
 
 - 
setURIpublic void setURI(java.lang.String u) Set the URI in which the Ant type, if specified, should be defined.- Parameters:
- u- the URI.
 
 - 
getCheckClasspublic java.lang.Class<?> getCheckClass() Get the comparison class.- Returns:
- the Class object.
 
 - 
getTypepublic java.lang.String getType() Get the comparison type.- Returns:
- the String typename.
 
 - 
getURIpublic java.lang.String getURI() Get the type's URI.- Returns:
- the String URI.
 
 - 
isSelectedpublic boolean isSelected(Resource r) Return 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.
 
 
- 
 
-