Module ch.qos.logback.core
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
public class SaxEventInterpretationContext extends ContextAwareBase implements PropertyContainer
An InterpretationContext contains the contextual state of a Joran parsing session.Actionobjects 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
Constructors Constructor Description SaxEventInterpretationContext(Context context, SaxEventInterpreter saxEventInterpreter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSubstitutionProperty(String key, String value)Stack<Model>getCopyOfModelStack()Map<String,String>getCopyOfPropertyMap()StringgetProperty(String key)If a key is found in propertiesMap then return it.SaxEventInterpretergetSaxEventInterpreter()booleanisModelStackEmpty()ModelpeekModel()Return the Model at the top of the model stack, may return null.ModelpopModel()voidpushModel(Model m)Stringsubst(String value)-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.PropertyContainer
addSubstitutionProperties
-
-
-
-
Constructor Detail
-
SaxEventInterpretationContext
public SaxEventInterpretationContext(Context context, SaxEventInterpreter saxEventInterpreter)
-
-
Method Detail
-
getSaxEventInterpreter
public SaxEventInterpreter getSaxEventInterpreter()
-
peekModel
public Model peekModel()
Return the Model at the top of the model stack, may return null.- Returns:
-
isModelStackEmpty
public boolean isModelStackEmpty()
-
getCopyOfModelStack
public Stack<Model> getCopyOfModelStack()
-
addSubstitutionProperty
public void addSubstitutionProperty(String key, String value)
- Specified by:
addSubstitutionPropertyin interfacePropertyContainer
-
getProperty
public String getProperty(String key)
If a key is found in propertiesMap then return it. Otherwise, delegate to the context.- Specified by:
getPropertyin interfacePropertyContainer
-
getCopyOfPropertyMap
public Map<String,String> getCopyOfPropertyMap()
- Specified by:
getCopyOfPropertyMapin interfacePropertyContainer
-
-