|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etools.logging.util.Converter
Converter class to convert various record types to Common Base Events and Extended Data Element.
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent
,
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
Constructor Summary | |
---|---|
Converter()
Deprecated. |
Method Summary | |
---|---|
protected static CommonBaseEvent |
convertToCommonBaseEvent(java.lang.String xmlFragment)
Deprecated. As of May 25, 2004, logged primitives and complex objects are converted to Common Base Events and serialized to XML based on the Common Base Event v1.0.1 schema. |
protected static ExtendedDataElement |
convertToExtendedDataElement(java.lang.String xmlFragment)
Deprecated. As of May 25, 2004, logged primitives and complex objects are converted to Common Base Events and serialized to XML based on the Common Base Event v1.0.1 schema. |
protected static ExtendedDataElement[] |
convertToExtendedDataElements(java.lang.String xmlFragments)
Deprecated. As of May 25, 2004, logged primitives and complex objects are converted to Common Base Events and serialized to XML based on the Common Base Event v1.0.1 schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Converter()
Method Detail |
protected static CommonBaseEvent convertToCommonBaseEvent(java.lang.String xmlFragment)
CommonBaseEvent
for the parameter XML fragment
using the following rules:
CommonBaseEvent
.CommonBaseEvent
's creationTime
property is set to the current time.CommonBaseEvent
properties are set
to default values.ExtendedDataElement
of the
CommonBaseEvent
..
ExtendedDataElement
(s) of the
CommonBaseEvent
.ExtendedDataElement
(s) of
the CommonBaseEvent
.Pre-Condition: The parameter XML fragment must be a valid and complete XML fragment and not null/empty, an invalid/partial XML fragment or PCDATA.
xmlFragment
- The XML fragment to be deserialized to the
CommonBaseEvent
.
CommonBaseEvent
from deserializing
the parameter XML fragment.protected static ExtendedDataElement convertToExtendedDataElement(java.lang.String xmlFragment)
ExtendedDataElement
for the parameter XML
fragment using the following rules:
ExtendedDataElement
.ExtendedDataElement
with "PCDATA" as the
name, "string" as the type and the PCDATA as the string value .
ExtendedDataElement
(s) of
the ExtendedDataElement
.ExtendedDataElement
(s)
of the ExtendedDataElement
.
NOTE: All duplicate child ExtendedDataElement
names of the
ExtendedDataElement
will be made unique by appending
'_ <counter>' (where <counter> is a zero-based
counter of duplicate child ExtendedDataElement
names) to
the end of each duplicate child ExtendedDataElement
name.
Pre-Condition: The parameter XML fragment must be a valid and complete XML fragment and not null/empty, an invalid/partial XML fragment or PCDATA.
xmlFragment
- The XML fragment to be deserialized to the
ExtendedDataElement
.
ExtendedDataElement
from
deserializing the parameter XML fragment.protected static ExtendedDataElement[] convertToExtendedDataElements(java.lang.String xmlFragments)
ExtendedDataElement
s where an
ExtendedDataElement
is created for each the root level XML
fragment in the parameter XML fragments using the following rules to
create each ExtendedDataElement
:
ExtendedDataElement
.ExtendedDataElement
with "PCDATA" as the
name, "string" as the type and the PCDATA as the string value .
ExtendedDataElement
(s) of
the ExtendedDataElement
.ExtendedDataElement
(s)
of the ExtendedDataElement
.
NOTE: All duplicate child ExtendedDataElement
names of the
ExtendedDataElement
will be made unique by appending
'_ <counter>' (where <counter> is a zero-based
counter of duplicate child ExtendedDataElement
names) to
the end of each duplicate child ExtendedDataElement
name.
Pre-Condition: The parameter XML fragments must be valid and complete XML fragments and not null, empty or illegal XML fragments.
Any PCDATA contained within the parameter XML fragments is added to an
ExtendedDataElement
with "PCDATA" as the name,
"string" as the type and the PCDATA as the string value. This
'PCDATA' ExtendedDataElement
is always the last
ExtendedDataElement
in the returned array of
ExtendedDataElement
s.
xmlFragments
- The root level XML fragments to be converted to
ExtendedDataElement
s.
ExtendedDataElement
s.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |