io.github.dumijdev.dpxml.model.Node Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dp-xml Show documentation
Show all versions of dp-xml Show documentation
A Java lib to convert xml to POJO and POJO to xml
package io.github.dumijdev.dpxml.model;
import java.util.List;
public interface Node {
String name();
Node parent();
List children();
Node addChild(String name, Node node);
Node child(String name);
Attribute attribute(String name);
Node addAttribute(Attribute attribute);
Node addAttribute(String name, String value);
List attributes();
boolean isMissing();
String content();
List children(String name);
String namespace();
String asXml();
interface Attribute {
String name();
String value();
}
}