info.magnolia.content2bean
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 content nodes are kept.

It is the processors job to populate this state.

Version:
$Id$
Author:
philipp

Method Summary
 Object getCurrentBean()
           
 Content getCurrentContent()
           
 TypeDescriptor getCurrentType()
           
 int getLevel()
           
 Object peekBean(int pos)
           
 Content peekContent(int pos)
           
 TypeDescriptor peekType(int pos)
           
 void popBean()
           
 void popContent()
           
 void popType()
           
 void pushBean(Object bean)
           
 void pushContent(Content 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)

pushContent

void pushContent(Content node)

popContent

void popContent()

getCurrentContent

Content getCurrentContent()

peekContent

Content peekContent(int pos)

getLevel

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


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