congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Import.getNamespace
Code IndexAdd Tabnine to your IDE (free)

How to use
getNamespace
method
in
com.ebmwebsourcing.easybpmn.bpmn20.api.element.Import

Best Java code snippets using com.ebmwebsourcing.easybpmn.bpmn20.api.element.Import.getNamespace (Showing top 3 results out of 315)

origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public Import getImport(String namespace) {
  for(Import i : getImports()) {
    if(i.hasNamespace() && i.getNamespace().equals(namespace)) {
      return i;
    }
  }
  return null;
}
origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public Map<String,String> findImportPrefixes() {
  Map<String,String> result = new HashMap<String, String>();
  if(hasImport()) {
    Node defsNode = getXmlObjectDOMNode();
    for(int i=0; i<defsNode.getAttributes().getLength(); i++) {
      Attr attr = (Attr) defsNode.getAttributes().item(i);
      if(attr.getName().startsWith("xmlns:")) {
        Import impt = getImport(attr.getValue());
        if(impt!=null) {
          String prefix = attr.getName().replace("xmlns:", "");
          result.put(impt.getNamespace(), prefix);
        }
      }
    }
  }
  return result;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

Map<String,String> prefixes = defs.findImportPrefixes(); 
for(Import impt : imports){
  String prefix = prefixes.get(impt.getNamespace());
  ImportBean importBean;
  if(impt.isXSDImport()){
    NamespaceDeclaration nsd = new NamespaceDeclaration(null, impt.getNamespace());
    importBean = new ImportBean(nsd);
    importBean.setLocation(impt.getLocation().toString());
com.ebmwebsourcing.easybpmn.bpmn20.api.elementImportgetNamespace

Popular methods of Import

  • getBPMNDefinitions
  • isBPMN20Import
  • getSchema
  • getWSDL11Definitions
  • isWSDL11Import
  • isXSDImport
  • getImportContent
  • getImportType
  • getLocation
  • hasNamespace
  • setImportType
  • setLocation
  • setImportType,
  • setLocation,
  • setNamespace

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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