|
From: <rm...@hy...> - 2007-03-23 23:49:20
|
Author: rmorgan Date: 2007-03-23 15:49:12 -0800 (Fri, 23 Mar 2007) New Revision: 3844 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3844 Modified: trunk/src/org/hyperic/hq/livedata/shared/LiveDataResult.java Log: Add getObjectResult() Modified: trunk/src/org/hyperic/hq/livedata/shared/LiveDataResult.java =================================================================== --- trunk/src/org/hyperic/hq/livedata/shared/LiveDataResult.java 2007-03-23 23:32:02 UTC (rev 3843) +++ trunk/src/org/hyperic/hq/livedata/shared/LiveDataResult.java 2007-03-23 23:49:12 UTC (rev 3844) @@ -1,10 +1,11 @@ package org.hyperic.hq.livedata.shared; +import com.thoughtworks.xstream.XStream; + import java.io.Serializable; /** * Result object from live data commands. - * */ public class LiveDataResult implements Serializable { @@ -20,4 +21,12 @@ public String getXMLResult() { return _xml; } + + /** + * Get the Object result for this request. + */ + public Object getObjectResult() { + XStream xstream = new XStream(); + return xstream.fromXML(_xml); + } } |