org.rhq.enterprise.server.jaxb.adapter
Class MeasurementDataNumericHighLowCompositeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>>,List<List<MeasurementDataNumericHighLowComposite>>>
      extended by org.rhq.enterprise.server.jaxb.adapter.MeasurementDataNumericHighLowCompositeAdapter

public class MeasurementDataNumericHighLowCompositeAdapter
extends XmlAdapter<ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>>,List<List<MeasurementDataNumericHighLowComposite>>>

See the javadoc for the XmlAdapter itself for a more complete explanation, but simply put the adapter maps types that JAXB has difficulty serializing(Ex. Map) to java types that JAXB can actually serialize. From a JAXB perspective think of the problematic types as opaque to JAXB and the map to type in a marshal as the serializable type.

Author:
Simeon Pinder

Constructor Summary
MeasurementDataNumericHighLowCompositeAdapter()
           
 
Method Summary
 ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>> marshal(List<List<MeasurementDataNumericHighLowComposite>> opaque)
           
 List<List<MeasurementDataNumericHighLowComposite>> unmarshal(ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>> marshallable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeasurementDataNumericHighLowCompositeAdapter

public MeasurementDataNumericHighLowCompositeAdapter()
Method Detail

marshal

public ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>> marshal(List<List<MeasurementDataNumericHighLowComposite>> opaque)
                                                                     throws Exception
Specified by:
marshal in class XmlAdapter<ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>>,List<List<MeasurementDataNumericHighLowComposite>>>
Throws:
Exception

unmarshal

public List<List<MeasurementDataNumericHighLowComposite>> unmarshal(ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>> marshallable)
                                                             throws Exception
Specified by:
unmarshal in class XmlAdapter<ArrayList<ArrayList<MeasurementDataNumericHighLowComposite>>,List<List<MeasurementDataNumericHighLowComposite>>>
Throws:
Exception


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.