org.xmlet.htmlapi.Comment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of htmlApi Show documentation
Show all versions of htmlApi Show documentation
Uses XsdAsm to generate a fluent API that allows the creation of HTML5 documents.
The newest version!
package org.xmlet.htmlapi;
public class Comment extends AbstractElement, Z> {
private String text;
public Comment() {
super("text");
}
public Comment(Z parent, String text) {
super(parent, "text");
this.text = text;
}
public Comment addAttr(Attribute var1) {
throw new UnsupportedOperationException("Text element can't contain attributes.");
}
public Element addChild(Element var1) {
throw new UnsupportedOperationException("Text element can't contain children.");
}
public Comment self() {
return this;
}
public void accept(ElementVisitor visitor) {
visitor.visit(this);
}
public String getValue() {
return this.text;
}
public Comment cloneElem() {
return (Comment)this.clone(new Comment());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy