Package org.eolang.ineo
Class XMLDocumentOf
- java.lang.Object
-
- org.eolang.ineo.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 Summary
Constructors Constructor Description XMLDocumentOf(com.jcabi.xml.XML other)
Ctor.XMLDocumentOf(Iterable<org.xembly.Directive> directives)
Ctor.XMLDocumentOf(Path path)
Ctor.XMLDocumentOf(org.cactoos.Scalar<Path> path)
Ctor.XMLDocumentOf(org.cactoos.Text text)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
com.jcabi.xml.XML
merge(NamespaceContext context)
Node
node()
List<com.jcabi.xml.XML>
nodes(String xpath)
com.jcabi.xml.XML
registerNs(String str, Object obj)
String
toString()
List<String>
xpath(String xpath)
-
-
-
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
-
nodes
public List<com.jcabi.xml.XML> nodes(String xpath)
- Specified by:
nodes
in interfacecom.jcabi.xml.XML
-
registerNs
public com.jcabi.xml.XML registerNs(String str, Object obj)
- Specified by:
registerNs
in interfacecom.jcabi.xml.XML
-
merge
public com.jcabi.xml.XML merge(NamespaceContext context)
- Specified by:
merge
in interfacecom.jcabi.xml.XML
-
node
public Node node()
- Specified by:
node
in interfacecom.jcabi.xml.XML
-
-