Class XmlConditionalNode
java.lang.Object
com.northconcepts.datapipeline.xml.builder.XmlNode
com.northconcepts.datapipeline.xml.builder.XmlNodeContainer
com.northconcepts.datapipeline.xml.builder.XmlConditionalNode
A group of template nodes written only when its logical expression is true; created by
XmlNodeContainer.when(String).-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildNodes(ExpressionContext context) Returns the children to write in the given context, or null for leaf nodes and for conditional nodes whose condition is false.booleanhasChildNodes(ExpressionContext context) Returns true if this node has children to write in the given context; a conditional node also requires its condition.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, getLastChildNodeElementDepth, getNodes, text, whenMethods inherited from class com.northconcepts.datapipeline.xml.builder.XmlNode
getElementDepth, isMarker, writeEnd, writeStart
-
Constructor Details
-
XmlConditionalNode
-
-
Method Details
-
getCondition
-
hasChildNodes
public boolean hasChildNodes(ExpressionContext context) Description copied from class:XmlNodeReturns true if this node has children to write in the given context; a conditional node also requires its condition.- Overrides:
hasChildNodesin classXmlNodeContainer
-
getChildNodes
Description copied from class:XmlNodeReturns the children to write in the given context, or null for leaf nodes and for conditional nodes whose condition is false.- Overrides:
getChildNodesin classXmlNodeContainer
-
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
-