org.zwobble.mammoth.internal.html.HtmlSelfClosingElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mammoth Show documentation
Show all versions of mammoth Show documentation
Convert Word documents to simple and clean HTML
package org.zwobble.mammoth.internal.html;
import java.util.Map;
public class HtmlSelfClosingElement implements HtmlNode {
private final String tagName;
private final Map attributes;
public HtmlSelfClosingElement(String tagName, Map attributes) {
this.tagName = tagName;
this.attributes = attributes;
}
public String getTagName() {
return tagName;
}
public Map getAttributes() {
return attributes;
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
@Override
public T accept(Mapper visitor) {
return visitor.visit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy