Top Description Fields Constructors Methods
ch.qos.logback.core.joran.action

public abstract Class Action

extends ContextAwareBase
Class Inheritance
Known Direct Subclasses
ch.qos.logback.core.joran.action.BaseModelAction, ch.qos.logback.core.joran.action.ContextPropertyAction, ch.qos.logback.core.joran.action.ConversionRuleAction, ch.qos.logback.core.joran.action.ImplicitModelAction, ch.qos.logback.core.joran.action.IncludeAction, ch.qos.logback.core.joran.action.NewRuleAction, ch.qos.logback.core.joran.action.NOPAction
Imports
org.xml.sax.Attributes, .Locator, ch.qos.logback.core.joran.spi.ActionException, .SaxEventInterpretationContext, .SaxEventInterpreter, ch.qos.logback.core.spi.ContextAwareBase

Most of the work for configuring logback is done by Actions.

Action methods are invoked as the XML file is parsed.

This class is largely inspired from the relevant class in the commons-digester project of the Apache Software Foundation.

Authors
Craig McClanahan, Christopher Lenz, Ceki Gülcü

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String
public abstract void
begin(SaxEventInterpretationContext intercon, String name, Attributes attributes)

Called when the parser encounters an element matching a Pattern.

public void
body(SaxEventInterpretationContext intercon, String body)

Called to pass the body (as text) contained within an element.

public abstract void
protected int
protected String
public static int
protected String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextgetDeclaredOrigingetStatusManagersetContext

Field Detail

ACTION_CLASS_ATTRIBUTEback to summary
public static final String ACTION_CLASS_ATTRIBUTE
CLASS_ATTRIBUTEback to summary
public static final String CLASS_ATTRIBUTE
FILE_ATTRIBUTEback to summary
public static final String FILE_ATTRIBUTE
KEY_ATTRIBUTEback to summary
public static final String KEY_ATTRIBUTE
NAME_ATTRIBUTEback to summary
public static final String NAME_ATTRIBUTE
PATTERN_ATTRIBUTEback to summary
public static final String PATTERN_ATTRIBUTE
SCOPE_ATTRIBUTEback to summary
public static final String SCOPE_ATTRIBUTE
VALUE_ATTRIBUTEback to summary
public static final String VALUE_ATTRIBUTE

Constructor Detail

Actionback to summary
public Action()

Method Detail

atLineback to summary
protected String atLine(SaxEventInterpretationContext intercon)
beginback to summary
public abstract void begin(SaxEventInterpretationContext intercon, String name, Attributes attributes) throws ActionException

Called when the parser encounters an element matching a Pattern.

bodyback to summary
public void body(SaxEventInterpretationContext intercon, String body) throws ActionException

Called to pass the body (as text) contained within an element.

endback to summary
public abstract void end(SaxEventInterpretationContext intercon, String name) throws ActionException
getColumnNumberback to summary
protected int getColumnNumber(SaxEventInterpretationContext intercon)
getLineColStrback to summary
protected String getLineColStr(SaxEventInterpretationContext intercon)
getLineNumberback to summary
public static int getLineNumber(SaxEventInterpretationContext intercon)
nearLineback to summary
protected String nearLine(SaxEventInterpretationContext intercon)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.