java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
ch.qos.logback.core.joran.action.BaseModelAction
ch.qos.logback.core.joran.action.PropertyAction
- All Implemented Interfaces:
ContextAware
This class serves to build a model for properties which are to the ANT
<property> task which add/set properties of a given object.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.joran.action.Action
ACTION_CLASS_ATTRIBUTE, CLASS_ATTRIBUTE, FILE_ATTRIBUTE, KEY_ATTRIBUTE, NAME_ATTRIBUTE, PATTERN_ATTRIBUTE, SCOPE_ATTRIBUTE, VALUE_ATTRIBUTE
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Model
buildCurrentModel
(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes) protected boolean
validPreconditions
(SaxEventInterpretationContext interpretationContext, String localName, Attributes attributes) Validate preconditions of this action.Methods inherited from class ch.qos.logback.core.joran.action.BaseModelAction
begin, body, end
Methods inherited from class ch.qos.logback.core.joran.action.Action
atLine, getColumnNumber, getLineColStr, getLineNumber, nearLine, toString
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
PropertyAction
public PropertyAction()
-
-
Method Details
-
validPreconditions
protected boolean validPreconditions(SaxEventInterpretationContext interpretationContext, String localName, Attributes attributes) Description copied from class:BaseModelAction
Validate preconditions of this action. By default, true is returned. Subclasses should override appropriately.- Overrides:
validPreconditions
in classBaseModelAction
- Parameters:
interpretationContext
-localName
-attributes
-- Returns:
-
buildCurrentModel
protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes) - Specified by:
buildCurrentModel
in classBaseModelAction
-