Examples of addImport()


Examples of javax.wsdl.extensions.schema.Schema.addImport()

                                (Schema)def.getExtensionRegistry().createExtension(Types.class,
                                                     new QName(Constants.URI_2001_SCHEMA_XSD, "schema"));
                            SchemaImport schemaimport =  wsdlSchema.createImport();
                            schemaimport.setNamespaceURI(ReferenceConstants.WSADDRESSING_NAMESPACE);
                            schemaimport.setSchemaLocationURI(ReferenceConstants.WSADDRESSING_LOCATION);
                            wsdlSchema.addImport(schemaimport);
                           
                            // add the import and the prefix to the definition
                            def.getTypes().addExtensibilityElement(wsdlSchema);
                            CastUtils.cast(def.getNamespaces(), String.class, String.class)
                                .put(ReferenceConstants.WSADDRESSING_PREFIX, typeNamespace);
View Full Code Here

Examples of net.jangaroo.jooc.model.CompilationUnitModel.addImport()

    code = null;
    CompilationUnitModel compilationUnitModel = new CompilationUnitModel("");
    modelStack.push(compilationUnitModel);
    compilationUnit.getPackageDeclaration().visit(this);
    for (String publicApiDependency : new TreeSet<String>(compilationUnit.getPublicApiDependencies())) {
      compilationUnitModel.addImport(publicApiDependency);
    }
    visitAll(compilationUnit.getDirectives());
    compilationUnit.getPrimaryDeclaration().visit(this);
  }
View Full Code Here

Examples of org.allspice.structured.FileUnit.addImport()

**/
private static final FileUnit reduce22(PositionRange range,Parser parser,ParserState state) {
      FileUnit fileunit = (FileUnit)state.reductions.tail.tail.tail.head.o ;
      String importspec = (String)state.reductions.tail.head.o ;
{
  return fileunit.addImport(importspec) ;
}
}
private static final Rule RULE22 = new Rule("fileunit","fileunit","import","importspec",";");
/**
* @param range
View Full Code Here

Examples of org.apache.axis2.rmi.metadata.xml.XmlSchema.addImport()

                // import the complex type namespace if needed.
                if (!xmlSchema.containsNamespace(this.xmlType.getParentType().getQname().getNamespaceURI())){
                    // if the element namespace does not exists we have to add it
                    if (!this.xmlType.getParentType().getQname().getNamespaceURI().equals(Constants.URI_2001_SCHEMA_XSD)) {
                        XmlImport xmlImport = new XmlImport(this.xmlType.getParentType().getQname().getNamespaceURI());
                        xmlSchema.addImport(xmlImport);
                    }
                    xmlSchema.addNamespace(this.xmlType.getParentType().getQname().getNamespaceURI());
                }

            }
View Full Code Here

Examples of org.apache.click.util.PageImports.addImport()

    public PageImports getPageImports() {
        PageImports pageImports = super.getPageImports();

        String imports = ClickUtils.createHtmlImport(IMPORTS, getContext());

        pageImports.addImport(imports);
        pageImports.setInitialized(true);

        return pageImports;
    }
View Full Code Here

Examples of org.apache.cxf.tools.common.model.JavaExceptionClass.addImport()

                    exceptionSuperclassString = exceptionSuperclass;
                }
                setAttributes("exceptionSuperclass", exceptionSuperclassString);
                if (!exceptionSuperclass.startsWith("java.lang.")
                    && !exceptionSuperclassString.equals(exceptionSuperclass)) {
                    expClz.addImport(exceptionSuperclass);
                }
                setCommonAttributes();
                doWrite(FAULT_TEMPLATE, parseOutputName(expClz.getPackageName(),
                        expClz.getName()));
            }
View Full Code Here

Examples of org.apache.cxf.tools.common.model.JavaInterface.addImport()

                    }

                    JavaException exceptionClass = getExceptionClass(method, faultInfo);                   
                    if (!StringUtils.isEmpty(exceptionClass.getPackageName())
                        && !exceptionClass.getPackageName().equals(intf.getPackageName())) {
                        intf.addImport(exceptionClass.getClassName());
                    }                   

                    JAnnotation faultAnnotation = new JAnnotation(FaultAction.class);
                    faultAnnotation.addElement(new JAnnotationElement("className", exceptionClass));
                    faultAnnotation.addElement(new JAnnotationElement("value",
View Full Code Here

Examples of org.apache.cxf.tools.java2wsdl.generator.wsdl11.model.WrapperBeanClass.addImport()

        // Revisit: why annotation is string?
        wrapperBeanClass.addAnnotation(xmlRootElement.toString());
        wrapperBeanClass.addAnnotation(xmlAccessorType.toString());
        wrapperBeanClass.addAnnotation(xmlType.toString());

        wrapperBeanClass.addImport("javax.xml.bind.annotation.XmlAccessType");
        wrapperBeanClass.addImport("javax.xml.bind.annotation.XmlAccessorType");
        wrapperBeanClass.addImport("javax.xml.bind.annotation.XmlRootElement");
        wrapperBeanClass.addImport("javax.xml.bind.annotation.XmlType");
    }
}
View Full Code Here

Examples of org.apache.felix.sigil.common.core.internal.model.osgi.BundleModelElement.addImport()

        // imports
        for (IPackageImport import1 : bundle.getImports())
        {
            IPackageImport clone = (IPackageImport) import1.clone();
            clone.setParent(null);
            info.addImport(clone);
        }

        // requires
        for (IRequiredBundle require : bundle.getRequires())
        {
View Full Code Here

Examples of org.apache.felix.sigil.common.model.eclipse.ILibrary.addImport()

        library.setName(name);
        library.setVersion(version);

        for (IPackageImport pi : packageImports)
        {
            library.addImport(pi);
        }

        return library;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.