ilog.rules.monitor.report

Class IlrMonitorModelXmlBuilder

  • java.lang.Object
    • ilog.rules.monitor.report.IlrMonitorModelXmlBuilder
  • All Implemented Interfaces:
    IlrMonitorModelXMLTags


    public final class IlrMonitorModelXmlBuilder
    extends java.lang.Object
    implements IlrMonitorModelXMLTags
    Builds a org.w3c.dom.Document or a XML String from an instance of model.
    Since:
    JRules 7.0
    • Constructor Detail

      • IlrMonitorModelXmlBuilder

        public IlrMonitorModelXmlBuilder(boolean namespace)
                                  throws javax.xml.datatype.DatatypeConfigurationException
        Constructs an instance that will be able to use a namespace or not.
        Throws:
        javax.xml.datatype.DatatypeConfigurationException - if data type couldn't be used.
        Parameters:
        namespace - true if you want to generate document with namespace.
        See Also:
        DatatypeFactory
      • IlrMonitorModelXmlBuilder

        public IlrMonitorModelXmlBuilder()
                                  throws javax.xml.datatype.DatatypeConfigurationException
        Constructs an instance. Equivalent to IlrMonitorModelXmlBuilder(false)
        Throws:
        javax.xml.datatype.DatatypeConfigurationException - if data type couldn't be used.
        See Also:
        DatatypeFactory
    • Method Detail

      • generateXmlDocumentAsString

        public java.lang.String generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet)
                                                     throws javax.xml.parsers.ParserConfigurationException,
                                                            javax.xml.transform.TransformerException
        Generates an XML String representation of an instance of model.

        Equivalent to call generateXmlDocumentAsString(classDescriptionSet, null).
        Throws:
        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 String
        Parameters:
        classDescriptionSet - an instance of IlrClassDescriptionSet
        Returns:
        a XML String.
      • generateXmlDocumentAsString

        public java.lang.String generateXmlDocumentAsString(IlrClassDescriptionSet classDescriptionSet,
                                                   IlrStackElementFilter filter,
                                                   java.util.Properties xslProperties)
                                                     throws javax.xml.parsers.ParserConfigurationException,
                                                            javax.xml.transform.TransformerException
        Generates an XML String representation of an instance of model. It could filter the stack trace xml representation according to the filter given.

        Could throw a RuntimeException in case of ParserConfigurationException or TransformerException.
        Throws:
        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 String
        Parameters:
        classDescriptionSet - an instance of IlrClassDescriptionSet
        filter - 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.
        Returns:
        a XML String.
        See Also:
        Section 16 of the XSL Transformation W3C Recommendation
      • generateXmlDocument

        public org.w3c.dom.Document generateXmlDocument(IlrClassDescriptionSet classDescriptionSet)
                                                 throws javax.xml.parsers.ParserConfigurationException
        Generates a DOM document representation of an instance of model. Equivalent to generateXmlDocument(classDescriptionSet, null).
        Throws:
        javax.xml.parsers.ParserConfigurationException - if the document couldn't be instanciated.
        javax.xml.parsers.FactoryConfigurationError - if DOM implementation couldn't be found.
        Parameters:
        classDescriptionSet - an instance of IlrClassDescriptionSet
        Returns:
        an instance of org.dom.Document
        See Also:
        DocumentBuilderFactory, DocumentBuilder
      • generateXmlDocument

        public org.w3c.dom.Document generateXmlDocument(IlrClassDescriptionSet classDescriptionSet,
                                               IlrStackElementFilter stackElementFilter)
                                                 throws javax.xml.parsers.ParserConfigurationException
        Generates a DOM document representation of an instance of model. It could filter the stack trace xml representation according to the filter given.
        Throws:
        javax.xml.parsers.ParserConfigurationException - if the document couldn't be instanciated.
        javax.xml.parsers.FactoryConfigurationError - if DOM implementation couldn't be found.
        Parameters:
        classDescriptionSet - an instance of IlrClassDescriptionSet
        stackElementFilter - an instance of IlrStackElementFilter could be null.
        Returns:
        an instance of org.dom.Document
        See Also:
        DocumentBuilderFactory, DocumentBuilder

© Copyright IBM Corp. 1987, 2017