org.hippoecm.hst.content.beans
Interface ContentNodeBinder


public interface ContentNodeBinder

ContentNodeBinder is the interface for custom mapping content POJO object to JCR node.

An implementation of this interface should be able to set property values of the content node or its child nodes.

Version:
$Id: ContentNodeBinder.java 20864 2009-11-25 14:28:13Z aschrijvers $

Method Summary
 boolean bind(Object content, javax.jcr.Node node)
          Does custom binding from content POJO object to JCR node.
 

Method Detail

bind

boolean bind(Object content,
             javax.jcr.Node node)
             throws ContentNodeBindingException
Does custom binding from content POJO object to JCR node.

Parameters:
content - content POJO object, which can be retrieved by an OCM solution
node - a main target JCR node which can have some properties or child nodes.
Returns:
returns true if the binding makes changes
Throws:
ContentNodeBindingException


Copyright © 2008-2012 Hippo. All Rights Reserved.