public abstract class AbstractTextElement extends AbstractExtension
AbstractExtension.AttributesHandlerlocalName, namespace| Constructor and Description |
|---|
AbstractTextElement() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper attrsHelper)
The default implementation does nothing, subclasses can override to handle
attributes.
|
TextConstruct |
getContent() |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
String namespace,
String localName,
Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
String |
getPlainTextContent() |
boolean |
isEmpty() |
void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setHtmlContent(String html) |
void |
setPlainTextContent(String text) |
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic boolean isEmpty()
public TextConstruct getContent()
public void setHtmlContent(String html)
public void setPlainTextContent(String text)
public String getPlainTextContent()
public void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes in class AbstractExtensiongenerator - attribute generatorprotected void consumeAttributes(AttributeHelper attrsHelper) throws ParseException
consumeAttributes in class AbstractExtensionattrsHelper - attribute helperParseException - from subclasses.public final XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs) throws ParseException
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class AbstractExtensionextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributesParseException - when an unexpected tag or badly-formatted
XML is detectedCopyright © 2012. All Rights Reserved.