Uses of Interface
io.odysz.module.xtable.IXMLStruct
-
Uses of IXMLStruct in io.odysz.module.xtable
Modifier and TypeMethodDescriptionstatic XMLTable
XMLDataFactory.buildTable
(String sourceID, ILogger androidLogger, String newTableID, String fromStructureOfTableID, ArrayList<String[]> fromList, String targetFullpath, IXMLStruct xmlStruct) Construct a new table.
Copy data structure from 'fromTableID', copy data from 'fromList'static XMLTable
XMLDataFactory.getTable
(ILogger androidLogger, String tableID, InputStream istream, IXMLStruct xmlStruct) static XMLTable
XMLDataFactory.getTable
(ILogger logger, String tableID, String fromFullpath, IXMLStruct xmlStruct) Usage ex.:
InputStream istr = res.getAssets().open(configName + ".xml");
IXMLStruct xmlStruct = new IXMLStruct() {
@Override public String rootTag() { return "xtables"; }
@Override public String tableTag() { return "table"; }
@Override public String recordTag() { return "record"; }
};
ILogger logger = new Logger();
skintable = XMLDataFactory.getTable(logger, configTablename, istr, xmlStruct);static XMLTable
XMLDataFactory.getTable
(String sourceID, ILogger androidLogger, String tableID, InputStream istream, IXMLStruct xmlStruct) static XMLTable
XMLDataFactory.getTable
(String sourceID, ILogger androidLogger, String tableID, InputStream istream, IXMLStruct xmlStruct, boolean reload) static XMLTable
XMLDataFactory.getTable
(String sourceID, ILogger androidLogger, String tableID, String fromFullpath, IXMLStruct xmlStruct) static XMLTable
XMLDataFactory.getTable
(String sourceID, ILogger androidLogger, String tableID, String fromFullpath, IXMLStruct xmlStruct, boolean reload) static XMLTable
XMLDataFactory.getTableReusing
(String sourceID, ILogger androidLogger, String tableID, IXMLStruct xmlStruct) Get a table, don't reload.protected static XMLFlatData
XMLDataFactory.getXMLData
(String dataName, InputStream istream, IXMLStruct xmlStruct, boolean forceReload) static LinkedHashMap<String,
XMLTable> XMLDataFactoryEx.getXtables
(ILogger logger, String targetFullpath, IXMLStruct xmlStruct) Construct a new table.
Not xml table data are buffered - for release memory.static void
XMLDataFactory.writeTables
(IXMLStruct xmlStrct, String fullpath, XMLTable[] tables) static void
XMLDataFactoryEx.writeTables
(IXMLStruct xmlStrct, String fullpath, XMLTable[] tables) Write xtables (mapping info) into mapping file (fullpath).ModifierConstructorDescriptionXMLFlatData
(InputStream istream, IXMLStruct xmlStruct, ILogger logger) load xml file at "", parse into map XMLFlatReader
(ILogger logger, IXMLStruct xmlStruct)