|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMHandler
A Handler is capable and used to unmarshal a certain subclass of JMElement. It is unable to marshal generic JMElements. The JMHandler is typically created by the Manager.
A JMHandler is reusable: If the sequence
startDocument()
, ..., endDocument()
was executed, you can immediately perform the same sequence
again, effectively reading another document. If the sequence
was interrupted, you may also reset the handlers state by
calling its init()
method.
Nested Class Summary | |
---|---|
static interface |
JMHandler.Data
|
Method Summary | |
---|---|
JMHandler.Data |
getData()
Returns the handlers Data. |
java.lang.Object |
getResult()
Returns the handlers result object. |
void |
init(JMHandler.Data pData)
Initializes the handler by setting its Data. |
void |
init(JMUnmarshaller pUnmarshaller)
Initializes the handler by creating a new Data instance and calling init(Data) . |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from interface org.apache.ws.jaxme.Observable |
---|
getObserver, setObserver |
Method Detail |
---|
void init(JMHandler.Data pData) throws JAXBException
Initializes the handler by setting its Data.
pData
- An instance of JMHandler.Data
providing access to the
handlers configuration..
JAXBException
void init(JMUnmarshaller pUnmarshaller) throws JAXBException
Initializes the handler by creating a new Data instance
and calling init(Data)
.
JAXBException
JMHandler.Data getData()
Returns the handlers Data.
java.lang.Object getResult()
Returns the handlers result object.
java.lang.IllegalStateException
- If called before a full
startDocument()
, ..., endDocument()
sequence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |