Class SimpleElementReaderStateMachine
java.lang.Object
org.apache.axis2.databinding.utils.SimpleElementReaderStateMachine
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
-
Field Summary
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_NAMESPACEFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()booleanvoidread(XMLStreamReader reader) public read method - reads a given reader to extract the text valuevoidreset()Resets the state machine.voidsetElementNameToTest(QName elementNameToTest) the Qname of the element to be testedvoidsets the nillable flag
-
Constructor Details
-
SimpleElementReaderStateMachine
public SimpleElementReaderStateMachine()
-
-
Method Details
-
isElementSkipped
public boolean isElementSkipped() -
getText
-
setNillable
public void setNillable()sets the nillable flag -
setElementNameToTest
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 read method - reads a given reader to extract the text value- Parameters:
reader-- Throws:
XMLStreamException
-