Class XMLLib

  • Direct Known Subclasses:
    XMLLibImpl

    public abstract class XMLLib
    extends Object
    • Constructor Detail

      • XMLLib

        public XMLLib()
    • Method Detail

      • extractFromScopeOrNull

        public static XMLLib extractFromScopeOrNull​(Scriptable scope)
      • extractFromScope

        public static XMLLib extractFromScope​(Scriptable scope)
      • isXMLName

        public abstract boolean isXMLName​(Context cx,
                                          Object name)
      • escapeAttributeValue

        public abstract String escapeAttributeValue​(Object value)
        Escapes the reserved characters in a value of an attribute.
        Parameters:
        value - Unescaped text
        Returns:
        The escaped text
      • escapeTextValue

        public abstract String escapeTextValue​(Object value)
        Escapes the reserved characters in a value of a text node.
        Parameters:
        value - Unescaped text
        Returns:
        The escaped text
      • toDefaultXmlNamespace

        public abstract Object toDefaultXmlNamespace​(Context cx,
                                                     Object uriValue)
        Construct namespace for default xml statement.
      • setIgnoreComments

        public void setIgnoreComments​(boolean b)
      • setIgnoreWhitespace

        public void setIgnoreWhitespace​(boolean b)
      • setIgnoreProcessingInstructions

        public void setIgnoreProcessingInstructions​(boolean b)
      • setPrettyPrinting

        public void setPrettyPrinting​(boolean b)
      • setPrettyIndent

        public void setPrettyIndent​(int i)
      • isIgnoreComments

        public boolean isIgnoreComments()
      • isIgnoreProcessingInstructions

        public boolean isIgnoreProcessingInstructions()
      • isIgnoreWhitespace

        public boolean isIgnoreWhitespace()
      • isPrettyPrinting

        public boolean isPrettyPrinting()
      • getPrettyIndent

        public int getPrettyIndent()