package org.zwobble.mammoth.internal.xml; import java.util.List; import java.util.Map; import static org.zwobble.mammoth.internal.util.Lists.list; import static org.zwobble.mammoth.internal.util.Maps.map; public class XmlNodes { public static XmlElement element(String name) { return element(name, list()); } public static XmlElement element(String name, Map attributes) { return element(name, attributes, list()); } public static XmlElement element(String name, List children) { return element(name, map(), children); } public static XmlElement element(String name, Map attributes, List children) { return new XmlElement(name, attributes, children); } public static XmlTextNode text(String value) { return new XmlTextNode(value); } }