Class ImplicitAction

All Implemented Interfaces:
ContextAware
Direct Known Subclasses:
NestedBasicPropertyIA, NestedComplexPropertyIA

public abstract class ImplicitAction extends Action
ImplcitActions are like normal (explicit) actions except that are applied by the parser when no other pattern applies. Since there can be many implicit actions, each action is asked whether it applies in the given context. The first implicit action to respond positively is then applied. See also the isApplicable(ch.qos.logback.core.joran.spi.ElementPath, org.xml.sax.Attributes, ch.qos.logback.core.joran.spi.InterpretationContext) method.
Author:
Ceki Gülcü
  • Constructor Details

    • ImplicitAction

      public ImplicitAction()
  • Method Details

    • isApplicable

      public abstract boolean isApplicable(ElementPath currentElementPath, Attributes attributes, InterpretationContext ec)
      Check whether this implicit action is appropriate in the current context.
      Parameters:
      currentElementPath - This pattern contains the tag name of the current element being parsed at the top of the stack.
      attributes - The attributes of the current element to process.
      ec -
      Returns:
      Whether the implicit action is applicable in the current context