예제 #1
0
  static Option[] getOptions(String doc) {
    Vector options = new Vector();
    parser.parse(doc);
    while (parser.nextTag()) {
      String content = parser.getContent();
      String attrs = parser.getAttrs();
      Option option = new Option();
      option.buildAttrs(attrs);
      option.build(content);
      options.addElement(option);
    }

    Option[] result = new Option[options.size()];
    result = (Option[]) options.toArray(result);
    return result;
  }
예제 #2
0
 protected void build(String content) {
   option = Option.getOptions(content);
 }