Class BpmnXMLUtil

java.lang.Object
org.activiti.bpmn.converter.util.BpmnXMLUtil
All Implemented Interfaces:
BpmnXMLConstants

public class BpmnXMLUtil extends Object implements BpmnXMLConstants
  • Constructor Details

    • BpmnXMLUtil

      public BpmnXMLUtil()
  • Method Details

    • addXMLLocation

      public static void addXMLLocation(org.activiti.bpmn.model.BaseElement element, XMLStreamReader xtr)
    • addXMLLocation

      public static void addXMLLocation(org.activiti.bpmn.model.GraphicInfo graphicInfo, XMLStreamReader xtr)
    • parseChildElements

      public static void parseChildElements(String elementName, org.activiti.bpmn.model.BaseElement parentElement, XMLStreamReader xtr, org.activiti.bpmn.model.BpmnModel model) throws Exception
      Throws:
      Exception
    • parseChildElements

      public static void parseChildElements(String elementName, org.activiti.bpmn.model.BaseElement parentElement, XMLStreamReader xtr, Map<String,BaseChildElementParser> childParsers, org.activiti.bpmn.model.BpmnModel model) throws Exception
      Throws:
      Exception
    • parseExtensionElement

      public static org.activiti.bpmn.model.ExtensionElement parseExtensionElement(XMLStreamReader xtr) throws Exception
      Throws:
      Exception
    • writeDefaultAttribute

      public static void writeDefaultAttribute(String attributeName, String value, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • writeQualifiedAttribute

      public static void writeQualifiedAttribute(String attributeName, String value, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • writeExtensionElements

      public static boolean writeExtensionElements(org.activiti.bpmn.model.BaseElement baseElement, boolean didWriteExtensionStartElement, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • writeExtensionElements

      public static boolean writeExtensionElements(org.activiti.bpmn.model.BaseElement baseElement, boolean didWriteExtensionStartElement, Map<String,String> namespaceMap, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • writeExtensionElement

      protected static void writeExtensionElement(org.activiti.bpmn.model.ExtensionElement extensionElement, Map<String,String> namespaceMap, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • parseDelimitedList

      public static List<String> parseDelimitedList(String s)
    • convertToDelimitedString

      public static String convertToDelimitedString(List<String> stringList)
    • addCustomAttributes

      public static void addCustomAttributes(XMLStreamReader xtr, org.activiti.bpmn.model.BaseElement element, List<org.activiti.bpmn.model.ExtensionAttribute>... blackLists)
      add all attributes from XML to element extensionAttributes (except blackListed).
      Parameters:
      xtr -
      element -
      blackLists -
    • writeCustomAttributes

      public static void writeCustomAttributes(Collection<List<org.activiti.bpmn.model.ExtensionAttribute>> attributes, XMLStreamWriter xtw, List<org.activiti.bpmn.model.ExtensionAttribute>... blackLists) throws XMLStreamException
      Throws:
      XMLStreamException
    • writeCustomAttributes

      public static void writeCustomAttributes(Collection<List<org.activiti.bpmn.model.ExtensionAttribute>> attributes, XMLStreamWriter xtw, Map<String,String> namespaceMap, List<org.activiti.bpmn.model.ExtensionAttribute>... blackLists) throws XMLStreamException
      write attributes to xtw (except blacklisted)
      Parameters:
      attributes -
      xtw -
      blackLists -
      Throws:
      XMLStreamException
    • isBlacklisted

      public static boolean isBlacklisted(org.activiti.bpmn.model.ExtensionAttribute attribute, List<org.activiti.bpmn.model.ExtensionAttribute>... blackLists)
    • writeIncomingAndOutgoingFlowElement

      public static void writeIncomingAndOutgoingFlowElement(org.activiti.bpmn.model.FlowNode flowNode, XMLStreamWriter xtw) throws Exception
      Throws:
      Exception
    • writeIncomingElementChild

      public static void writeIncomingElementChild(XMLStreamWriter xtw, org.activiti.bpmn.model.SequenceFlow incomingSequence) throws Exception
      Throws:
      Exception
    • writeOutgoingElementChild

      public static void writeOutgoingElementChild(XMLStreamWriter xtw, org.activiti.bpmn.model.SequenceFlow outgoingSequence) throws Exception
      Throws:
      Exception
    • createSafeXmlInputFactory

      public static XMLInputFactory createSafeXmlInputFactory()
      'safe' is here reflecting: http://activiti.org/userguide/index.html#advanced.safe.bpmn.xml