Top Description Fields Constructors Methods
org.apache.tools.ant.types

public Class LogLevel

extends EnumeratedAttribute
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.taskdefs.Echo.EchoLevel, org.apache.tools.ant.taskdefs.Recorder.VerbosityLevelChoices
Imports
org.apache.tools.ant.Project

The enumerated values for Ant's log level.

Field Summary

Modifier and TypeField and Description
public static final LogLevel
DEBUG

DEBUG loglevel constant.

public static final LogLevel
ERR

ERR loglevel constant.

public static final LogLevel
INFO

INFO loglevel constant.

private static int[]
levels

mapping of enumerated values to log levels

public static final LogLevel
VERBOSE

VERBOSE loglevel constant.

public static final LogLevel
WARN

WARN loglevel constant.

Inherited from org.apache.tools.ant.types.EnumeratedAttribute:
value

Constructor Summary

AccessConstructor and Description
public
LogLevel()

Public constructor.

private

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the level
getLevel
()

get the level of the echo of the current value

public String[]

Returns:

the strings allowed for the level attribute
getValues
()

Implements abstract org.apache.tools.ant.types.EnumeratedAttribute.getValues.

This is the only method a subclass needs to implement.
Inherited from org.apache.tools.ant.types.EnumeratedAttribute:
containsValuegetIndexgetInstancegetValueindexOfValuesetValuetoString

Field Detail

DEBUGback to summary
public static final LogLevel DEBUG

DEBUG loglevel constant.

ERRback to summary
public static final LogLevel ERR

ERR loglevel constant.

INFOback to summary
public static final LogLevel INFO

INFO loglevel constant.

levelsback to summary
private static int[] levels

mapping of enumerated values to log levels

VERBOSEback to summary
public static final LogLevel VERBOSE

VERBOSE loglevel constant.

WARNback to summary
public static final LogLevel WARN

WARN loglevel constant.

Constructor Detail

LogLevelback to summary
public LogLevel()

Public constructor.

LogLevelback to summary
private LogLevel(String value)

Method Detail

getLevelback to summary
public int getLevel()

get the level of the echo of the current value

Returns:int

the level

getValuesback to summary
public String[] getValues()

Implements abstract org.apache.tools.ant.types.EnumeratedAttribute.getValues.

Doc from org.apache.tools.ant.types.EnumeratedAttribute.getValues.

This is the only method a subclass needs to implement.

Returns:String[]

the strings allowed for the level attribute

Annotations
@Override
See Also
EnumeratedAttribute#getValues