Class XmlNode

java.lang.Object
org.mozilla.javascript.xmlimpl.XmlNode
All Implemented Interfaces:
Serializable

class XmlNode extends Object implements Serializable
  • Field Details

  • Constructor Details

    • XmlNode

      private XmlNode()
  • Method Details

    • getUserData

      private static XmlNode getUserData(Node node)
    • setUserData

      private static void setUserData(Node node, XmlNode wrap)
    • createImpl

      private static XmlNode createImpl(Node node)
    • newElementWithText

      static XmlNode newElementWithText(XmlProcessor processor, XmlNode reference, XmlNode.QName qname, String value)
    • createText

      static XmlNode createText(XmlProcessor processor, String value)
    • createElementFromNode

      static XmlNode createElementFromNode(Node node)
    • createElement

      static XmlNode createElement(XmlProcessor processor, String namespaceUri, String xml) throws SAXException
      Throws:
      SAXException
    • createEmpty

      static XmlNode createEmpty(XmlProcessor processor)
    • copy

      private static XmlNode copy(XmlNode other)
    • debug

      String debug()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getXml

      XML getXml()
    • setXml

      void setXml(XML xml)
    • getChildCount

      int getChildCount()
    • parent

      XmlNode parent()
    • getChildIndex

      int getChildIndex()
    • removeChild

      void removeChild(int index)
    • toXmlString

      String toXmlString(XmlProcessor processor)
    • ecmaValue

      String ecmaValue()
    • deleteMe

      void deleteMe()
    • normalize

      void normalize()
    • insertChildAt

      void insertChildAt(int index, XmlNode node)
    • insertChildrenAt

      void insertChildrenAt(int index, XmlNode[] nodes)
    • getChild

      XmlNode getChild(int index)
    • hasChildElement

      boolean hasChildElement()
    • isSameNode

      boolean isSameNode(XmlNode other)
    • toUri

      private String toUri(String ns)
    • addNamespaces

      private void addNamespaces(XmlNode.Namespaces rv, Element element)
    • getAllNamespaces

      private XmlNode.Namespaces getAllNamespaces()
    • getInScopeNamespaces

      XmlNode.Namespace[] getInScopeNamespaces()
    • getNamespaceDeclarations

      XmlNode.Namespace[] getNamespaceDeclarations()
    • getNamespaceDeclaration

      XmlNode.Namespace getNamespaceDeclaration(String prefix)
    • getNamespaceDeclaration

      XmlNode.Namespace getNamespaceDeclaration()
    • copy

      final XmlNode copy()
    • isParentType

      final boolean isParentType()
    • isTextType

      final boolean isTextType()
    • isAttributeType

      final boolean isAttributeType()
    • isProcessingInstructionType

      final boolean isProcessingInstructionType()
    • isCommentType

      final boolean isCommentType()
    • isElementType

      final boolean isElementType()
    • renameNode

      final void renameNode(XmlNode.QName qname)
    • invalidateNamespacePrefix

      void invalidateNamespacePrefix()
    • declareNamespace

      private void declareNamespace(Element e, String prefix, String uri)
    • declareNamespace

      void declareNamespace(String prefix, String uri)
    • getDefaultNamespace

      private XmlNode.Namespace getDefaultNamespace()
    • getExistingPrefixFor

      private String getExistingPrefixFor(XmlNode.Namespace namespace)
    • getNodeNamespace

      private XmlNode.Namespace getNodeNamespace()
    • getNamespace

      XmlNode.Namespace getNamespace()
    • removeNamespace

      void removeNamespace(XmlNode.Namespace namespace)
    • setProcessingInstructionName

      private void setProcessingInstructionName(String localName)
    • setLocalName

      final void setLocalName(String localName)
    • getQname

      final XmlNode.QName getQname()
    • addMatchingChildren

      void addMatchingChildren(XMLList result, XmlNode.Filter filter)
    • getMatchingChildren

      XmlNode[] getMatchingChildren(XmlNode.Filter filter)
    • getAttributes

      XmlNode[] getAttributes()
    • getAttributeValue

      String getAttributeValue()
    • setAttribute

      void setAttribute(XmlNode.QName name, String value)
    • replaceWith

      void replaceWith(XmlNode other)
    • ecmaToXMLString

      String ecmaToXMLString(XmlProcessor processor)
    • toDomNode

      Node toDomNode()