Tabnine Logo
XmlElement.setName
Code IndexAdd Tabnine to your IDE (free)

How to use
setName
method
in
com.effektif.workflow.api.bpmn.XmlElement

Best Java code snippets using com.effektif.workflow.api.bpmn.XmlElement.setName (Showing top 7 results out of 315)

origin: effektif/effektif

public XmlElement createElement(String namespaceUri, String localPart, Integer index) {
 XmlElement element = new XmlElement();
 element.parent = this;
 element.namespaceUri = namespaceUri;
 addElement(element, index);
 element.setName(namespaceUri, localPart);
 return element;
}
origin: com.effektif/effektif-workflow-api

public XmlElement createElement(String namespaceUri, String localPart, Integer index) {
 XmlElement element = new XmlElement();
 element.parent = this;
 element.namespaceUri = namespaceUri;
 addElement(element, index);
 element.setName(namespaceUri, localPart);
 return element;
}
origin: effektif/effektif

@Override
public void startElementBpmn(String localPart, Integer index) {
 XmlElement newXmlElement = null;
 if (xml!=null) {
  newXmlElement = xml.createElement(BPMN_URI, localPart, index);
 } else {
  newXmlElement = new XmlElement();
  newXmlElement.setName(BPMN_URI, localPart);
 }
 startElement(newXmlElement);
}
origin: effektif/effektif

protected void startElementBpmn(String localpart, Object source, Integer index) {
 if (source==null) {
  startElementBpmn(localpart, index);
 } else if (source instanceof XmlElement) {
  XmlElement sourceElement = (XmlElement) source;
  sourceElement.setElementParents();
  if (xml!=null) {
   xml.addElement(sourceElement, index);
  }
  sourceElement.setName(BPMN_URI, localpart);
  startElement(sourceElement);
 } else {
  throw new RuntimeException("Unknown BPMN source: "+source);
 }
}
origin: effektif/effektif

xmlElement.setName(qname.getNamespaceURI(), qname.getLocalPart());
origin: effektif/effektif

@Before
public void createRootElement() {
 root = new XmlElement();
 root.setName(Bpmn.BPMN_URI, "process");
}
origin: effektif/effektif

 @Test
 public void testCleanEmptyChild() {
  XmlElement childElement = new XmlElement();
  childElement.setName(Bpmn.BPMN_URI, "startEvent");
  childElement.attributes = new HashMap<>();
  childElement.elements = new ArrayList<>();

  root.addElement(childElement);
  root.cleanEmptyElements();

  assertNull(childElement.attributes);
  assertNull(childElement.elements);
 }
}
com.effektif.workflow.api.bpmnXmlElementsetName

Popular methods of XmlElement

  • <init>
  • addElement
  • cleanEmptyElements
    Simplifies the BPMN XML by empty collections of attributes, child elements and extension elements.
  • createElement
  • getElement
    Returns the first element with the given name, or null if there isn’t one.
  • getElements
  • getOrCreateChildElement
    Returns either the first element with the given name, or the result of adding a new element if there
  • getText
  • is
  • removeElement
  • setElementParents
    Recursively fixes parent relationships, which are unset after deserialisation, such as when unparsed
  • addAttribute
  • setElementParents,
  • addAttribute,
  • addCDataText,
  • addNamespace,
  • addText,
  • clearName,
  • escapeAttributeValue,
  • escapeTextNode,
  • escapeXml

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Path (java.nio.file)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JOptionPane (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now