Package org.ehrbase.webtemplate.util
Class WebTemplateUtils
- java.lang.Object
-
- org.ehrbase.webtemplate.util.WebTemplateUtils
-
public class WebTemplateUtils extends Object
Convenience methods for working with Web Templates.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<WebTemplateNode>getTrueChildrenElement(WebTemplateNode node)Return the list of "true" children for the node.static booleanisChoiceDvCodedTextAndDvText(WebTemplateNode node)Return whether the node is a choice betweenDV_CODED_TEXTandDV_TEXT.
-
-
-
Method Detail
-
isChoiceDvCodedTextAndDvText
public static boolean isChoiceDvCodedTextAndDvText(WebTemplateNode node)
Return whether the node is a choice betweenDV_CODED_TEXTandDV_TEXT.- Parameters:
node- the node to check- Returns:
trueif the provided input is choice;falseotherwise
-
getTrueChildrenElement
public static List<WebTemplateNode> getTrueChildrenElement(WebTemplateNode node)
Return the list of "true" children for the node.- Parameters:
node- the node to check- Returns:
- the list of "true" children
-
-