PatternSet.NameEntry (Apache Ant API)
Date: 2008-06-27

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.types
Class PatternSet.NameEntry

    java.lang.Object
      org.apache.tools.ant.types.PatternSet.NameEntry

Enclosing class:
  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).

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.String cond)` Sets the if attribute.
`void` | `setName(java.lang.String name)` Sets the name pattern.
`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

### PatternSet.NameEntry

    public PatternSet.NameEntry()

Method Detail

### setName

    public void setName(java.lang.String name)

  Sets the name pattern.

  Parameters:
    `name` - The pattern string.

### setIf

    public void setIf(java.lang.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.

  Parameters:
    `cond` - A property name. If this property is not present, the name is invalid.

### setUnless

    public void setUnless(java.lang.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.

  Parameters:
    `cond` - A property name. If this property is present, the name is invalid.

### getName

    public java.lang.String getName()

  Returns:
    the name attribute.

### evalName

    public 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.

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`
  Returns:
    a printable form of this object.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD