public final class IlrMonitorModelXmlBuilder extends java.lang.Object implements IlrMonitorModelXMLTags
org.w3c.dom.Document or a XML String from an instance of model.ATTR_ID, ATTR_LINE, ATTR_METHOD, ATTR_NATIVE, ATTR_THREAD_ID, ATTR_VALUE, CLASS_DESC, CLASS_DESC_ATTR_NAME, CLASS_DESC_LIST, CLASS_DESC_LIST_ATTRIB_DEPTH, CODE_LOC, CODE_LOC_ATTR_CONTENTION_TYPE, EXEC_POINT, EXEC_POINT_ATTR_LOCK_DESC, EXEC_POINT_ATTR_THREAD_ID_BLOCKED, EXEC_POINT_ATTR_THREAD_ID_OWNER, LOCK_DESC, LOCK_DESC_LIST, NAMESPACE, NOT_VALID_TIME, ROOT_ELT, SNAPSHOT, SNAPSHOT_ID, SNAPSHOTS_LIST, SNAPSHOTS_LIST_ATTRIB_FIRST, SNAPSHOTS_LIST_ATTRIB_LAST, SNAPSHOTS_LIST_ATTRIB_NB, STACKTRACE, STRACE_ELEMENT, THREAD, THREAD_ATTR_BLOCKED_COUNT, THREAD_ATTR_BLOCKED_TIME, THREAD_ATTR_NAME, THREAD_ATTR_WAITED_COUNT, THREAD_ATTR_WAITED_TIME, THREAD_LIST, THREAD_LIST_ATTRIB_TOTALNUMBER| Constructor and Description |
|---|
IlrMonitorModelXmlBuilder()
Constructs an instance.
|
IlrMonitorModelXmlBuilder(boolean namespace)
Constructs an instance that will be able to use a namespace or not.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
generateXmlDocument(IlrClassDescriptionSet classDescriptionSet)
Generates a DOM document representation of an instance of model.
|
org.w3c.dom.Document |
generateXmlDocument(IlrClassDescriptionSet classDescriptionSet,
IlrStackElementFilter stackElementFilter)
Generates a DOM document representation of an instance of model.
|
java.lang.String |
generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet)
Generates an XML String representation of an instance of model.
|
java.lang.String |
generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet,
IlrStackElementFilter filter,
java.util.Properties xslProperties)
Generates an XML String representation of an instance of model.
|
public IlrMonitorModelXmlBuilder(boolean namespace)
throws javax.xml.datatype.DatatypeConfigurationException
javax.xml.datatype.DatatypeConfigurationException - if data type couldn't be used.namespace - true if you want to generate document with namespace.DatatypeFactorypublic IlrMonitorModelXmlBuilder()
throws javax.xml.datatype.DatatypeConfigurationException
IlrMonitorModelXmlBuilder(false)javax.xml.datatype.DatatypeConfigurationException - if data type couldn't be used.DatatypeFactorypublic java.lang.String generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
generateXmlDocumentAsString(classDescriptionSet, null).javax.xml.parsers.ParserConfigurationException - if the XML DOM parser isn't well configured.javax.xml.transform.TransformerException - if the transformation of the DOM document couldn't be transform to
StringclassDescriptionSet - an instance of IlrClassDescriptionSetString.public java.lang.String generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet, IlrStackElementFilter filter, java.util.Properties xslProperties) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
RuntimeException in case of
ParserConfigurationException or TransformerException.javax.xml.parsers.ParserConfigurationException - if the XML DOM parser isn't well configured.javax.xml.transform.TransformerException - if the transformation of the DOM document couldn't be transform to
StringclassDescriptionSet - an instance of IlrClassDescriptionSetfilter - an instance of IlrStackElementFilter could be null.xslProperties - an instance of java.util.Properties passed to the XSL transformer used to
build the String. Could be null.String.public org.w3c.dom.Document generateXmlDocument(IlrClassDescriptionSet classDescriptionSet) throws javax.xml.parsers.ParserConfigurationException
generateXmlDocument(classDescriptionSet, null).javax.xml.parsers.ParserConfigurationException - if the document couldn't be instanciated.javax.xml.parsers.FactoryConfigurationError - if DOM implementation couldn't be found.classDescriptionSet - an instance of IlrClassDescriptionSetorg.dom.DocumentDocumentBuilderFactory,
DocumentBuilderpublic org.w3c.dom.Document generateXmlDocument(IlrClassDescriptionSet classDescriptionSet, IlrStackElementFilter stackElementFilter) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - if the document couldn't be instanciated.javax.xml.parsers.FactoryConfigurationError - if DOM implementation couldn't be found.classDescriptionSet - an instance of IlrClassDescriptionSetstackElementFilter - an instance of IlrStackElementFilter could be null.org.dom.DocumentDocumentBuilderFactory,
DocumentBuilder© Copyright IBM Corp. 1987, 2017