4 ## public $!{package_}.G${tagUpper} find${tagUpper}By${attributeUpper}(String value) {
\r
6 #if( ${package_} != "" )
\r
7 public $!{package_}.I${tagUpper} find${tagUpper}By${attributeUpper}(String value) {
\r
9 public I${tagUpper} find${tagUpper}By${attributeUpper}(String value) {
\r
12 ## java.util.Iterator iter = ${tag}s_.iterator();
\r
13 ## java.util.ListIterator iter = ${tag}s_.listIterator();
\r
14 java.util.Iterator iter = _children.iterator();
\r
16 #if( ${package_} != "" )
\r
17 $!{package_}.I${tagUpper} each = null;
\r
19 I${tagUpper} each = null;
\r
22 while(iter.hasNext()) {
\r
24 Object next = iter.next();
\r
25 #if( ${package_} != "" )
\r
26 if(next instanceof $!{package_}.I${tagUpper}) {
\r
28 if(next instanceof I${tagUpper}) {
\r
31 #if( ${package_} != "" )
\r
32 //each = ($!{package_}.I${tagUpper})iter.next();
\r
33 each = ($!{package_}.I${tagUpper})next;
\r
35 //each = (I${tagUpper})iter.next();
\r
36 each = (I${tagUpper})next;
\r
39 String comparator = each.get${attributeUpper}();
\r
41 if(comparator.equals(value)) {
\r