Class CharacterUnmarshaller
java.lang.Object
org.exolab.castor.xml.schema.reader.ComponentReader
org.exolab.castor.xml.schema.reader.CharacterUnmarshaller
A utility class for Unmarshalling elements with only String content
- Version:
- $Revision$ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionCharacterUnmarshaller
(SchemaContext schemaContext) Creates a new StringUnmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) The SAX characters method for recieving charactersvoid
clear()
Clears the current bufferReturns the name of the element that this ComponentReader handlesvoid
elementName
(String name) Sets the name of the element that this CharacterUnmarshaller handlesReturns the Object created by this ComponentReaderReturns the set of characters recieved by this CharacterUnmarshaller as a StringMethods inherited from class org.exolab.castor.xml.schema.reader.ComponentReader
createParser, derive, endElement, error, error, finish, getDocumentLocator, getResolver, getSchemaContext, getURIResolver, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, parseSchema, redefinedElement, redefinedElement, setDocumentLocator, setResolver, setSchemaContext, setURIResolver, startElement, toInt
-
Constructor Details
-
CharacterUnmarshaller
Creates a new StringUnmarshaller.- Parameters:
schemaContext
- the schema context to get some configuration settings from
-
-
Method Details
-
elementName
Returns the name of the element that this ComponentReader handles- Specified by:
elementName
in classComponentReader
- Returns:
- the name of the element that this ComponentReader handles
-
elementName
Sets the name of the element that this CharacterUnmarshaller handles- Parameters:
name
- the name of the element that this character unmarshaller handles
-
getObject
Returns the Object created by this ComponentReader- Specified by:
getObject
in classComponentReader
- Returns:
- the Object created by this ComponentReader
-
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
The SAX characters method for recieving characters- Overrides:
characters
in 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:
-
clear
public void clear()Clears the current buffer
-