com.atlassian.greenhopper.manager
Class AbstractAOMapper<T extends Entity,U extends AbstractModel>

java.lang.Object
  extended by com.atlassian.greenhopper.manager.AbstractAOMapper<T,U>
All Implemented Interfaces:
AOMapper<T,U>
Direct Known Subclasses:
DetailViewFieldAOMapper

public abstract class AbstractAOMapper<T extends Entity,U extends AbstractModel>
extends java.lang.Object
implements AOMapper<T,U>

Abstract AOMapper implementation that other mappers can inherit from.

Since:
v6.0.3

Constructor Summary
AbstractAOMapper()
           
 
Method Summary
 java.util.List<U> toModel(java.util.List<T> records)
          Constructs a list of (usually immutable) domain objects from the AO record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.greenhopper.manager.AOMapper
toAO, toModel, update
 

Constructor Detail

AbstractAOMapper

public AbstractAOMapper()
Method Detail

toModel

@NotNull
public java.util.List<U> toModel(java.util.List<T> records)
Constructs a list of (usually immutable) domain objects from the AO record.

Parameters:
records - the records to use
Returns:
the domain objects


Copyright © 2007-2012 Atlassian. All Rights Reserved.