コード例 #1
0
ファイル: Loop.java プロジェクト: ryanco/x12-parser
 /**
  * Checks if the Loop contains the specified child Loop. It will check the complete child
  * hierarchy.
  *
  * @param name name of a child loop
  * @return boolean
  */
 public boolean hasLoop(String name) {
   for (Loop l : this.childList()) {
     if (name.equals(l.getName())) {
       return true;
     }
     if (l.hasLoop(name)) {
       return true;
     }
   }
   return false;
 }