作業部屋の使い方を試しています。
(empty log message)
| @@ -42,6 +42,28 @@ | ||
| 42 | 42 | /* ---------------------------------------------------------------------- * |
| 43 | 43 | * static 処理 |
| 44 | 44 | * ---------------------------------------------------------------------- */ |
| 45 | + public static class Context { | |
| 46 | + public Class columnClass; | |
| 47 | + public String columnName; | |
| 48 | + public String columnNameJp; | |
| 49 | + | |
| 50 | + public Context(Class columnClass, String columnName, String columnNameJp) { | |
| 51 | + this.columnClass = columnClass; | |
| 52 | + this.columnName = columnName; | |
| 53 | + this.columnNameJp = columnNameJp; | |
| 54 | + } | |
| 55 | + } | |
| 56 | + | |
| 57 | + public static final Context[] context = { | |
| 58 | + /* 0 */ new Context(String.class , "item" , "項目名"), | |
| 59 | + /* 1 */ new Context(String.class , "htmltag" , "タグ"), | |
| 60 | + /* 2 */ new Context(String.class , "htmlid" , "ID"), | |
| 61 | + /* 3 */ new Context(String.class , "htmlclass" , "クラス"), | |
| 62 | + /* 4 */ new Context(String.class , "around" , "位置"), | |
| 63 | + /* 5 */ new Context(String.class , "regexp" , "抽出条件") | |
| 64 | + }; | |
| 65 | + | |
| 66 | + /* ---------------------------------------------------------------------- */ | |
| 45 | 67 | private static ArrayList<SearchData> slist = new ArrayList<>(); |
| 46 | 68 | |
| 47 | 69 | public static void addSearchData( |
| @@ -162,5 +184,17 @@ | ||
| 162 | 184 | this.around = ""; |
| 163 | 185 | this.regexp = ""; |
| 164 | 186 | } |
| 165 | - | |
| 187 | + | |
| 188 | + public Object[] getObjData() { | |
| 189 | + Object[] obj = { | |
| 190 | + /* 0 */ getitem(), // 項目名 | |
| 191 | + /* 1 */ getHtmltag(), // タグ | |
| 192 | + /* 2 */ getHtmlid(), // ID | |
| 193 | + /* 3 */ getHtmlclass(), // クラス | |
| 194 | + /* 4 */ getaround(), // 位置 | |
| 195 | + /* 5 */ getregexp() // 抽出条件 | |
| 196 | + }; | |
| 197 | + return obj; | |
| 198 | + } | |
| 199 | + | |
| 166 | 200 | } |