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
-
-
Constructor Summary
Constructors Constructor Description 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 booleanequals(Object obj)inthashCode()com.jcabi.xml.XMLmerge(NamespaceContext context)Nodenode()List<com.jcabi.xml.XML>nodes(String xpath)com.jcabi.xml.XMLregisterNs(String str, Object obj)StringtoString()List<String>xpath(String xpath)
-
-
-
Constructor Detail
-
XMLDocumentOf
public XMLDocumentOf(Path path)
Ctor.- Parameters:
path- Path to get file from
-
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:
nodesin interfacecom.jcabi.xml.XML
-
registerNs
public com.jcabi.xml.XML registerNs(String str, Object obj)
- Specified by:
registerNsin interfacecom.jcabi.xml.XML
-
merge
public com.jcabi.xml.XML merge(NamespaceContext context)
- Specified by:
mergein interfacecom.jcabi.xml.XML
-
node
public Node node()
- Specified by:
nodein interfacecom.jcabi.xml.XML
-
-