info.magnolia.module.rssaggregator.util
Interface ContentMapper<T>

Type Parameters:
T - the target type of this mapper.
All Known Implementing Classes:
AggregateFeedContentMapper, FeedChannelContentMapper, FilterPredicateContentMapper

public interface ContentMapper<T>

Capable of mapping a content node to an object of type T.

Author:
Rob van der Linden Vooren

Method Summary
 T map(javax.jcr.Node content)
          Map a content node that defines a type T to an object of that type.
 

Method Detail

map

T map(javax.jcr.Node content)
      throws javax.jcr.RepositoryException
Map a content node that defines a type T to an object of that type.

Parameters:
content - the content node to map
Returns:
the result object of type T
Throws:
javax.jcr.RepositoryException - when a problem occurred accessing the underlying repository


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.