Package ch.qos.logback.core.joran.spi
Class SaxEventInterpretationContext
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.spi.SaxEventInterpretationContext
- All Implemented Interfaces:
ContextAware,PropertyContainer
An InterpretationContext contains the contextual state of a Joran parsing
session.
Action objects depend on this context to exchange and store
information.- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionSaxEventInterpretationContext(Context context, SaxEventInterpreter saxEventInterpreter) -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) If a key is found in propertiesMap then return it.booleanactionDataStack contains ActionData instances We use a stack of ActionData objects in order to support nested elements which are handled by the same NestedComplexPropertyIA instance.popModel()voidMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
SaxEventInterpretationContext
-
-
Method Details
-
getSaxEventInterpreter
-
peekModel
actionDataStack contains ActionData instances We use a stack of ActionData objects in order to support nested elements which are handled by the same NestedComplexPropertyIA instance. We push a ActionData instance in the isApplicable method (if the action is applicable) and pop it in the end() method. The XML well-formedness property will guarantee that a push will eventually be followed by a corresponding pop. -
pushModel
-
isModelStackEmpty
public boolean isModelStackEmpty() -
popModel
-
getCopyOfModelStack
-
getProperty
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getPropertyin interfacePropertyContainer
-
getCopyOfPropertyMap
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-
subst
-