Interface IXmlExport

  • All Known Implementing Classes:
    com.nomagic.magicdraw.cbm.exporter.BaseXmlExport, Bpmn20Export

    @OpenApiAll
    public interface IXmlExport
    A simple interface to get access to the internal IXmlExporter instance.
    Since:
    Mar 12, 2012
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<Element> getMappedElements()
      The model elements that are to be exported
      javax.xml.bind.Marshaller getMarshaller()
      This will give access to the Marshaller object used to serialize the Model
      java.util.Collection<RuleViolationResult> getViolations()
      If the BPMN model elements were validated, this is where the results will be available.
      void write()
      This method will serialize the JAXB object tree to an Outputstream silently exits if all goes well
    • Method Detail

      • getMappedElements

        java.util.Set<Element> getMappedElements()
        The model elements that are to be exported
        Returns:
        the elements
      • getViolations

        java.util.Collection<RuleViolationResult> getViolations()
        If the BPMN model elements were validated, this is where the results will be available.
        Returns:
        the Validation Rule Violations
      • getMarshaller

        javax.xml.bind.Marshaller getMarshaller()
                                         throws javax.xml.bind.JAXBException
        This will give access to the Marshaller object used to serialize the Model
        Returns:
        the Marshaller
        Throws:
        javax.xml.bind.JAXBException
      • write

        void write()
            throws javax.xml.bind.JAXBException,
                   org.xml.sax.SAXParseException
        This method will serialize the JAXB object tree to an Outputstream silently exits if all goes well
        Throws:
        javax.xml.bind.JAXBException
        org.xml.sax.SAXParseException