Package org.apache.tools.ant.types
Class PatternSet.NameEntry
- java.lang.Object
- 
- org.apache.tools.ant.types.PatternSet.NameEntry
 
- 
- Direct Known Subclasses:
- PatternSet.PatternFileNameEntry
 - Enclosing class:
- PatternSet
 
 public class PatternSet.NameEntry extends java.lang.Objectinner class to hold a name on list. "If" and "Unless" attributes may be used to invalidate the entry based on the existence of a property (typically set through the use of the Available task) or value of an expression.
- 
- 
Constructor SummaryConstructors Constructor Description NameEntry()
 - 
Method SummaryModifier and Type Method Description java.lang.StringevalName(Project p)This validates the name - checks the if and unless properties.java.lang.StringgetName()voidsetIf(java.lang.Object cond)Sets the if attribute.voidsetIf(java.lang.String cond)Sets the if attribute.voidsetName(java.lang.String name)Sets the name pattern.voidsetUnless(java.lang.Object cond)Sets the unless attribute.voidsetUnless(java.lang.String cond)Sets the unless attribute.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
setNamepublic void setName(java.lang.String name) Sets the name pattern.- Parameters:
- name- The pattern string.
 
 - 
setIfpublic void setIf(java.lang.Object cond) Sets the if attribute. This attribute and the "unless" attribute are used to validate the name, based on the existence of the property or the value of the evaluated property expression.- Parameters:
- cond- A property name or expression. If the expression evaluates to false or no property of its value is present, the name is invalid.
- Since:
- Ant 1.8.0
 
 - 
setIfpublic void setIf(java.lang.String cond) Sets the if attribute. This attribute and the "unless" attribute are used to validate the name, based on the existence of the property or the value of the evaluated property expression.- Parameters:
- cond- A property name or expression. If the expression evaluates to false or no property of its value is present, the name is invalid.
 
 - 
setUnlesspublic void setUnless(java.lang.Object cond) Sets the unless attribute. This attribute and the "if" attribute are used to validate the name, based on the existence of the property or the value of the evaluated property expression.- Parameters:
- cond- A property name or expression. If the expression evaluates to true or a property of its value is present, the name is invalid.
- Since:
- Ant 1.8.0
 
 - 
setUnlesspublic void setUnless(java.lang.String cond) Sets the unless attribute. This attribute and the "if" attribute are used to validate the name, based on the existence of the property or the value of the evaluated property expression.- Parameters:
- cond- A property name or expression. If the expression evaluates to true or a property of its value is present, the name is invalid.
 
 - 
getNamepublic java.lang.String getName() - Returns:
- the name attribute.
 
 - 
evalNamepublic java.lang.String evalName(Project p) This validates the name - checks the if and unless properties.- Parameters:
- p- the current project, used to check the presence or absence of a property.
- Returns:
- the name attribute or null if the "if" or "unless" properties are not/are set.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
- Returns:
- a printable form of this object.
 
 
- 
 
-