org.apache.tools.ant.types

Class Assertions.BaseAssertion

public abstract static class Assertions.BaseAssertion extends Object

base class for our assertion elements.
Method Summary
protected StringgetClassName()
what is the class name?
abstract StringgetCommandPrefix()
get the prefix used to begin the command; -ea or -da.
protected StringgetPackageName()
what is the package name?
voidsetClass(String className)
name a class
voidsetPackage(String packageName)
name a package
StringtoCommand()
create a full command string from this class

Method Detail

getClassName

protected String getClassName()
what is the class name?

Returns: classname or null

See Also: BaseAssertion

getCommandPrefix

public abstract String getCommandPrefix()
get the prefix used to begin the command; -ea or -da.

Returns: prefix

getPackageName

protected String getPackageName()
what is the package name?

Returns: package name or null

See Also: BaseAssertion

setClass

public void setClass(String className)
name a class

Parameters: className

setPackage

public void setPackage(String packageName)
name a package

Parameters: packageName

toCommand

public String toCommand()
create a full command string from this class

Returns: The command string

Throws: BuildException in case of trouble

Copyright