/*
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.xtns.wbases.pfuncs; import gplx.*; import gplx.xowa.*; import gplx.xowa.xtns.*; import gplx.xowa.xtns.wbases.*;
public class Wdata_pf_property_fmt {
public byte[] Separator() {return separator;} private byte[] separator;
public byte[] Value_template() {return value_template;} private byte[] value_template;
public byte[] Qualifier_template() {return qualifier_template;} private byte[] qualifier_template;
public byte[] Qualifier_separator() {return qualifier_separator;} private byte[] qualifier_separator;
public byte[] Qualifiers_wrapper() {return qualifiers_wrapper;} private byte[] qualifiers_wrapper;
public byte[] Qualifiers_template() {return qualifiers_template;} private byte[] qualifiers_template;
public byte[] Qualifiers_value_separator() {return qualifiers_value_separator;} private byte[] qualifiers_value_separator;
public byte[] Reference_keyvalue_template() {return reference_keyvalue_template;} private byte[] reference_keyvalue_template;
public byte[] Reference_wrapper() {return reference_wrapper;} private byte[] reference_wrapper;
public byte[] References_wrapper() {return references_wrapper;} private byte[] references_wrapper;
public byte[] Reference_keyvalue_separator() {return reference_keyvalue_separator;} private byte[] reference_keyvalue_separator;
public byte[] Reference_template() {return reference_template;} private byte[] reference_template;
public byte[] Reference_value_separator() {return reference_value_separator;} private byte[] reference_value_separator;
public byte[] Reference_separator() {return reference_separator;} private byte[] reference_separator;
public void Init() {
byte[] comma = new byte[] {Byte_ascii.Comma};
separator = comma;
value_template = Bry_.new_a7("{{{value}}} {{{qualifiers}}}{{{references}}}");
qualifier_template = Bry_.new_a7("{{{1}}} {{{2}}}");
qualifier_separator = comma;
qualifiers_wrapper = Bry_.new_a7("{{{1}}}");
qualifiers_template = Bry_.Empty;
qualifiers_value_separator = comma;
reference_keyvalue_template = Bry_.new_a7("{{{1}}} {{{2}}}");
reference_wrapper = Bry_.new_a7("<ref>{{{1}}}</ref>");
references_wrapper = Bry_.new_a7("{{{1}}}");
reference_keyvalue_separator = comma;
reference_template = Bry_.Empty;
reference_value_separator = comma;
reference_separator = Bry_.Empty; // "a separator to use between each reference"
}
}