Public Member Functions | |
LogEntryXML (String stackId, int stackLevel) throws DOMException | |
LogEntryXML (Random random) | |
LogEntryXML (Node log) throws DOMException | |
boolean | hasDatas () |
NodeList | getDatas () |
Node | getNode () |
String | getEntryTypeAsString () |
Object | getField (Field f) |
LogTypeHelper | getType () |
boolean | isLogEntryMessageSimple () |
String | toString () |
String | toXMLString () |
Vector< AdditionalData > | getAdditionalData () |
void | addData (String name, String value) |
Static Public Member Functions | |
LogEntryXML | generateRandomLog (Random random) |
final boolean | isValidLogEntryType (int index) |
void | printNode (Node logNode, int depth) |
Public Attributes | |
VectorNodeList | complexLogEntryMessage = null |
Protected Member Functions | |
void | setField (Field field, Object value) |
Private Member Functions | |
void | initAttributes (Node log) throws DOMException |
void | initBody (Node log) throws DOMException |
void | initialize (Node log) throws DOMException |
void | initLogEntryType (Node log) throws DOMException |
StringBuffer | getXMLDatas () |
Private Attributes | |
VectorNodeList | datas = null |
final Object[] | fields = new Object[Field.values().length] |
Node | log = null |
boolean | isLogEntrySimple = true |
SimpleDateFormat | dateFormat = new IsoDateFormat() |
Note on reuse of equal Strings, Integers etc: The XML parser currently produces separate instances of the same Strings, so that a lot of memory would be used up unnecessarily. This class reuses String objects for its field values, but does not exchange the String instances that are referenced by the log Node
. That current design will only yield a memory advantage if the LogEntryXML
instance is not kept permanently in the application, but instead its fields are read and the values transfered (without the DOM Node) to an object of another class. Ale: please check if there are other Srings that could be reused based on stringPool
, and if we should use also a pool for Integers, at least for log levels since they are always the same few.
|
|
|
This costructor is used only for testing purposes. It is called by com.cosylab.logging.engine.simulator.simulatorRemoteAccess It generates a random LogEntryXML |
|
This constructor is called by the DOMParser.
|
|
Add a data node to this log: <data name="name">value</data>
Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
|
|
The vector return contains only strings and it is formed in this way: name value name value name value... i.e. it is a plain representation of couples of values
Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
Data Nodes are returned as a org.w3c.dom.NodeList. If data(s) are not present, null is returned. |
|
Returns the type of this Object as String. "Undeclared" id type is not specified.
|
|
Returns a specific field according to field name constants. Creation date: (11/21/2001 18:16:03)
Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
|
|
Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
|
|
Check if the log entry has datas
Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
|
|
|
|
|
|
|
|
This boolean tag specifies whether LogEntryMessage is simple or not:
|
|
Insert the method's description here. Creation date: (12/4/2001 12:21:35)
|
|
Recursively prints the struct of the node
|
|
Sets the specified field. This method is protected since the fields are not to be modified. The only time this is called is during initialization. Creation date: (11/21/2001 18:35:10)
|
|
Returns a String representation of the log. Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
Return the object as XML string Implements com::cosylab::logging::engine::log::ILogEntry.
|
|
|
|
|
|
|
|
|
|
|
|
|