info.magnolia.jcr.node2bean.impl
Class TransformationStateImpl
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
typeStack
protected org.apache.commons.collections.ArrayStack typeStack
beanStack
protected org.apache.commons.collections.ArrayStack beanStack
nodeStack
protected org.apache.commons.collections.ArrayStack nodeStack
TransformationStateImpl
public TransformationStateImpl()
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-2013 Magnolia International Ltd.. All Rights Reserved.