GfoTreeBldr_fxt.java 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. XOWA: the XOWA Offline Wiki Application
  3. Copyright (C) 2012 gnosygnu@gmail.com
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package gplx;
  16. public class GfoTreeBldr_fxt {
  17. public List_adp Atrs() {return atrs;} List_adp atrs = List_adp_.New();
  18. public List_adp Subs() {return subs;} List_adp subs = List_adp_.New();
  19. public GfoTreeBldr_fxt atr_(Object key, Object val) {
  20. atrs.Add(new Object[] {key, val});
  21. return this;
  22. }
  23. public GfoTreeBldr_fxt sub_(GfoTreeBldr_fxt... ary) {
  24. for (GfoTreeBldr_fxt sub : ary)
  25. subs.Add(sub);
  26. return this;
  27. }
  28. public static GfoTreeBldr_fxt new_() {return new GfoTreeBldr_fxt();} GfoTreeBldr_fxt() {}
  29. }