Class AppenderAction

All Implemented Interfaces:
ContextAware

public class AppenderAction extends BaseModelAction
  • Constructor Details

  • Method Details

    • validPreconditions

      protected boolean validPreconditions(SaxEventInterpretationContext ic, String name, Attributes attributes)
      Description copied from class: BaseModelAction
      Validate preconditions of this action. By default, true is returned. Subclasses should override appropriately.
      Overrides:
      validPreconditions in class BaseModelAction
      Parameters:
      ic -
      name -
      attributes -
      Returns:
    • buildCurrentModel

      protected Model buildCurrentModel(SaxEventInterpretationContext interpretationContext, String name, Attributes attributes)
      Description copied from class: BaseModelAction
      Builds and returns a Model instance for the current XML element being processed.

      This method is called during the begin phase of XML processing to create a Model object that represents the current element. The returned model will be configured with the element's tag name, line number, and will be pushed onto the model stack.

      Specified by:
      buildCurrentModel in class BaseModelAction
      Parameters:
      interpretationContext - the context for interpreting SAX events, providing access to the model stack and other interpretation state
      name - the name of the XML element being processed
      attributes - the attributes of the XML element
      Returns:
      a new Model instance representing the current XML element