info.magnolia.commands
Class CommandTransformer

java.lang.Object
  extended by info.magnolia.jcr.node2bean.impl.Node2BeanTransformerImpl
      extended by info.magnolia.commands.CommandTransformer
All Implemented Interfaces:
Node2BeanTransformer

public class CommandTransformer
extends Node2BeanTransformerImpl

Command to transform old "impl" reference to implementing class to new "class" node data name for references.


Constructor Summary
CommandTransformer()
           
 
Method Summary
 void initBean(TransformationState state, Map values)
          Called after all properties are set.
protected  boolean isChainClass(Class<?> type)
           
protected  boolean isCommandClass(Class<?> type)
           
protected  TypeDescriptor onResolveType(TypeMapping typeMapping, TransformationState state, TypeDescriptor resolvedType, ComponentProvider componentProvider)
          Called once the type should have been resolved.
 void setProperty(TypeMapping typeMapping, TransformationState state, PropertyTypeDescriptor descriptor, Map values)
          Set this property on that bean.
 
Methods inherited from class info.magnolia.jcr.node2bean.impl.Node2BeanTransformerImpl
convertPropertyValue, createCollectionFromMap, getChildren, isBeanEnabled, newBeanInstance, newState, resolveType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTransformer

public CommandTransformer()
Method Detail

onResolveType

protected TypeDescriptor onResolveType(TypeMapping typeMapping,
                                       TransformationState state,
                                       TypeDescriptor resolvedType,
                                       ComponentProvider componentProvider)
Description copied from class: Node2BeanTransformerImpl
Called once the type should have been resolved. The resolvedType might be null if no type has been resolved. Every subclass should override this method.

Overrides:
onResolveType in class Node2BeanTransformerImpl

initBean

public void initBean(TransformationState state,
                     Map values)
              throws Node2BeanException
Description copied from interface: Node2BeanTransformer
Called after all properties are set.

Specified by:
initBean in interface Node2BeanTransformer
Overrides:
initBean in class Node2BeanTransformerImpl
Throws:
Node2BeanException

setProperty

public void setProperty(TypeMapping typeMapping,
                        TransformationState state,
                        PropertyTypeDescriptor descriptor,
                        Map values)
                 throws javax.jcr.RepositoryException
Description copied from interface: Node2BeanTransformer
Set this property on that bean. Allows excluding of properties.

Specified by:
setProperty in interface Node2BeanTransformer
Overrides:
setProperty in class Node2BeanTransformerImpl
Throws:
javax.jcr.RepositoryException

isCommandClass

protected boolean isCommandClass(Class<?> type)

isChainClass

protected boolean isChainClass(Class<?> type)


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