org.objectweb.proactive.core.xml.handler
Class SingleValueUnmarshaller

java.lang.Object
  extended byorg.objectweb.proactive.core.xml.handler.BasicUnmarshaller
      extended byorg.objectweb.proactive.core.xml.handler.SingleValueUnmarshaller
All Implemented Interfaces:
UnmarshallerHandler, XMLHandler

public class SingleValueUnmarshaller
extends BasicUnmarshaller

A handler for reading values from simple elements, such as

myValue

Author:
Matthieu Morel

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.xml.handler.BasicUnmarshaller
isResultValid, resultObject
 
Fields inherited from interface org.objectweb.proactive.core.xml.handler.UnmarshallerHandler
logger
 
Constructor Summary
SingleValueUnmarshaller()
           
 
Method Summary
 void readValue(java.lang.String value)
          The implementation of this method ensures that even though the element value is split into several chunks, we concatenate the chunks to build the actual value.
 
Methods inherited from class org.objectweb.proactive.core.xml.handler.BasicUnmarshaller
checkNonEmpty, endElement, endPrefixMapping, getResultObject, setResultObject, startContextElement, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueUnmarshaller

public SingleValueUnmarshaller()
Method Detail

readValue

public void readValue(java.lang.String value)
               throws org.xml.sax.SAXException
The implementation of this method ensures that even though the element value is split into several chunks, we concatenate the chunks to build the actual value. see http://www.saxproject.org/faq.html (The ContentHandler.characters() callback is missing data!) and http://xml.apache.org/xerces2-j/faq-sax.html#faq-2 This method is called several times by DefaultHandlerAdapter.characters(char[], int, int) if the data is split into several chunks.

Specified by:
readValue in interface XMLHandler
Overrides:
readValue in class BasicUnmarshaller
Throws:
org.xml.sax.SAXException


Copyright 2001-2005 INRIA All Rights Reserved.