/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); for (TreeNode item: children) { if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); Iterator<TreeNode> items = children.iterator(); while (items.hasNext()) { TreeNode item = items.next(); if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); Iterator items = children.iterator(); while (items.hasNext()) { TreeNode item = (TreeNode) items.next(); if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); Iterator items = children.iterator(); while (items.hasNext()) { TreeNode item = (TreeNode) items.next(); if (name.equals(item.getName())) return (item); } return (null); }
/** * Return the first child node of this node with the specified name, * if there is one; otherwise, return <code>null</code>. * * @param name Name of the desired child element */ public TreeNode findChild(String name) { if (children == null) return (null); Iterator<TreeNode> items = children.iterator(); while (items.hasNext()) { TreeNode item = items.next(); if (name.equals(item.getName())) return (item); } return (null); }
/** * Return an Iterator over all children of this node that have the * specified name. If there are no such children, an empty Iterator * is returned. * * @param name Name used to select children */ public Iterator<TreeNode> findChildren(String name) { if (children == null) return (Collections.EMPTY_LIST.iterator()); ArrayList<TreeNode> results = new ArrayList<TreeNode>(); for (TreeNode item: children) { if (name.equals(item.getName())) results.add(item); } return (results.iterator()); }
/** * Return an Iterator over all children of this node that have the * specified name. If there are no such children, an empty Iterator * is returned. * * @param name Name used to select children */ public Iterator<TreeNode> findChildren(String name) { List<TreeNode> results; if (children == null) results = Collections.emptyList(); else { results = new ArrayList<TreeNode>(); for (TreeNode item: children) { if (name.equals(item.getName())) results.add(item); } } return results.iterator(); }
/** * Return an Iterator over all children of this node that have the * specified name. If there are no such children, an empty Iterator * is returned. * * @param name Name used to select children */ public Iterator<TreeNode> findChildren(String name) { List<TreeNode> results; if (children == null) results = Collections.emptyList(); else { results = new ArrayList<TreeNode>(); for (TreeNode item: children) { if (name.equals(item.getName())) results.add(item); } } return results.iterator(); }
/** * Return an Iterator over all children of this node that have the * specified name. If there are no such children, an empty Iterator * is returned. * * @param name Name used to select children */ public Iterator findChildren(String name) { if (children == null) return (Collections.EMPTY_LIST.iterator()); ArrayList results = new ArrayList(); Iterator items = children.iterator(); while (items.hasNext()) { TreeNode item = (TreeNode) items.next(); if (name.equals(item.getName())) results.add(item); } return (results.iterator()); }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }
private String[] createInitParam(TreeNode elem) throws JasperException { String[] initParam = new String[2]; Iterator list = elem.findChildren(); while (list.hasNext()) { TreeNode element = (TreeNode) list.next(); String tname = element.getName(); if ("param-name".equals(tname)) { initParam[0] = element.getBody(); } else if ("param-value".equals(tname)) { initParam[1] = element.getBody(); } else if ("description".equals(tname)) { ; // Do nothing } else { err.jspError("jsp.error.unknown.element.in.initParam", tname); } } return initParam; }