info.magnolia.content2bean.impl
Class TransformationStateImpl

java.lang.Object
  extended by info.magnolia.content2bean.impl.TransformationStateImpl
All Implemented Interfaces:
TransformationState

public class TransformationStateImpl
extends java.lang.Object
implements TransformationState

Transformation state implementation. Contains stacks of info for the types, beans and the content.

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

Field Summary
protected  org.apache.commons.collections.ArrayStack beanStack
           
protected  org.apache.commons.collections.ArrayStack contentStack
           
protected  org.apache.commons.collections.ArrayStack typeStack
           
 
Constructor Summary
TransformationStateImpl()
           
 
Method Summary
 java.lang.Object getCurrentBean()
           
 Content getCurrentContent()
           
 TypeDescriptor getCurrentType()
           
 int getLevel()
           
 java.lang.Object peekBean(int pos)
           
 Content peekContent(int pos)
           
 TypeDescriptor peekType(int pos)
           
 void popBean()
           
 void popContent()
           
 void popType()
           
 void pushBean(java.lang.Object bean)
           
 void pushContent(Content node)
           
 void pushType(TypeDescriptor type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeStack

protected org.apache.commons.collections.ArrayStack typeStack

beanStack

protected org.apache.commons.collections.ArrayStack beanStack

contentStack

protected org.apache.commons.collections.ArrayStack contentStack
Constructor Detail

TransformationStateImpl

public TransformationStateImpl()
Method Detail

getCurrentBean

public java.lang.Object getCurrentBean()
Specified by:
getCurrentBean in interface TransformationState

getCurrentType

public TypeDescriptor getCurrentType()
Specified by:
getCurrentType in interface TransformationState

getCurrentContent

public Content getCurrentContent()
Specified by:
getCurrentContent in interface TransformationState

peekBean

public java.lang.Object peekBean(int pos)
Specified by:
peekBean in interface TransformationState

peekType

public TypeDescriptor peekType(int pos)
Specified by:
peekType in interface TransformationState

peekContent

public Content peekContent(int pos)
Specified by:
peekContent in interface TransformationState

popBean

public void popBean()
Specified by:
popBean in interface TransformationState

popType

public void popType()
Specified by:
popType in interface TransformationState

popContent

public void popContent()
Specified by:
popContent in interface TransformationState

pushBean

public void pushBean(java.lang.Object bean)
Specified by:
pushBean in interface TransformationState

pushType

public void pushType(TypeDescriptor type)
Specified by:
pushType in interface TransformationState

pushContent

public void pushContent(Content node)
Specified by:
pushContent in interface TransformationState

getLevel

public int getLevel()
Specified by:
getLevel in interface TransformationState
Returns:
the value of the biggest stack size


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