| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.PatternSet.NameEntry
public class PatternSet.NameEntry
inner 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 thru the use of the Available task) or value of an expression.
| Constructor Summary | |
|---|---|
| PatternSet.NameEntry() | |
| Method Summary | |
|---|---|
|  java.lang.String | evalName(Project p)This validates the name - checks the if and unless properties. | 
|  java.lang.String | getName() | 
|  void | setIf(java.lang.Object cond)Sets the if attribute. | 
|  void | setIf(java.lang.String cond)Sets the if attribute. | 
|  void | setName(java.lang.String name)Sets the name pattern. | 
|  void | setUnless(java.lang.Object cond)Sets the unless attribute. | 
|  void | setUnless(java.lang.String cond)Sets the unless attribute. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public PatternSet.NameEntry()
| Method Detail | 
|---|
public void setName(java.lang.String name)
name - The pattern string.public void setIf(java.lang.Object cond)
cond - A property name or expression.  If the
             expression evaluates to false or no property of
             its value is present, the name is invalid.public void setIf(java.lang.String cond)
cond - A property name or expression.  If the
             expression evaluates to false or no property of
             its value is present, the name is invalid.public void setUnless(java.lang.Object cond)
cond - A property name or expression.  If the
             expression evaluates to true or a property of
             its value is present, the name is invalid.public void setUnless(java.lang.String cond)
cond - A property name or expression.  If the
             expression evaluates to true or a property of
             its value is present, the name is invalid.public java.lang.String getName()
public java.lang.String evalName(Project p)
p - the current project, used to check the presence or
          absence of a property.
public java.lang.String toString()
toString in class java.lang.Object| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||