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

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

public class MeasurementDataNumericHighLowCompositeAdapter
extends XmlAdapter<ArrayList<ArrayList<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>>,List<List<org.rhq.core.domain.measurement.composite.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<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> marshal(List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> opaque)
           
 List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> unmarshal(ArrayList<ArrayList<org.rhq.core.domain.measurement.composite.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<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> marshal(List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> opaque)
                                                                                                               throws Exception
Specified by:
marshal in class XmlAdapter<ArrayList<ArrayList<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>>,List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>>>
Throws:
Exception

unmarshal

public List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> unmarshal(ArrayList<ArrayList<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> marshallable)
                                                                                                       throws Exception
Specified by:
unmarshal in class XmlAdapter<ArrayList<ArrayList<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>>,List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>>>
Throws:
Exception


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