Package org.qdl_lang.module
Class MTTable<K extends MTKey,V extends Module>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- org.qdl_lang.state.XTable<K,V>
-
- org.qdl_lang.module.MTTable<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,V>
public class MTTable<K extends MTKey,V extends Module> extends XTable<K,V>
Module template table.Created by Jeff Gaynor
on 12/14/21 at 12:22 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class org.qdl_lang.state.XTable
FDOC_CONVERT
-
-
Constructor Summary
Constructors Constructor Description MTTable()
-
Method Summary
-
Methods inherited from class org.qdl_lang.state.XTable
convertFDOC, fromXML, getModuleUtils, serializeToJSON, toString
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
-
-
-
Method Detail
-
put
public V put(XThing value)
Description copied from class:XTable
Should add theXThing
based on itsXThing.getName()
as the key.
-
getXMLTableTag
public String getXMLTableTag()
-
getXMLElementTag
public String getXMLElementTag()
-
toXML
public void toXML(XMLStreamWriter xsw, SerializationState SerializationState) throws XMLStreamException
-
fromXML
public void fromXML(XMLEventReader xer, QDLInterpreter qi) throws XMLStreamException
-
deserializeElement
public V deserializeElement(XMLUtils.ModuleAttributes moduleAttributes, SerializationState SerializationState)
-
deserializeElement
public V deserializeElement(XMLEventReader xer, SerializationState SerializationState, QDLInterpreter qi) throws XMLStreamException
- Specified by:
deserializeElement
in classXTable<K extends MTKey,V extends Module>
- Returns:
- Throws:
XMLStreamException
-
clearChangeList
public void clearChangeList()
-
toJSONEntry
public String toJSONEntry(V xThing, SerializationState serializationState) throws Throwable
-
serializeToJSON
public net.sf.json.JSONObject serializeToJSON(V xThing, SerializationState serializationState) throws Throwable
-
fromJSONEntry
public String fromJSONEntry(String x, SerializationState serializationState)
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject json, QDLInterpreter qi, SerializationState serializationState) throws Throwable
-
-