org.processmining.framework.models.recommendation.net
Class RecommendationQueryMarshal
java.lang.Object
org.processmining.framework.models.recommendation.net.RecommendationQueryMarshal
public class RecommendationQueryMarshal
- extends java.lang.Object
- Author:
- christian
Field Summary |
protected static java.text.SimpleDateFormat |
dateFormat
|
protected javax.xml.parsers.SAXParserFactory |
parserFactory
|
protected static java.nio.charset.Charset |
UTF8
|
Method Summary |
protected void |
addDataSection(org.processmining.lib.xml.Tag parentNode,
java.util.Map<java.lang.String,java.lang.String> attributes)
Internal convenience method;
appends a data section to the given parent node as child, containing
the key-value pairs in the supplied Map as attribute child nodes. |
protected void |
addFilterList(org.processmining.lib.xml.Tag parentNode,
java.lang.String filterItemName,
java.util.Set<java.lang.String> filterStrings)
|
java.lang.String |
marshal(RecommendationQuery query)
|
RecommendationQuery |
unmarshal(java.lang.String queryXml)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8
protected static final java.nio.charset.Charset UTF8
dateFormat
protected static final java.text.SimpleDateFormat dateFormat
parserFactory
protected javax.xml.parsers.SAXParserFactory parserFactory
RecommendationQueryMarshal
public RecommendationQueryMarshal()
marshal
public java.lang.String marshal(RecommendationQuery query)
throws java.lang.Exception
- Throws:
java.lang.Exception
addDataSection
protected void addDataSection(org.processmining.lib.xml.Tag parentNode,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws java.io.IOException
- Internal convenience method;
appends a data section to the given parent node as child, containing
the key-value pairs in the supplied Map as attribute child nodes.
- Parameters:
parentNode
- attributes
-
- Throws:
java.io.IOException
addFilterList
protected void addFilterList(org.processmining.lib.xml.Tag parentNode,
java.lang.String filterItemName,
java.util.Set<java.lang.String> filterStrings)
throws java.io.IOException
- Throws:
java.io.IOException
unmarshal
public RecommendationQuery unmarshal(java.lang.String queryXml)
throws java.lang.Exception
- Throws:
java.lang.Exception