public String attributeNS(Namespace namespace, String name) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } return attribute; }
@Override public BpmnParse sourceResource(String resource) { super.sourceResource(resource); return this; }
public Problem(BpmnParseException exception, String resourceName) { concatenateErrorMessages(exception); this.resource = resourceName; Element element = exception.getElement(); if (element != null) { this.line = element.getLine(); this.column = element.getColumn(); } }
@Override public BpmnParse sourceUrl(String url) { super.sourceUrl(url); return this; }
protected String parseResultVariable(Element element) { // determine if result variable exists String resultVariableName = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "resultVariable"); if (resultVariableName == null) { // for backwards compatible reasons resultVariableName = element.attributeNS(CAMUNDA_BPMN_EXTENSIONS_NS, "resultVariableName"); } return resultVariableName; }
@Override public BpmnParse name(String name) { super.name(name); return this; }
@Override public BpmnParse sourceInputStream(InputStream inputStream) { super.sourceInputStream(inputStream); return this; }
@Override public BpmnParse sourceString(String string) { super.sourceString(string); return this; }
public String attributeNS(Namespace namespace, String name) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } return attribute; }
public Problem(BpmnParseException exception, String resourceName) { concatenateErrorMessages(exception); this.resource = resourceName; Element element = exception.getElement(); if (element != null) { this.line = element.getLine(); this.column = element.getColumn(); } }
@Override public BpmnParse sourceResource(String resource, ClassLoader classLoader) { super.sourceResource(resource, classLoader); return this; }
@Override public BpmnParse sourceUrl(String url) { super.sourceUrl(url); return this; }
public String attributeNS(Namespace namespace, String name, String defaultValue) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } if (attribute == null) { return defaultValue; } return attribute; }
@Override public BpmnParse sourceResource(String resource) { super.sourceResource(resource); return this; }
@Override public BpmnParse sourceUrl(URL url) { super.sourceUrl(url); return this; }
public String attributeNS(Namespace namespace, String name, String defaultValue) { String attribute = attribute(composeMapKey(namespace.getNamespaceUri(), name)); if (attribute == null && namespace.hasAlternativeUri()) { attribute = attribute(composeMapKey(namespace.getAlternativeUri(), name)); } if (attribute == null) { return defaultValue; } return attribute; }