Class CharacterUnmarshaller
- java.lang.Object
-
- org.exolab.castor.xml.schema.reader.ComponentReader
-
- org.exolab.castor.xml.schema.reader.CharacterUnmarshaller
-
public class CharacterUnmarshaller extends ComponentReader
A utility class for Unmarshalling elements with only String content- Version:
- $Revision: 7410 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description CharacterUnmarshaller(SchemaContext schemaContext)Creates a new StringUnmarshaller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)The SAX characters method for recieving charactersvoidclear()Clears the current bufferjava.lang.StringelementName()Returns the name of the element that this ComponentReader handlesvoidelementName(java.lang.String name)Sets the name of the element that this CharacterUnmarshaller handlesjava.lang.ObjectgetObject()Returns the Object created by this ComponentReaderjava.lang.StringgetString()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, getSchemaContext, getURIResolver, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, redefinedElement, redefinedElement, setDocumentLocator, setResolver, setSchemaContext, setURIResolver, startElement, toInt
-
-
-
-
Constructor Detail
-
CharacterUnmarshaller
public CharacterUnmarshaller(SchemaContext schemaContext)
Creates a new StringUnmarshaller.- Parameters:
schemaContext- the schema context to get some configuration settings from
-
-
Method Detail
-
elementName
public java.lang.String elementName()
Returns the name of the element that this ComponentReader handles- Specified by:
elementNamein classComponentReader- 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:
getObjectin classComponentReader- 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 XMLExceptionThe SAX characters method for recieving characters- Overrides:
charactersin classComponentReader- Parameters:
ch- the character array containing the charactersstart- the starting index into the character arraylength- the number of characters to recieve- Throws:
XMLException- See Also:
DocumentHandler
-
clear
public void clear()
Clears the current buffer
-
-