info.magnolia.jcr.node2bean.impl
Class TransformationStateImpl

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

@Singleton
public class TransformationStateImpl
extends Object
implements TransformationState

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


Field Summary
protected  org.apache.commons.collections.ArrayStack beanStack
           
protected  org.apache.commons.collections.ArrayStack nodeStack
           
protected  org.apache.commons.collections.ArrayStack typeStack
           
 
Constructor Summary
TransformationStateImpl()
           
 
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)
           
 
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

nodeStack

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

TransformationStateImpl

public TransformationStateImpl()
Method Detail

getCurrentBean

public Object getCurrentBean()
Specified by:
getCurrentBean in interface TransformationState

setCurrentBean

public void setCurrentBean(Object bean)
Specified by:
setCurrentBean in interface TransformationState

getCurrentType

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

getCurrentNode

public javax.jcr.Node getCurrentNode()
Specified by:
getCurrentNode in interface TransformationState

peekBean

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

peekType

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

peekNode

public javax.jcr.Node peekNode(int pos)
Specified by:
peekNode in interface TransformationState

popBean

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

popType

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

popNode

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

pushBean

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

pushType

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

pushNode

public void pushNode(javax.jcr.Node node)
Specified by:
pushNode in interface TransformationState

getLevel

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


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.