org.apache.axis2.databinding.utils
Class SimpleElementReaderStateMachine
java.lang.Object
org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine
- All Implemented Interfaces:
- Constants, States
public class SimpleElementReaderStateMachine
- extends Object
- implements States, Constants
A state machine to read elements with simple content. Returns the text
of the element and the stream reader will be one event beyond the
end element at return
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleElementReaderStateMachine
public SimpleElementReaderStateMachine()
isElementSkipped
public boolean isElementSkipped()
getText
public String getText()
setNillable
public void setNillable()
- sets the nillable flag
setElementNameToTest
public void setElementNameToTest(QName elementNameToTest)
- the Qname of the element to be tested
- Parameters:
elementNameToTest
-
reset
public void reset()
- Resets the state machine. Once the reset is called
the state machine is good enough for a fresh run
read
public void read(XMLStreamReader reader)
throws XMLStreamException
- public read method - reads a given reader to extract the text value
- Parameters:
reader
-
- Throws:
XMLStreamException