This is a Job implementation for osp data transfers within a single vm. @author Douglas Brown @version 1.0
| 19 | * @version 1.0 |
| 20 | */ |
| 21 | public class LocalJob implements Job, Serializable { |
| 22 | |
| 23 | private static final long serialVersionUID = 1L; |
| 24 | |
| 25 | // instance fields |
| 26 | String xml; |
| 27 | |
| 28 | /** |
| 29 | * Constructs a LocalJob. |
| 30 | */ |
| 31 | public LocalJob() { |
| 32 | setXML(new Object()); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Constructs a LocalJob with a specified xml string. |
| 37 | * |
| 38 | * @param xml the string |
| 39 | */ |
| 40 | public LocalJob(String xml) { |
| 41 | setXML(xml); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * Constructs a LocalJob for a specified object. |
| 46 | * |
| 47 | * @param obj the object |
| 48 | */ |
| 49 | public LocalJob(Object obj) { |
| 50 | setXML(obj); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Gets the xml string. Implements Job. |
| 55 | * |
| 56 | * @return the xml string |
| 57 | */ |
| 58 | @Override |
| 59 | public String getXML() { |
| 60 | return xml; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Sets the xml string. Implements Job. |
| 65 | * |
| 66 | * @param xml the xml string |
| 67 | */ |
| 68 | @Override |
| 69 | public void setXML(String xml) { |
| 70 | if (xml != null) { |
| 71 | this.xml = xml; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Sets the xml string to that saved by the specified object. |
| 77 | * |
| 78 | * @param obj the object |
nothing calls this directly
no outgoing calls
no test coverage detected