org.apache.axis2.databinding.utils
Class SimpleArrayReaderStateMachine
java.lang.Object
org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine
- All Implemented Interfaces:
- Constants, States
public class SimpleArrayReaderStateMachine
- extends Object
- implements States, Constants
A state machine that reads arrays with simple content. returns a string array
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleArrayReaderStateMachine
public SimpleArrayReaderStateMachine()
getTextArray
public String[] getTextArray()
- Returns:
- an array of strings
setNillable
public void setNillable()
isCanbeAbsent
public boolean isCanbeAbsent()
setCanbeAbsent
public void setCanbeAbsent(boolean canbeAbsent)
reset
public void reset()
- Resets the state machine. Once the reset is called the state machine is good enough for a
fresh run
setElementNameToTest
public void setElementNameToTest(QName elementNameToTest)
read
public void read(XMLStreamReader reader)
throws XMLStreamException
- public read method - reads a given reader to extract the text value
- Parameters:
reader
-
- Throws:
XMLStreamException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.