org.apache.ws.jaxme.xs.parser

Interface TextSetter

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 org.xml.sax.ContentHandler.characters(char[], int, int) into a call of the method addText(String) on the bean.
Author:
Jochen Wiedmann

Method Summary

void
addText(String pText)
Called for any org.xml.sax.ContentHandler.characters(char[], int, int) event.

Method Details

addText

public void addText(String pText)
            throws SAXException
Called for any org.xml.sax.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.