info.magnolia.content2bean
Interface Bean2ContentTransformer


public interface Bean2ContentTransformer

Used to create content nodes. This is a kind of configuration for the processor.

Version:
$Id: Bean2ContentTransformer.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

Method Summary
 Object convertNodeDataValue(TransformationState state, String name, Object value)
          Convert complex values to the basic supported types (int, boolean, ..
 ItemType finishContent(TransformationState state)
          Called after the node data and child content is set.
 boolean isNode(TransformationState state, String propertyName, Object value)
          Will this property be a node?
 boolean isProperty(TransformationState state, String propertyName, Object value)
          Will this property be a node data?
 ItemType prepareContent(TransformationState state)
          Set mixin types or similar.
 ItemType resolveItemType(TransformationState state)
          The item type of the node.
 ItemType resolveName(TransformationState state)
          The content name to use.
 void setNodeData(TransformationState state, String name, Object value)
          Create/set the node data of the node.
 

Method Detail

resolveItemType

ItemType resolveItemType(TransformationState state)
The item type of the node.


resolveName

ItemType resolveName(TransformationState state)
The content name to use.


prepareContent

ItemType prepareContent(TransformationState state)
Set mixin types or similar. Does not create the node!


finishContent

ItemType finishContent(TransformationState state)
Called after the node data and child content is set.


isNode

boolean isNode(TransformationState state,
               String propertyName,
               Object value)
Will this property be a node?


isProperty

boolean isProperty(TransformationState state,
                   String propertyName,
                   Object value)
Will this property be a node data?


setNodeData

void setNodeData(TransformationState state,
                 String name,
                 Object value)
Create/set the node data of the node.


convertNodeDataValue

Object convertNodeDataValue(TransformationState state,
                            String name,
                            Object value)
Convert complex values to the basic supported types (int, boolean, .. String)



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.