org.xmlet.htmlapi.Text 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 Text extends AbstractElement, Z> {
private String text;
public Text() {
super("text");
}
public Text(Z parent, String text) {
super(parent, "text");
this.text = text;
}
public Text 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 Text self() {
return this;
}
public void accept(ElementVisitor visitor) {
visitor.visit(this);
}
public String getValue() {
return this.text;
}
public Text cloneElem() {
return (Text)this.clone(new Text());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy