aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java')
-rw-r--r--src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java b/src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java
deleted file mode 100644
index e503766..0000000
--- a/src/main/java/org/zwobble/mammoth/styles/HtmlPathElement.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.zwobble.mammoth.styles;
-
-import org.zwobble.mammoth.html.HtmlElement;
-import org.zwobble.mammoth.html.HtmlNode;
-
-import java.util.List;
-import java.util.Map;
-
-import static org.zwobble.mammoth.util.MammothLists.list;
-import static org.zwobble.mammoth.util.MammothMaps.map;
-
-public class HtmlPathElement {
- public static HtmlPathElement fresh(String tagName) {
- return new HtmlPathElement(list(tagName), map(), false);
- }
-
- public static HtmlPathElement collapsible(String tagName) {
- return collapsible(tagName, map());
- }
-
- public static HtmlPathElement collapsible(String tagName, Map<String, String> attributes) {
- return new HtmlPathElement(list(tagName), attributes, true);
- }
-
- private final List<String> tagNames;
- private final Map<String, String> attributes;
- private final boolean isCollapsible;
-
- public HtmlPathElement(List<String> tagNames, Map<String, String> attributes, boolean isCollapsible) {
- this.tagNames = tagNames;
- this.attributes = attributes;
- this.isCollapsible = isCollapsible;
- }
-
- public List<HtmlNode> wrap(List<HtmlNode> nodes) {
- return list(new HtmlElement(tagNames, attributes, nodes, isCollapsible));
- }
-}