Class DefinePropertyAction

    • Method Detail

      • 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