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

public abstract Class BaseModelAction

extends Action
Class Inheritance
Known Direct Subclasses
ch.qos.logback.core.joran.action.DefinePropertyAction, ch.qos.logback.core.joran.action.EventEvaluatorAction, ch.qos.logback.core.joran.action.ImportAction, ch.qos.logback.core.joran.action.ParamAction, ch.qos.logback.core.joran.action.PropertyAction, ch.qos.logback.core.joran.action.SequenceNumberGeneratorAction, ch.qos.logback.core.joran.action.SerializeModelAction, ch.qos.logback.core.joran.action.ShutdownHookAction, ch.qos.logback.core.joran.action.SiftAction, ch.qos.logback.core.joran.action.StatusListenerAction, ch.qos.logback.core.joran.action.TimestampAction, ch.qos.logback.core.joran.conditional.ElseAction, ch.qos.logback.core.joran.conditional.IfAction, ch.qos.logback.core.joran.conditional.ThenAction, ch.qos.logback.core.joran.action.AppenderAction, ch.qos.logback.core.joran.action.AppenderRefAction
Imports
org.xml.sax.Attributes, ch.qos.logback.core.joran.spi.ActionException, .SaxEventInterpretationContext, ch.qos.logback.core.model.Model

Field Summary

Modifier and TypeField and Description
pack-priv Model
pack-priv boolean
pack-priv Model
Inherited from ch.qos.logback.core.joran.action.Action:
ACTION_CLASS_ATTRIBUTECLASS_ATTRIBUTEFILE_ATTRIBUTEKEY_ATTRIBUTENAME_ATTRIBUTEPATTERN_ATTRIBUTESCOPE_ATTRIBUTEVALUE_ATTRIBUTE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
begin(SaxEventInterpretationContext saxEventInterpretationContext, String name, Attributes attributes)

Implements abstract ch.qos.logback.core.joran.action.Action.begin.

Called when the parser encounters an element matching a Pattern.
public void
body(SaxEventInterpretationContext ec, String body)

Overrides ch.qos.logback.core.joran.action.Action.body.

Called to pass the body (as text) contained within an element.
protected abstract Model
buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)

public void
end(SaxEventInterpretationContext saxEventInterpretationContext, String name)

Implements abstract ch.qos.logback.core.joran.action.Action.end.

protected boolean
validPreconditions(SaxEventInterpretationContext intercon, String name, Attributes attributes)

Validate preconditions of this action.

Inherited from ch.qos.logback.core.joran.action.Action:
atLinegetColumnNumbergetLineColStrgetLineNumbernearLinetoString

Field Detail

currentModelback to summary
pack-priv Model currentModel
inErrorback to summary
pack-priv boolean inError
parentModelback to summary
pack-priv Model parentModel

Constructor Detail

BaseModelActionback to summary
public BaseModelAction()

Method Detail

beginback to summary
public void begin(SaxEventInterpretationContext saxEventInterpretationContext, String name, Attributes attributes) throws ActionException

Implements abstract ch.qos.logback.core.joran.action.Action.begin.

Doc from ch.qos.logback.core.joran.action.Action.begin.

Called when the parser encounters an element matching a Pattern.

Annotations
@Override
bodyback to summary
public void body(SaxEventInterpretationContext ec, String body) throws ActionException

Overrides ch.qos.logback.core.joran.action.Action.body.

Doc from ch.qos.logback.core.joran.action.Action.body.

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

Annotations
@Override
buildCurrentModelback to summary
protected abstract Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)
endback to summary
public void end(SaxEventInterpretationContext saxEventInterpretationContext, String name) throws ActionException

Implements abstract ch.qos.logback.core.joran.action.Action.end.

Annotations
@Override
validPreconditionsback to summary
protected boolean validPreconditions(SaxEventInterpretationContext intercon, String name, Attributes attributes)

Validate preconditions of this action. By default, true is returned. Subclasses should override appropriately.