Class XmlTreeRenderer.XmlRenderingConfig

    • Constructor Detail

      • XmlRenderingConfig

        public XmlRenderingConfig()
    • Method Detail

      • handleAttributeFetchException

        protected void handleAttributeFetchException​(Attribute attr,
                                                     Exception e)
        Handle an exception that occurred while fetching the value of an attribute. The default does nothing, it's meant to be overridden if you want to handle it.
        Parameters:
        attr - Attribute for which the fetch failed
        e - Exception that occurred
      • takeAttribute

        protected boolean takeAttribute​(Node node,
                                        Attribute attribute)
        Returns true if the attribute should be included in the element corresponding to the given node. Subclasses can override this method to filter out some attributes.
        Parameters:
        node - Node owning the attribute
        attribute - Attribute to test
      • singleQuoteAttributes

        public XmlTreeRenderer.XmlRenderingConfig singleQuoteAttributes​(boolean useSingleQuote)
        Sets the delimiters use for attribute values. The default is to use single quotes.
        Parameters:
        useSingleQuote - True for single quotes, false for double quotes