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. Action objects depend on this context to exchange and store information.
Author:
Ceki Gülcü
  • Constructor Details

  • Method Details

    • getSaxEventInterpreter

      public SaxEventInterpreter getSaxEventInterpreter()
    • peekModel

      public Model 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

      public void pushModel(Model m)
    • isModelStackEmpty

      public boolean isModelStackEmpty()
    • popModel

      public Model popModel()
    • getCopyOfModelStack

      public Stack<Model> getCopyOfModelStack()
    • getProperty

      public String getProperty(String key)
      If a key is found in propertiesMap then return it. Otherwise, delegate to the context.
      Specified by:
      getProperty in interface PropertyContainer
    • getCopyOfPropertyMap

      public Map<String,String> getCopyOfPropertyMap()
      Specified by:
      getCopyOfPropertyMap in interface PropertyContainer
    • subst

      public String subst(String value)