mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.9.2.1
This commit is contained in:
29
400_xowa/src/gplx/xowa/wikis/ttls/Xoa_ttl_chkr.java
Normal file
29
400_xowa/src/gplx/xowa/wikis/ttls/Xoa_ttl_chkr.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
XOWA: the XOWA Offline Wiki Application
|
||||
Copyright (C) 2012 gnosygnu@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
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.wikis.ttls; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
public class Xoa_ttl_chkr implements Tst_chkr {
|
||||
public Class<?> TypeOf() {return Xoa_ttl.class;}
|
||||
public int Chk(Tst_mgr mgr, String path, Object o) {
|
||||
Xoa_ttl actl = (Xoa_ttl)o;
|
||||
int rv = 0;
|
||||
rv += mgr.Tst_val(expd_str == null, path, "raw", expd_str, String_.new_u8(actl.Raw()));
|
||||
return rv;
|
||||
}
|
||||
public String Expd_str() {return expd_str;} public Xoa_ttl_chkr Expd_str_(String v) {expd_str = v; return this;} private String expd_str;
|
||||
public static Xoa_ttl_chkr new_(String v) {return new Xoa_ttl_chkr().Expd_str_(v);} private Xoa_ttl_chkr() {}
|
||||
}
|
||||
56
400_xowa/src/gplx/xowa/wikis/ttls/Xop_ttl_log.java
Normal file
56
400_xowa/src/gplx/xowa/wikis/ttls/Xop_ttl_log.java
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
XOWA: the XOWA Offline Wiki Application
|
||||
Copyright (C) 2012 gnosygnu@gmail.com
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
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.wikis.ttls; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*;
|
||||
public class Xop_ttl_log {
|
||||
private static final Gfo_msg_grp owner = Gfo_msg_grp_.new_(Xoa_app_.Nde, "ttl");
|
||||
public static final Gfo_msg_itm
|
||||
Len_0 = Gfo_msg_itm_.new_warn_(owner, "Len_0")
|
||||
, Len_max = Gfo_msg_itm_.new_warn_(owner, "Len_max")
|
||||
, Ttl_has_ns_but_no_page = Gfo_msg_itm_.new_warn_(owner, "Ttl_has_ns_but_no_page")
|
||||
, Ttl_is_ns_only = Gfo_msg_itm_.new_warn_(owner, "Ttl_is_ns_only")
|
||||
, Amp_unknown = Gfo_msg_itm_.new_warn_(owner, "Amp_unknown")
|
||||
, Comment_eos = Gfo_msg_itm_.new_warn_(owner, "Comment_eos")
|
||||
, Invalid_char = Gfo_msg_itm_.new_warn_(owner, "Invalid_char")
|
||||
;
|
||||
}
|
||||
class Xop_redirect_log {
|
||||
private static final Gfo_msg_grp owner = Gfo_msg_grp_.new_(Xoa_app_.Nde, "redirect");
|
||||
public static final Gfo_msg_itm
|
||||
False_match = Gfo_msg_itm_.new_warn_(owner, "False_match")
|
||||
, Lnki_not_found = Gfo_msg_itm_.new_warn_(owner, "Lnki_not_found")
|
||||
;
|
||||
}
|
||||
class Xop_tag_log {
|
||||
private static final Gfo_msg_grp owner = Gfo_msg_grp_.new_(Xoa_app_.Nde, "tag");
|
||||
public static final Gfo_msg_itm
|
||||
Invalid = Gfo_msg_itm_.new_warn_(owner, "Invalid")
|
||||
;
|
||||
}
|
||||
// class Pf_func_lang_log {
|
||||
// private static final Gfo_msg_grp owner = Gfo_msg_grp_.new_(Xoa_app_.Nde, "tmpl_func_lang");
|
||||
// public static final Gfo_msg_itm
|
||||
// Arg_out_of_bounds = Gfo_msg_itm_.new_warn_(owner, "Arg_out_of_bounds")
|
||||
// ;
|
||||
// }
|
||||
// class Mwl_expr_log {
|
||||
// private static final Gfo_msg_grp owner = Gfo_msg_grp_.new_(Xoa_app_.Nde, "expr");
|
||||
// public static final Gfo_msg_itm
|
||||
// Divide_by_zero = Gfo_msg_itm_.new_warn_(owner, "Divide_by_zero")
|
||||
// , Expr_len0 = Gfo_msg_itm_.new_warn_(owner, "Expr_len0")
|
||||
// ;
|
||||
// }
|
||||
Reference in New Issue
Block a user