Package edu.uiuc.ncsa.qdl.workspace
Class WSXMLSerializer
- java.lang.Object
-
- edu.uiuc.ncsa.qdl.workspace.WSXMLSerializer
-
public class WSXMLSerializer extends Object
Created by Jeff Gaynor
on 1/2/21 at 5:54 AM
-
-
Constructor Summary
Constructors Constructor Description WSXMLSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doEnvProps(WorkspaceCommands workspaceCommands, XMLEventReader xer)
static void
envFromJSON(WorkspaceCommands workspaceCommands, net.sf.json.JSONObject json)
static net.sf.json.JSONObject
envToJSON(WorkspaceCommands workspaceCommands)
WorkspaceCommands
fromXML(XMLEventReader xer, boolean skipBadModules)
WorkspaceCommands
fromXML(XMLEventReader xer, boolean workspaceAttributesOnly, boolean skipBadModules)
protected String
getDescription(XMLEventReader xer)
protected List<String>
getStemAsListFromXML(String tag, XMLEventReader xer)
protected void
processAttr(WorkspaceCommands testCommands, XMLEvent xe)
protected void
processJSONAttr(XMLEventReader xer, WorkspaceCommands workspaceCommands)
protected void
say(String x)
void
toXML(WorkspaceCommands workspaceCommands, XMLStreamWriter xsw)
Top-level serializer for workspace.
-
-
-
Method Detail
-
toXML
public void toXML(WorkspaceCommands workspaceCommands, XMLStreamWriter xsw) throws XMLStreamException
Top-level serializer for workspace. This adds in all the workspace state too, such as ws variables and the any loaded environment variables.- Parameters:
workspaceCommands
-xsw
-- Throws:
XMLStreamException
-
envFromJSON
public static void envFromJSON(WorkspaceCommands workspaceCommands, net.sf.json.JSONObject json) throws Throwable
- Throws:
Throwable
-
envToJSON
public static net.sf.json.JSONObject envToJSON(WorkspaceCommands workspaceCommands)
-
fromXML
public WorkspaceCommands fromXML(XMLEventReader xer, boolean skipBadModules) throws XMLStreamException
- Throws:
XMLStreamException
-
fromXML
public WorkspaceCommands fromXML(XMLEventReader xer, boolean workspaceAttributesOnly, boolean skipBadModules) throws XMLStreamException
- Throws:
XMLStreamException
-
getDescription
protected String getDescription(XMLEventReader xer) throws XMLStreamException
- Throws:
XMLStreamException
-
doEnvProps
protected void doEnvProps(WorkspaceCommands workspaceCommands, XMLEventReader xer) throws XMLStreamException
- Throws:
XMLStreamException
-
getStemAsListFromXML
protected List<String> getStemAsListFromXML(String tag, XMLEventReader xer) throws XMLStreamException
- Throws:
XMLStreamException
-
processJSONAttr
protected void processJSONAttr(XMLEventReader xer, WorkspaceCommands workspaceCommands) throws Throwable
- Throws:
Throwable
-
processAttr
protected void processAttr(WorkspaceCommands testCommands, XMLEvent xe) throws Throwable
- Throws:
Throwable
-
say
protected void say(String x)
-
-