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

java.lang.Object
  extended by org.exolab.castor.xml.schema.reader.ComponentReader
      extended by org.exolab.castor.xml.schema.reader.CharacterUnmarshaller

public class CharacterUnmarshaller
extends ComponentReader

A utility class for Unmarshalling elements with only String content

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:37 $
Author:
Keith Visco

Field Summary
 
Fields inherited from class org.exolab.castor.xml.schema.reader.ComponentReader
_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 ComponentReader 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 ComponentReader
 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.ComponentReader
endElement, error, error, finish, getDocumentLocator, getResolver, getURIResolver, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, redefinedElement, redefinedElement, setDocumentLocator, setResolver, setURIResolver, startElement, toInt
 
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 ComponentReader handles

Specified by:
elementName in class ComponentReader
Returns:
the name of the element that this ComponentReader 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 ComponentReader

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

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 XMLException
The SAX characters method for recieving characters

Overrides:
characters in class ComponentReader
Parameters:
ch - the character array containing the characters
start - the starting index into the character array
length - the number of characters to recieve
Throws:
XMLException
See Also:
DocumentHandler

clear

public void clear()
Clears the current buffer



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