org.jboss.xb.binding.sunday.unmarshalling.position
Class AbstractPosition

java.lang.Object
  extended by org.jboss.xb.binding.sunday.unmarshalling.position.AbstractPosition
All Implemented Interfaces:
Position
Direct Known Subclasses:
ElementPosition, NonElementPosition

public abstract class AbstractPosition
extends Object
implements Position

A AbstractPosition.

Version:
$Revision: 1.1 $
Author:
Alexey Loubyansky

Field Summary
protected  boolean ended
           
protected  ParticleHandler handler
           
protected static org.jboss.logging.Logger log
           
protected  Position next
           
protected  Object o
           
protected  int occurrence
           
protected  TypeBinding parentType
           
protected  ParticleBinding particle
           
protected  Position previous
           
protected  QName qName
           
protected  RepeatableParticleHandler repeatableHandler
           
protected  Object repeatableParticleValue
           
protected  PositionStack stack
           
protected static boolean trace
           
 
Constructor Summary
protected AbstractPosition(QName qName, ParticleBinding particle)
           
 
Method Summary
 void endRepeatableParticle()
           
 Position getNext()
           
 ParticleBinding getParticle()
           
 Position getPrevious()
           
 RepeatableParticleHandler getRepeatableHandler()
           
 Object getRepeatableParticleValue()
           
 Object getValue()
           
 void initValue(Attributes atts)
           
 boolean isElement()
           
 boolean isEnded()
           
protected  Position notSkippedParent()
           
static void resetTrace()
           
protected  void setParent(Position parentPosition, ParticleHandler handler)
           
 void setParentType(TypeBinding parentType)
           
 void setPrevious(Position previous)
           
 void setStack(PositionStack stack)
           
 void setValue(Object value)
           
 void startRepeatableParticle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.xb.binding.sunday.unmarshalling.position.Position
characters, endParticle, nextPosition, repeatForChild, startParticle
 

Field Detail

log

protected static org.jboss.logging.Logger log

trace

protected static boolean trace

stack

protected PositionStack stack

qName

protected final QName qName

particle

protected ParticleBinding particle

handler

protected ParticleHandler handler

parentType

protected TypeBinding parentType

o

protected Object o

repeatableParticleValue

protected Object repeatableParticleValue

repeatableHandler

protected RepeatableParticleHandler repeatableHandler

ended

protected boolean ended

occurrence

protected int occurrence

previous

protected Position previous

next

protected Position next
Constructor Detail

AbstractPosition

protected AbstractPosition(QName qName,
                           ParticleBinding particle)
Method Detail

resetTrace

public static void resetTrace()

setStack

public void setStack(PositionStack stack)
Specified by:
setStack in interface Position

getParticle

public ParticleBinding getParticle()
Specified by:
getParticle in interface Position

getNext

public Position getNext()
Specified by:
getNext in interface Position

getPrevious

public Position getPrevious()
Specified by:
getPrevious in interface Position

setPrevious

public void setPrevious(Position previous)
Specified by:
setPrevious in interface Position

getRepeatableHandler

public RepeatableParticleHandler getRepeatableHandler()
Specified by:
getRepeatableHandler in interface Position

getRepeatableParticleValue

public Object getRepeatableParticleValue()
Specified by:
getRepeatableParticleValue in interface Position

getValue

public Object getValue()
Specified by:
getValue in interface Position

setValue

public void setValue(Object value)
Specified by:
setValue in interface Position

isEnded

public boolean isEnded()
Specified by:
isEnded in interface Position

setParentType

public void setParentType(TypeBinding parentType)
Specified by:
setParentType in interface Position

isElement

public boolean isElement()
Specified by:
isElement in interface Position

initValue

public void initValue(Attributes atts)
Specified by:
initValue in interface Position

startRepeatableParticle

public void startRepeatableParticle()
Specified by:
startRepeatableParticle in interface Position

endRepeatableParticle

public void endRepeatableParticle()
Specified by:
endRepeatableParticle in interface Position

notSkippedParent

protected Position notSkippedParent()

setParent

protected void setParent(Position parentPosition,
                         ParticleHandler handler)


Copyright © 2010 JBoss Inc.. All Rights Reserved.