@Singleton public class TransformationStateImpl extends Object implements TransformationState
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections4.ArrayStack |
beanStack |
protected org.apache.commons.collections4.ArrayStack |
nodeStack |
protected org.apache.commons.collections4.ArrayStack |
typeStack |
Constructor and Description |
---|
TransformationStateImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
getCurrentBean() |
javax.jcr.Node |
getCurrentNode() |
TypeDescriptor |
getCurrentType() |
int |
getLevel() |
Collection<TransformationProblem> |
getProblems() |
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 |
pushProblem(TransformationProblem problem) |
void |
pushType(TypeDescriptor type) |
void |
setCurrentBean(Object bean) |
void |
trackProblem(TransformationProblem.Builder problemBuilder) |
protected org.apache.commons.collections4.ArrayStack typeStack
protected org.apache.commons.collections4.ArrayStack beanStack
protected org.apache.commons.collections4.ArrayStack nodeStack
public Object getCurrentBean()
getCurrentBean
in interface TransformationState
public void setCurrentBean(Object bean)
setCurrentBean
in interface TransformationState
public TypeDescriptor getCurrentType()
getCurrentType
in interface TransformationState
public javax.jcr.Node getCurrentNode()
getCurrentNode
in interface TransformationState
public Object peekBean(int pos)
peekBean
in interface TransformationState
public TypeDescriptor peekType(int pos)
peekType
in interface TransformationState
public javax.jcr.Node peekNode(int pos)
peekNode
in interface TransformationState
public void popBean()
popBean
in interface TransformationState
public void popType()
popType
in interface TransformationState
public void popNode()
popNode
in interface TransformationState
public void pushBean(Object bean)
pushBean
in interface TransformationState
public void pushProblem(TransformationProblem problem)
pushProblem
in interface TransformationState
public Collection<TransformationProblem> getProblems()
getProblems
in interface TransformationState
public void pushType(TypeDescriptor type)
pushType
in interface TransformationState
public void pushNode(javax.jcr.Node node)
pushNode
in interface TransformationState
public int getLevel()
getLevel
in interface TransformationState
public void trackProblem(TransformationProblem.Builder problemBuilder)
trackProblem
in interface TransformationState
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.