Class XMLDocumentOf

  • All Implemented Interfaces:
    com.jcabi.xml.XML

    public final class XMLDocumentOf
    extends Object
    implements com.jcabi.xml.XML
    XML document of.
    Since:
    0.0.1
    Suppressed Checkstyle violations:
    AbbreviationAsWordInNameCheck (10 lines)
    • Constructor Detail

      • XMLDocumentOf

        public XMLDocumentOf​(com.jcabi.xml.XML other)
        Ctor.
        Parameters:
        other - Other xml
      • XMLDocumentOf

        public XMLDocumentOf​(Path path)
        Ctor.
        Parameters:
        path - Path to get file from
      • XMLDocumentOf

        public XMLDocumentOf​(Iterable<org.xembly.Directive> directives)
        Ctor.
        Parameters:
        directives - Xembly directives
      • XMLDocumentOf

        public XMLDocumentOf​(org.cactoos.Scalar<Path> path)
        Ctor.
        Parameters:
        path - Path to the file
      • XMLDocumentOf

        public XMLDocumentOf​(org.cactoos.Text text)
        Ctor.
        Parameters:
        text - Text.
    • Method Detail

      • xpath

        public List<String> xpath​(String xpath)
        Specified by:
        xpath in interface com.jcabi.xml.XML
      • nodes

        public List<com.jcabi.xml.XML> nodes​(String xpath)
        Specified by:
        nodes in interface com.jcabi.xml.XML
      • registerNs

        public com.jcabi.xml.XML registerNs​(String str,
                                            Object obj)
        Specified by:
        registerNs in interface com.jcabi.xml.XML
      • merge

        public com.jcabi.xml.XML merge​(NamespaceContext context)
        Specified by:
        merge in interface com.jcabi.xml.XML
      • node

        public Node node()
        Specified by:
        node in interface com.jcabi.xml.XML
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object