mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.6.3.1'
This commit is contained in:
@@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
public interface Xob_cmd extends GfoInvkAble {
|
||||
public interface Xob_cmd extends Gfo_invk {
|
||||
String Cmd_key();
|
||||
Xob_cmd Cmd_clone(Xob_bldr bldr, Xowe_wiki wiki);
|
||||
void Cmd_init(Xob_bldr bldr);
|
||||
|
||||
@@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
public abstract class Xob_cmd__base implements Xob_cmd, GfoInvkAble {
|
||||
public abstract class Xob_cmd__base implements Xob_cmd, Gfo_invk {
|
||||
protected final Xoae_app app; protected final Xob_bldr bldr; protected Xowe_wiki wiki; protected final Gfo_usr_dlg usr_dlg;
|
||||
public Xob_cmd__base(Xob_bldr bldr, Xowe_wiki wiki) {
|
||||
this.bldr = bldr;
|
||||
@@ -31,5 +31,5 @@ public abstract class Xob_cmd__base implements Xob_cmd, GfoInvkAble {
|
||||
@gplx.Virtual public void Cmd_bgn(Xob_bldr bldr) {}
|
||||
@gplx.Virtual public void Cmd_end() {}
|
||||
@gplx.Virtual public void Cmd_term() {}
|
||||
@gplx.Virtual public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {return GfoInvkAble_.Rv_unhandled;}
|
||||
@gplx.Virtual public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {return Gfo_invk_.Rv_unhandled;}
|
||||
}
|
||||
|
||||
@@ -24,5 +24,5 @@ public abstract class Xob_cmd_base implements Xob_cmd {
|
||||
@gplx.Virtual public void Cmd_run() {}
|
||||
@gplx.Virtual public void Cmd_end() {}
|
||||
@gplx.Virtual public void Cmd_term() {}
|
||||
@gplx.Virtual public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {return GfoInvkAble_.Rv_unhandled;}
|
||||
@gplx.Virtual public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {return Gfo_invk_.Rv_unhandled;}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
import gplx.core.flds.*; import gplx.core.ios.*;
|
||||
public abstract class Xob_idx_base extends Xob_itm_basic_base implements Xob_cmd, GfoInvkAble {
|
||||
public abstract class Xob_idx_base extends Xob_itm_basic_base implements Xob_cmd, Gfo_invk {
|
||||
public abstract String Cmd_key();
|
||||
public Gfo_fld_wtr Fld_wtr() {return fld_wtr;} Gfo_fld_wtr fld_wtr = Gfo_fld_wtr.xowa_();
|
||||
public Gfo_fld_rdr Fld_rdr() {return fld_rdr;} Gfo_fld_rdr fld_rdr = Gfo_fld_rdr.xowa_();
|
||||
|
||||
@@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
public abstract class Xob_itm_basic_base implements GfoInvkAble {
|
||||
public abstract class Xob_itm_basic_base implements Gfo_invk {
|
||||
protected Xoae_app app; protected Xob_bldr bldr; protected Xowe_wiki wiki; protected Gfo_usr_dlg usr_dlg;
|
||||
public void Cmd_ctor(Xob_bldr bldr, Xowe_wiki wiki) {
|
||||
this.bldr = bldr;
|
||||
@@ -30,6 +30,6 @@ public abstract class Xob_itm_basic_base implements GfoInvkAble {
|
||||
@gplx.Virtual protected void Cmd_ctor_end(Xob_bldr bldr, Xowe_wiki wiki) {}
|
||||
@gplx.Virtual public Object Invk(GfsCtx ctx, int ikey, String k, GfoMsg m) {
|
||||
if (ctx.Match(k, Invk_owner)) return bldr.Cmd_mgr();
|
||||
else return GfoInvkAble_.Rv_unhandled;
|
||||
else return Gfo_invk_.Rv_unhandled;
|
||||
} private static final String Invk_owner = "owner";
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public abstract class Xob_itm_dump_base extends Xob_itm_basic_base {
|
||||
if (sort_mem_len == Int_.Neg1) sort_mem_len = bldr.Sort_mem_len();
|
||||
if (dump_fil_len == Int_.Neg1) dump_fil_len = bldr.Dump_fil_len();
|
||||
if (make_fil_len == Int_.Neg1) make_fil_len = bldr.Make_fil_len();
|
||||
dump_bfr = Bry_bfr.new_(dump_fil_len);
|
||||
dump_bfr = Bry_bfr_.New_w_size(dump_fil_len);
|
||||
temp_dir = wiki.Fsys_mgr().Tmp_dir().GenSubDir(tmp_dir_key);
|
||||
if (make_dir_val == null) make_dir = temp_dir.GenSubDir("make");
|
||||
else make_dir = make_dir_val;
|
||||
|
||||
@@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
public interface Xob_page_wkr extends GfoInvkAble {
|
||||
public interface Xob_page_wkr extends Gfo_invk {
|
||||
String Page_wkr__key();
|
||||
void Page_wkr__bgn();
|
||||
void Page_wkr__run(gplx.xowa.wikis.data.tbls.Xowd_page_itm page);
|
||||
|
||||
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package gplx.xowa.bldrs.wkrs; import gplx.*; import gplx.xowa.*; import gplx.xowa.bldrs.*;
|
||||
import gplx.core.flds.*; import gplx.core.ios.*; import gplx.xowa.wikis.tdbs.*;
|
||||
import gplx.xowa.bldrs.sqls.*; import gplx.xowa.wikis.tdbs.bldrs.*;
|
||||
public abstract class Xob_sql_dump_base extends Xob_itm_dump_base implements Xob_cmd, GfoInvkAble {
|
||||
public abstract class Xob_sql_dump_base extends Xob_itm_dump_base implements Xob_cmd, Gfo_invk {
|
||||
private final Sql_file_parser parser = new Sql_file_parser(); protected boolean fail = false;
|
||||
public abstract String Cmd_key();
|
||||
public Io_url Src_fil() {return src_fil;} private Io_url src_fil;
|
||||
|
||||
Reference in New Issue
Block a user