|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.reader.ComponentReader
org.exolab.castor.xml.schema.reader.CharacterUnmarshaller
public class CharacterUnmarshaller
A utility class for Unmarshalling elements with only String content
| Constructor Summary | |
|---|---|
CharacterUnmarshaller(SchemaContext schemaContext)
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 |
String |
elementName()
Returns the name of the element that this ComponentReader handles |
void |
elementName(String name)
Sets the name of the element that this CharacterUnmarshaller handles |
Object |
getObject()
Returns the Object created by this ComponentReader |
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, getSchemaContext, getURIResolver, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, redefinedElement, redefinedElement, setDocumentLocator, setResolver, setSchemaContext, setURIResolver, startElement, toInt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterUnmarshaller(SchemaContext schemaContext)
schemaContext - the schema context to get some configuration settings from| Method Detail |
|---|
public String elementName()
elementName in class ComponentReaderpublic void elementName(String name)
name - the name of the element that this character unmarshaller handlespublic Object getObject()
getObject in class ComponentReaderpublic String getString()
public void characters(char[] ch,
int start,
int length)
throws XMLException
characters in class ComponentReaderch - the character array containing the charactersstart - the starting index into the character arraylength - the number of characters to recieve
XMLExceptionDocumentHandlerpublic void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||