mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.5.4.1
This commit is contained in:
@@ -55,7 +55,7 @@ public class GfmlDataNde {
|
||||
String msgKey = String_.Coalesce(gnde.Key(), gnde.Hnd());
|
||||
GfoMsg msg = GfoMsg_.new_parse_(msgKey);
|
||||
for (int i = 0; i < gnde.SubKeys().Count(); i++) {
|
||||
GfmlItm subItm = (GfmlItm)gnde.SubKeys().FetchAt(i);
|
||||
GfmlItm subItm = (GfmlItm)gnde.SubKeys().Get_at(i);
|
||||
if (subItm.ObjType() == GfmlObj_.Type_atr) {
|
||||
GfmlAtr subAtr = (GfmlAtr)subItm;
|
||||
String subAtrKey = String_.Len_eq_0(subAtr.Key()) ? "" : subAtr.Key(); // NOTE: needs to be "" or else will fail in GfoConsole; key will be evaluated against NullKey in GfsCtx
|
||||
@@ -68,7 +68,7 @@ public class GfmlDataNde {
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < gnde.SubHnds().Count(); i++) {
|
||||
GfmlItm subItm = (GfmlItm)gnde.SubHnds().FetchAt(i);
|
||||
GfmlItm subItm = (GfmlItm)gnde.SubHnds().Get_at(i);
|
||||
GfmlNde subNde = (GfmlNde)subItm;
|
||||
GfoMsg subMsg = XtoMsg(subNde);
|
||||
msg.Subs_add(subMsg);
|
||||
@@ -81,7 +81,7 @@ class GfmlDataWtr2 extends DataWtr_base implements DataWtr {
|
||||
GfmlTkn nameTkn = GfmlTkn_.raw_(name);
|
||||
GfmlTkn valTkn = GfmlTkn_.raw_(XtoStr(val));
|
||||
GfmlAtr atr = GfmlAtr.new_(nameTkn, valTkn, GfmlType_.String);
|
||||
GfmlNde nde = gdoc.RootNde().SubHnds().FetchAt(0);
|
||||
GfmlNde nde = gdoc.RootNde().SubHnds().Get_at(0);
|
||||
nde.SubKeys().Add(atr);
|
||||
}
|
||||
public void InitWtr(String key, Object val) {}
|
||||
|
||||
@@ -21,7 +21,7 @@ public class GfmlDataRdr extends GfmlDataRdr_base {
|
||||
GfmlDoc gdoc = GfmlDoc_.parse_any_eol_(raw);
|
||||
GfmlDataRdr rv = new GfmlDataRdr();
|
||||
rv.Parse_set(true);
|
||||
rv.SetNode(gdoc.RootNde().SubHnds().FetchAt(0));
|
||||
rv.SetNode(gdoc.RootNde().SubHnds().Get_at(0));
|
||||
return rv;
|
||||
}
|
||||
public static DataRdr raw_list_(String raw) {
|
||||
|
||||
@@ -20,13 +20,13 @@ import gplx.stores.*; /*DataRdr_base*/
|
||||
public abstract class GfmlDataRdr_base extends DataRdr_base implements DataRdr {
|
||||
@Override public String NameOfNode() {return curNde.Hnd();}
|
||||
@Override public int FieldCount() {return curNde.SubKeys().Count();}
|
||||
@Override public String KeyAt(int idx) {return curNde.SubKeys().FetchAt(idx).KeyTkn().Val();}
|
||||
@Override public Object ReadAt(int idx) {return GfmlAtr.as_(curNde.SubKeys().FetchAt(idx)).DatTkn().Val();}
|
||||
@Override public String KeyAt(int idx) {return curNde.SubKeys().Get_at(idx).KeyTkn().Val();}
|
||||
@Override public Object ReadAt(int idx) {return GfmlAtr.as_(curNde.SubKeys().Get_at(idx)).DatTkn().Val();}
|
||||
@Override public Object Read(String name) {return curNde.SubKeys().FetchDataOrNull(name);}
|
||||
public boolean MoveNextPeer() {
|
||||
pos += 1;
|
||||
if (list == null || pos >= list.Count()) return false; // TODO_9: makeCurNde null; invalidate FieldAt, etc?
|
||||
curNde = list.FetchAt(pos);
|
||||
curNde = list.Get_at(pos);
|
||||
return true;
|
||||
}
|
||||
@Override public DataRdr Subs() {
|
||||
@@ -43,7 +43,7 @@ public abstract class GfmlDataRdr_base extends DataRdr_base implements DataRdr {
|
||||
rv.list = GfmlItmHnds.new_();
|
||||
if (curNde == null) return rv;
|
||||
for (int i = 0; i < curNde.SubHnds().Count(); i++) {
|
||||
GfmlNde sub = (GfmlNde)curNde.SubHnds().FetchAt(i);
|
||||
GfmlNde sub = (GfmlNde)curNde.SubHnds().Get_at(i);
|
||||
String typeName = sub.Type().NdeName();
|
||||
if ( sub.Type().IsTypeAny()) // isAnyType b/c match may not be exact; ex: type can be defined as item:key name; but actlNde may be item:key name size;
|
||||
//|| sub.Type().IsTypeNull())
|
||||
|
||||
@@ -79,7 +79,7 @@ class SqlCmd_quote_end implements GfmlBldrCmd {
|
||||
String_bldr sb = String_bldr_.new_();
|
||||
GfmlObjList list = bldr.CurFrame().WaitingTkns();
|
||||
for (int i = 0; i < list.Count(); i++) {
|
||||
GfmlTkn pnd = (GfmlTkn)list.FetchAt(i);
|
||||
GfmlTkn pnd = (GfmlTkn)list.Get_at(i);
|
||||
sb.Add(pnd.Val());
|
||||
}
|
||||
//Int_.Xto_str(bldr.CurNdeFrame().Nde().SubTkns().length)
|
||||
|
||||
Reference in New Issue
Block a user