public static Facet getOrCreateRef(JavaScriptObject jsObj) { if (jsObj == null) return null; RefDataClass obj = RefDataClass.getRef(jsObj); if (obj != null) { obj.setJsObj(jsObj); return (Facet) obj; } else { return new Facet(jsObj); } }
public static TileRecord getOrCreateRef(JavaScriptObject jsObj) { if (jsObj == null) return null; RefDataClass obj = RefDataClass.getRef(jsObj); if (obj != null && obj instanceof TileRecord) { obj.setJsObj(jsObj); return (TileRecord) obj; } else { return new TileRecord(jsObj); } }
public static TimeItem getOrCreateRef(JavaScriptObject jsObj) { if (jsObj == null) return null; RefDataClass obj = RefDataClass.getRef(jsObj); if (obj != null) { obj.setJsObj(jsObj); return (TimeItem) obj; } else { return new TimeItem(jsObj); } }
public static CellRecord getOrCreateRef(JavaScriptObject jsObj) { if (jsObj == null) return null; RefDataClass obj = RefDataClass.getRef(jsObj); if (obj != null) { obj.setJsObj(jsObj); return (CellRecord) obj; } else { return new CellRecord(jsObj); } }
public static FiscalCalendar getOrCreateRef(JavaScriptObject jsObj) { if (jsObj == null) return null; RefDataClass obj = RefDataClass.getRef(jsObj); if (obj != null) { obj.setJsObj(jsObj); return (FiscalCalendar) obj; } else { return new FiscalCalendar(jsObj); } }