org.pentaho.platform.scheduler2.ws
Class JobParamsAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<JaxBSafeMap,Map<String,ParamValue>>
      extended by org.pentaho.platform.scheduler2.ws.JobParamsAdapter

public class JobParamsAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<JaxBSafeMap,Map<String,ParamValue>>

Converts a Map used to pass ISchedulerService job parameters to a JAXB marshallable type and back. See this JAXB reference

Author:
aphillips

Constructor Summary
JobParamsAdapter()
           
 
Method Summary
 JaxBSafeMap marshal(Map<String,ParamValue> unsafeMap)
           
 Map<String,ParamValue> unmarshal(JaxBSafeMap safeMap)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobParamsAdapter

public JobParamsAdapter()
Method Detail

marshal

public JaxBSafeMap marshal(Map<String,ParamValue> unsafeMap)
                    throws Exception
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<JaxBSafeMap,Map<String,ParamValue>>
Throws:
Exception

unmarshal

public Map<String,ParamValue> unmarshal(JaxBSafeMap safeMap)
                                 throws Exception
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<JaxBSafeMap,Map<String,ParamValue>>
Throws:
Exception