|
||||||||||
| 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
A utility class for Unmarshalling elements with only String content
| 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, 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 |
public CharacterUnmarshaller()
| Method Detail |
public java.lang.String elementName()
elementName in class ComponentReaderpublic void elementName(java.lang.String name)
name - the name of the element that this character unmarshaller handlespublic java.lang.Object getObject()
getObject in class ComponentReaderpublic java.lang.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 | |||||||||