info.magnolia.jcr.node2bean
Interface TransformationState

All Known Implementing Classes:
TransformationStateImpl

public interface TransformationState

This state contains three stacks. This allows the transformer to know the full state created during the transformation process. A stack for classes, beans, and nodes are kept.

It is the processors job to populate this state.


Method Summary
 Object getCurrentBean()
           
 javax.jcr.Node getCurrentNode()
           
 TypeDescriptor getCurrentType()
           
 int getLevel()
           
 Object peekBean(int pos)
           
 javax.jcr.Node peekNode(int pos)
           
 TypeDescriptor peekType(int pos)
           
 void popBean()
           
 void popNode()
           
 void popType()
           
 void pushBean(Object bean)
           
 void pushNode(javax.jcr.Node node)
           
 void pushType(TypeDescriptor type)
           
 void setCurrentBean(Object bean)
           
 

Method Detail

pushType

void pushType(TypeDescriptor type)

popType

void popType()

getCurrentType

TypeDescriptor getCurrentType()

peekType

TypeDescriptor peekType(int pos)

pushBean

void pushBean(Object bean)

popBean

void popBean()

getCurrentBean

Object getCurrentBean()

setCurrentBean

void setCurrentBean(Object bean)

peekBean

Object peekBean(int pos)

pushNode

void pushNode(javax.jcr.Node node)

popNode

void popNode()

getCurrentNode

javax.jcr.Node getCurrentNode()

peekNode

javax.jcr.Node peekNode(int pos)

getLevel

int getLevel()
Returns:
the value of the biggest stack size


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