/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012-2017 gnosygnu@gmail.com

XOWA is licensed under the terms of the General Public License (GPL) Version 3,
or alternatively under the terms of the Apache License Version 2.0.

You may use XOWA according to either of these licenses as is most appropriate
for your project on a case-by-case basis.

The terms of each license can be found in the source code repository:

GPLv3 License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-GPLv3.txt
Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
*/
package gplx.xowa.files.origs; import gplx.*; import gplx.xowa.*; import gplx.xowa.files.*;
import gplx.xowa.apps.wms.apis.*; import gplx.xowa.files.fsdb.*;
public class Xof_orig_wkr_ {
	public static final    Xof_orig_wkr[] Ary_empty = new Xof_orig_wkr[0];
	public static void Find_by_list(Xof_orig_wkr wkr, Ordered_hash rv, List_adp itms) {
		int len = itms.Count();
		for (int i = 0; i < len; ++i) {
			Xof_fsdb_itm fsdb = (Xof_fsdb_itm)itms.Get_at(i);
			byte[] fsdb_ttl = fsdb.Lnki_ttl();
			if (rv.Has(fsdb_ttl)) continue;
			Xof_orig_itm orig = wkr.Find_as_itm(fsdb_ttl, i, len);
			if (orig == Xof_orig_itm.Null) continue;
			rv.Add(fsdb_ttl, orig);
		}
	}
	public static final byte
	  Tid_xowa_db			= 1
	, Tid_wmf_api			= 2
	, Tid_xowa_meta			= 3
	, Tid_xowa_img_links	= 4
	, Tid_mock				= 5
	, Tid_fs_root			= 6
	;
}
