Class XmlElement
java.lang.Object
com.northconcepts.datapipeline.xml.builder.XmlNode
com.northconcepts.datapipeline.xml.builder.XmlNodeContainer
com.northconcepts.datapipeline.xml.builder.XmlElement
An element in an
XmlTemplate whose name is an expression; holds attributes and child nodes.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionXmlElement(XmlNodeContainer parent, String name) Creates an element named by evaluatingname, without adding it toparentasXmlNodeContainer.element(String)does. -
Method Summary
Modifier and TypeMethodDescriptionAdds an attribute whose name and value are expressions (quote literal text) and returns this element.protected intReturns how many elements enclose this node, including itself if it is an element; used for indentation.getName()protected voidwriteEndImpl(ExpressionContext context, CodeWriter writer) Writes this node's closing output, such as an element's end tag, after its children are written.protected voidwriteStartImpl(ExpressionContext context, CodeWriter writer) Writes this node's opening output, such as an element's start tag or a text node's content.Methods inherited from class com.northconcepts.datapipeline.xml.builder.XmlNodeContainer
add, detail, element, getChildNodes, getLastChildNodeElementDepth, getNodes, hasChildNodes, text, whenMethods inherited from class com.northconcepts.datapipeline.xml.builder.XmlNode
isMarker, writeEnd, writeStart
-
Constructor Details
-
XmlElement
Creates an element named by evaluatingname, without adding it toparentasXmlNodeContainer.element(String)does.
-
-
Method Details
-
getName
-
getAttributes
-
attribute
Adds an attribute whose name and value are expressions (quote literal text) and returns this element. -
getElementDepth
protected int getElementDepth()Description copied from class:XmlNodeReturns how many elements enclose this node, including itself if it is an element; used for indentation.- Overrides:
getElementDepthin classXmlNode
-
writeStartImpl
Description copied from class:XmlNodeWrites this node's opening output, such as an element's start tag or a text node's content.- Specified by:
writeStartImplin classXmlNode- Throws:
Throwable
-
writeEndImpl
Description copied from class:XmlNodeWrites this node's closing output, such as an element's end tag, after its children are written.- Specified by:
writeEndImplin classXmlNode- Throws:
Throwable
-