org.apache.tools.ant.types
Class PatternSet.NameEntry
java.lang.Object
org.apache.tools.ant.types.PatternSet.NameEntry
- PatternSet
public class PatternSet.NameEntry
extends java.lang.Object
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).
String | evalName(Project p) - This validates the name - checks the if and unless
properties.
|
String | getName()
|
void | setIf(String cond) - Sets the if attribute.
|
void | setName(String name) - Sets the name pattern.
|
void | setUnless(String cond) - Sets the unless attribute.
|
String | toString()
|
evalName
public String evalName(Project p)
This validates the name - checks the if and unless
properties.
p
- the current project, used to check the presence or
absence of a property.
- the name attribute or null if the "if" or "unless"
properties are not/are set.
getName
public String getName()
setIf
public void setIf(String cond)
Sets the if attribute. This attribute and the "unless"
attribute are used to validate the name, based in the
existence of the property.
cond
- A property name. If this property is not
present, the name is invalid.
setName
public void setName(String name)
Sets the name pattern.
name
- The pattern string.
setUnless
public void setUnless(String cond)
Sets the unless attribute. This attribute and the "if"
attribute are used to validate the name, based in the
existence of the property.
cond
- A property name. If this property is
present, the name is invalid.
toString
public String toString()
- a printable form of this object.
Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.