Module org.tquadrat.foundation.xml
Class XMLElementAdapter
java.lang.Object
org.tquadrat.foundation.xml.builder.internal.XMLElementImpl
org.tquadrat.foundation.xml.builder.spi.XMLElementAdapter
- All Implemented Interfaces:
Element
,XMLElement
@ClassVersion(sourceVersion="$Id: XMLElementAdapter.java 980 2022-01-06 15:29:19Z tquadrat $")
@API(status=MAINTAINED,
since="0.0.5")
public abstract non-sealed class XMLElementAdapter
extends XMLElementImpl
The abstract base class for specialised implementations of
XMLElement
.
Because it is derived from
XMLElementImpl
,
it supports attributes, namespaces, children, text, CDATA
and
comments.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: XMLElementAdapter.java 980 2022-01-06 15:29:19Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.xml.builder.spi.XMLElementAdapter"
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
XMLElement.Flags
-
Field Summary
Fields inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
EMPTY_XMLElement_ARRAY, NO_APPEND
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XMLElementAdapter
(String elementName) Creates a newXMLElementAdapter
instance.protected
XMLElementAdapter
(String elementName, Set<XMLElement.Flags> flags) Creates a newXMLElementAdapter
instance. -
Method Summary
Methods inherited from class org.tquadrat.foundation.xml.builder.internal.XMLElementImpl
addCDATA, addChild, addComment, addPredefinedMarkup, addText, getAttribute, getAttributes, getChildren, getElementName, getFlags, getNamespaces, getParent, getSortOrder, hasChildren, registerAttributeSequence, registerAttributeSequence, registerValidAttributes, registerValidChildren, retrieveValidAttributes, retrieveValidChildren, setAttribute, setNamespace, setNamespace, setNamespace, setNamespace, setNamespace, setParent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tquadrat.foundation.xml.builder.XMLElement
addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addCDATA, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, addText, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeIfNotEmpty, setAttributeIfNotEmpty, setId
-
Constructor Details
-
XMLElementAdapter
Creates a new
XMLElementAdapter
instance.The given element name is validated using the method that is provided by
XMLBuilderUtils.getElementNameValidator()
.The new element allows attributes and children, but will not validate them. It also allows text.
- Parameters:
elementName
- The element name.
-
XMLElementAdapter
Creates a new
XMLElementAdapter
instance.The given element name is validated using the method that is provided by
XMLBuilderUtils.getElementNameValidator()
.- Note:
-
- This constructor is used for the implementation of XML specialisations, like SVG or HTML (although this not really XML).
- Parameters:
elementName
- The element name.flags
- The configuration flags for the new element.- See Also:
-