Assertions.BaseAssertion (Apache Ant API)
Date: 2012-02-26

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 Assertions.BaseAssertion

    java.lang.Object
      org.apache.tools.ant.types.Assertions.BaseAssertion

Direct Known Subclasses:
  Assertions.DisabledAssertion, Assertions.EnabledAssertion

Enclosing class:
  Assertions

    public abstract static class Assertions.BaseAssertion

extends java.lang.Object

base class for our assertion elements.

Constructor Summary
`Assertions.BaseAssertion()`

Method Summary
`protected java.lang.String` | `getClassName()` what is the class name?
`abstract java.lang.String` | `getCommandPrefix()` get the prefix used to begin the command; -ea or -da.
`protected java.lang.String` | `getPackageName()` what is the package name?
`void` | `setClass(java.lang.String className)` name a class
`void` | `setPackage(java.lang.String packageName)` name a package
`java.lang.String` | `toCommand()` create a full command string from this class

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Assertions.BaseAssertion

    public Assertions.BaseAssertion()

Method Detail

### setClass

    public void setClass(java.lang.String className)

  name a class

  Parameters:
    `className` - a class name

### setPackage

    public void setPackage(java.lang.String packageName)

  name a package

  Parameters:
    `packageName` - a package name

### getClassName

    protected java.lang.String getClassName()

  what is the class name?

  Returns:
    classname or null
  See Also:
    `setClass(java.lang.String)`

### getPackageName

    protected java.lang.String getPackageName()

  what is the package name?

  Returns:
    package name or null
  See Also:
    `setPackage(java.lang.String)`

### getCommandPrefix

    public abstract java.lang.String getCommandPrefix()

  get the prefix used to begin the command; -ea or -da.

  Returns:
    prefix

### toCommand

    public java.lang.String toCommand()

  create a full command string from this class

  Returns:
    The command string
  Throws:
    `BuildException` - in case of trouble

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