com.google.code.jetm.reporting.xml
Class XmlAggregateBinder

java.lang.Object
  extended by com.google.code.jetm.reporting.xml.XmlAggregateBinder
All Implemented Interfaces:
AggregateBinder

public class XmlAggregateBinder
extends Object
implements AggregateBinder

A binder to bind an Aggregate object to XML and back again.

Author:
jrh3k5

Constructor Summary
XmlAggregateBinder()
           
 
Method Summary
 void bind(Collection<? extends etm.core.aggregation.Aggregate> aggregates, Writer writer)
          Bind aggregate data.
 Collection<etm.core.aggregation.Aggregate> unbind(Reader reader)
          Unbind aggregate data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlAggregateBinder

public XmlAggregateBinder()
Method Detail

bind

public void bind(Collection<? extends etm.core.aggregation.Aggregate> aggregates,
                 Writer writer)
Bind aggregate data.

Specified by:
bind in interface AggregateBinder
Parameters:
aggregates - A Collection of Aggregate objects representing the data to be bound.
writer - The Writer to which the bound data will be written.

unbind

public Collection<etm.core.aggregation.Aggregate> unbind(Reader reader)
Unbind aggregate data.

Specified by:
unbind in interface AggregateBinder
Parameters:
reader - A Reader representing a source of bound aggregate data to be un-bound.
Returns:
A Collection of Aggregate objects representing the data to be unbound.


Copyright © 2011. All Rights Reserved.