Interface ModelItemType

    • Method Detail

      • getId

        String getId()
        Retrieves the identifier of the parameter type
        Returns:
        the identifier of the parameter type
      • valueToSAX

        default void valueToSAX​(ContentHandler contentHandler,
                                String tagName,
                                Object value,
                                DataContext context)
                         throws SAXException
        Generates SAX events for the given value
        Parameters:
        contentHandler - the ContentHandler that will receive the SAX events
        tagName - the tag name of the SAX event to generate.
        value - the value to SAX
        context - The context of the data to SAX
        Throws:
        SAXException - if an error occurs during the SAX events generation
      • valueToSAXForEdition

        void valueToSAXForEdition​(ContentHandler contentHandler,
                                  String tagName,
                                  Object value,
                                  Optional<ViewItem> viewItem,
                                  DataContext context)
                           throws SAXException
        Generates SAX events for the given value in edition mode. This method exist for legacy purposes because some types have to be saxed as JSON
        Parameters:
        contentHandler - the ContentHandler that will receive the SAX events
        tagName - the tag name of the SAX event to generate.
        value - the value to SAX
        viewItem - The optional view item corresponding item that is currently saxed. This view item gives context for the SAX event that will be generated here.
        context - The context of the data to SAX
        Throws:
        SAXException - if an error occurs during the SAX events generation
      • valueToSAX

        void valueToSAX​(ContentHandler contentHandler,
                        String tagName,
                        Object value,
                        Optional<ViewItem> viewItem,
                        DataContext context)
                 throws SAXException
        Generates SAX events for the given value
        Parameters:
        contentHandler - the ContentHandler that will receive the SAX events
        tagName - the tag name of the SAX event to generate.
        value - the value to SAX
        viewItem - The optional view item corresponding item that is currently saxed. This view item gives context for the SAX event that will be generated here.
        context - The context of the data to SAX
        Throws:
        SAXException - if an error occurs during the SAX events generation