org.exolab.castor.xml.schema.reader
Class CharacterUnmarshaller

java.lang.Object
  extended byorg.exolab.castor.xml.schema.reader.SaxUnmarshaller
      extended byorg.exolab.castor.xml.schema.reader.CharacterUnmarshaller
All Implemented Interfaces:
org.xml.sax.DocumentHandler, org.xml.sax.ErrorHandler

public class CharacterUnmarshaller
extends SaxUnmarshaller

A utility class for Unmarshalling elements with only String content

Version:
$Revision: 1.3 $ $Date: 2000/11/04 01:31:16 $
Author:
Keith Visco

Field Summary
 
Fields inherited from class org.exolab.castor.xml.schema.reader.SaxUnmarshaller
_locator
 
Constructor Summary
CharacterUnmarshaller()
          Creates a new StringUnmarshaller
 
Method Summary
 void characters(char[] ch, int start, int length)
          The SAX characters method for recieving characters
 void clear()
          Clears the current buffer
 java.lang.String elementName()
          Returns the name of the element that this SaxUnmarshaller handles
 void elementName(java.lang.String name)
          Sets the name of the element that this CharacterUnmarshaller handles
 java.lang.Object getObject()
          Returns the Object created by this SaxUnmarshaller
 java.lang.String getString()
          Returns the set of characters recieved by this CharacterUnmarshaller as a String
 
Methods inherited from class org.exolab.castor.xml.schema.reader.SaxUnmarshaller
endDocument, endElement, error, error, fatalError, finish, getDocumentLocator, getResolver, ignorableWhitespace, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, processingInstruction, redefinedElement, redefinedElement, setDocumentLocator, setResolver, startDocument, startElement, toInt, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterUnmarshaller

public CharacterUnmarshaller()
Creates a new StringUnmarshaller

Method Detail

elementName

public java.lang.String elementName()
Returns the name of the element that this SaxUnmarshaller handles

Specified by:
elementName in class SaxUnmarshaller
Returns:
the name of the element that this SaxUnmarshaller handles

elementName

public void elementName(java.lang.String name)
Sets the name of the element that this CharacterUnmarshaller handles

Parameters:
name - the name of the element that this character unmarshaller handles

getObject

public java.lang.Object getObject()
Returns the Object created by this SaxUnmarshaller

Specified by:
getObject in class SaxUnmarshaller
Returns:
the Object created by this SaxUnmarshaller

getString

public java.lang.String getString()
Returns the set of characters recieved by this CharacterUnmarshaller as a String

Returns:
the set of characters recieved by this CharacterUnmarshaller as a String

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
The SAX characters method for recieving characters

Specified by:
characters in interface org.xml.sax.DocumentHandler
Overrides:
characters in class SaxUnmarshaller
Throws:
org.xml.sax.SAXException
See Also:
DocumentHandler

clear

public void clear()
Clears the current buffer



Intalio Inc. (C) 1999-2001. All rights reserved http://www.intalio.com