org.apache.ws.jaxme.xs.parser
Interface TextSetter

All Known Implementing Classes:
TextSetterImpl

public interface TextSetter

Interface of an object which is setting character data as a bean property. The default implementation, TextSetterImpl, is converting any SAX event of type ContentHandler.characters(char[], int, int) into a call of the method addText(String) on the bean.

Author:
Jochen Wiedmann

Method Summary
 void addText(java.lang.String pText)
          Called for any ContentHandler.characters(char[], int, int) event.
 

Method Detail

addText

void addText(java.lang.String pText)
             throws org.xml.sax.SAXException

Called for any ContentHandler.characters(char[], int, int) event. Note, that this implies in particular, that the method may be called multiple times, even for a single block of text.

Parameters:
pText - The text being set.
Throws:
org.xml.sax.SAXException