code: public void addRuleInstances (String prefix, Digester dig)
      {
          // this creates the appropriate instance when we encounter our
          // prefix tag
          dig.addRule(prefix, new Rule() {
              @Override public void begin (String namespace, String name,
                                 Attributes attributes) throws Exception {
                  digester.push(createMisoSceneModel());
              }
              @Override public void end (String namespace, String name) throws Exception {
                  digester.pop();
              }
          });
  
          // set up rules to parse and set our fields
          dig.addRule(prefix + "/swidth", new SetFieldRule("swidth"));
          dig.addRule(prefix + "/sheight", new SetFieldRule("sheight"));
          dig.addRule(prefix + "/defTileSet", new SetFieldRule("defTileSet"));
  
          String sprefix = prefix + "/sections/section";
          dig.addObjectCreate(sprefix, Section.class.getName());
          dig.addRule(sprefix, new SetPropertyFieldsRule());
          dig.addRule(sprefix + "/base", new SetFieldRule("baseTileIds"));
          addObjectExtractor(dig, "objects", sprefix, "addObject");
          dig.addSetNext(sprefix, "setSection", Section.class.getName());
      }
docs: documentation inherited from interface