The MessageBase class contains fields that are shared by all message types. The XML document for a message class (e.g., AimOrderMessage) will start with these fields. The MessageBaseMessage object is passed SAX XML events from a subclass message processor (for example, AimOrderMessage). The MessageBase fields are processed. While they are being processed the processElement method will return the state MSG_BASE. When the fields have been processed, the MSG_BASE_DONE state will be returned.
If the first call to processElement is an XML tag that is not associated with a MessageBase field, processElement will return BAD_STATE.
Protected Member Functions | |
MessageStates | processElement (String localName, Attributes attributes) |
void | processCharacters (String str, MessageBase msg) |
void | processEndElement (String localName) |
Private Attributes | |
MessageStates | mLocalState = MessageStates.BAD_STATE |
|
|
|
|
|
|
|
|