Module org.tquadrat.foundation.xml
Class XMLElementFactoryBase
java.lang.Object
org.tquadrat.foundation.xml.builder.spi.XMLElementFactoryBase
- All Implemented Interfaces:
XMLElementFactory
@ClassVersion(sourceVersion="$Id: XMLElementFactoryBase.java 1030 2022-04-06 13:42:02Z tquadrat $")
@API(status=MAINTAINED,
since="0.0.5")
public abstract non-sealed class XMLElementFactoryBase
extends Object
implements XMLElementFactory
The default implementation of the interface
XMLElementFactory
.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: XMLElementFactoryBase.java 1030 2022-04-06 13:42:02Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.xml.builder.spi.XMLElementFactoryBase"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XMLElementFactoryBase[]
An empty array ofXMLElementFactoryImpl
objects.The namespace that is used by this element factory. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a newXMLElementFactoryImpl
instance that does not use a namespace.protected
XMLElementFactoryBase
(Namespace namespace) Creates a newXMLElementFactoryImpl
instance that uses the given namespace. -
Method Summary
Modifier and TypeMethodDescriptionReturns the namespace this XML element factory was created with.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tquadrat.foundation.xml.builder.XMLElementFactory
composeElementName, createXMLElement, createXMLElement, createXMLElement, createXMLElement, createXMLElement, createXMLElement, getPrefix
-
Field Details
-
Constructor Details
-
XMLElementFactoryBase
protected XMLElementFactoryBase()Creates a newXMLElementFactoryImpl
instance that does not use a namespace. -
XMLElementFactoryBase
Creates a newXMLElementFactoryImpl
instance that uses the given namespace.- Parameters:
namespace
- The namespace that is used by this XML element factory.
-
-
Method Details
-
getNamespace
Returns the namespace this XML element factory was created with.- Specified by:
getNamespace
in interfaceXMLElementFactory
- Returns:
- An instance of
Optional
that holds the namespace.
-