org.apache.axis2.databinding.utils
Class SimpleArrayReaderStateMachine

java.lang.Object
  extended by org.apache.axis2.databinding.utils.SimpleArrayReaderStateMachine
All Implemented Interfaces:
Constants, States

public class SimpleArrayReaderStateMachine
extends java.lang.Object
implements States, Constants

A state machine that reads arrays with simple content. returns a string array


Field Summary
 
Fields inherited from interface org.apache.axis2.databinding.utils.States
CONTENT_FOUND_STATE, END_ELEMENT_FOUND_STATE, FINISHED_STATE, ILLEGAL_STATE, INIT_STATE, NULLED_STATE, START_ELEMENT_FOUND_STATE, STARTED_STATE, TEXT_FOUND_STATE
 
Fields inherited from interface org.apache.axis2.databinding.utils.Constants
DATA_HANDLER, IS_BINARY, NIL, OM_ATTRIBUTE_KEY, OM_ELEMENT_KEY, OPTIMIZATION_ENABLED, TRUE, XSD_NAMESPACE, XSI_NAMESPACE
 
Constructor Summary
SimpleArrayReaderStateMachine()
           
 
Method Summary
 java.lang.String[] getTextArray()
           
 boolean isCanbeAbsent()
           
 void read(javax.xml.stream.XMLStreamReader reader)
          public read method - reads a given reader to extract the text value
 void reset()
          Resets the state machine.
 void setCanbeAbsent(boolean canbeAbsent)
           
 void setElementNameToTest(QName elementNameToTest)
           
 void setNillable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleArrayReaderStateMachine

public SimpleArrayReaderStateMachine()
Method Detail

getTextArray

public java.lang.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(javax.xml.stream.XMLStreamReader reader)
          throws javax.xml.stream.XMLStreamException
public read method - reads a given reader to extract the text value

Parameters:
reader -
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.