Examples of addPackage()


Examples of cn.shenyanchao.ut.builder.CompilationUnitBuilder.addPackage()

        ClassTypeBuilder classTypeBuilder = new ClassTypeBuilder(className + Consts.TEST_SUFFIX);

        List<Comment> existComments = testCU.getComments();
        compilationUnitBuilder.addComments(existComments);
        PackageDeclaration existPackageDeclaration = testCU.getPackage();
        compilationUnitBuilder.addPackage(existPackageDeclaration);
        //process import
        List<ImportDeclaration> existImports = testCU.getImports();
        compilationUnitBuilder.addImports(existImports);
        //process methods
        for (MethodDeclaration methodDeclaration : methodDeclarations) {
View Full Code Here

Examples of com.axemblr.provisionr.api.software.SoftwareBuilder.addPackage()

    Software apply(Software software) {
        SoftwareBuilder result = software.toBuilder();

        // Add all the new packages
        for (String pkg : packages) {
            result.addPackage(pkg);
        }

        // Add all the new files
        for (FileEntry entry : files) {
            result.file(entry.getSource(), entry.getDestination());
View Full Code Here

Examples of com.bring.api.shippingguide.request.Shipment.addPackage()

        packet.withWeightInGrams("4233");

        Shipment shipment = new Shipment();
        shipment.withFromPostalCode("1409");
        shipment.withToPostalCode("7050");
        shipment.addPackage(packet);
        shipment.addProduct(ProductType.SERVICEPAKKE);

        // Fetch price information from Bring
        ShippingGuideResult shippingGuideResult = bringService.queryShippingGuide(shipment, QueryType.PRICE);
        String amountWithVAT = shippingGuideResult
View Full Code Here

Examples of com.dotcms.repackage.org.drools.RuleBase.addPackage()

        builder.addPackageFromXml(source);
       
        final Package pkg = builder.getPackage();
       
        final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
        ruleBase.addPackage(pkg);
        return ruleBase;
    }
  /*
  private static RuleBase readRulesFromDSL(String DRLFileName, String DSLFileName) throws Exception {
      final Reader source = new InputStreamReader(new FileInputStream(DRLFileName));
View Full Code Here

Examples of com.google.test.metric.RegExpWhiteList.addPackage()

      PrintStream errorStream = new PrintStream(new FileOutputStream(
          new File(reportDirectory, TestabilityConstants.ERROR_LOG_FILENAME)));

      RegExpWhiteList whitelist = new RegExpWhiteList("java.");
      for (String packageName : whitelistPackages) {
        whitelist.addPackage(packageName);
      }
     
      CostModel costModel = new CostModel(cyclomaticCost, globalCost, constructorMultiplier);
      JavaClassRepository classRepository = new JavaClassRepository(classPath);
      MetricComputer computer = new MetricComputer(classRepository, errorStream, whitelist, printDepth);
View Full Code Here

Examples of com.thoughtworks.qdox.model.ModelBuilder.addPackage()

        ModelBuilder binaryBuilder =
                new ModelBuilder(classLibrary, docletTagFactory);

        // Set the package name and class name
        if (packageName == null) {
            binaryBuilder.addPackage(getPackageName(name));
        } else {
            binaryBuilder.addPackage(packageName);
        }

        ClassDef classDef = new ClassDef();
View Full Code Here

Examples of de.mhus.lib.form2.binding.PackagingDataSource.addPackage()

      control.setFocusManager(new InformationFocus());
     
      PackagingDataSource ds = new PackagingDataSource();
      ds.setDefaultSource(new MemoryDataSource());
      MyModel pojo = new MyModel();
      ds.addPackage(DataSource.PACKAGE_PERSISTENT, new PojoDataSource(pojo));
     
      LayoutModelByConfig layout = new LayoutModelByConfig();
      layout.setNls(nls);
      layout.setDefinition(model);
      layout.setDataSource(ds);
View Full Code Here

Examples of jdepend.framework.DependencyConstraint.addPackage()

    JDepend jdepend = new JDepend(packageFilter);
    jdepend.addDirectory("classes");

    DependencyConstraint constraint = new DependencyConstraint();
    // Sweet Home 3D packages
    JavaPackage sweetHome3DModel = constraint.addPackage("com.eteks.sweethome3d.model");
    JavaPackage sweetHome3DTools = constraint.addPackage("com.eteks.sweethome3d.tools");
    JavaPackage sweetHome3DPlugin = constraint.addPackage("com.eteks.sweethome3d.plugin");
    JavaPackage sweetHome3DViewController = constraint.addPackage("com.eteks.sweethome3d.viewcontroller");
    JavaPackage sweetHome3DSwing = constraint.addPackage("com.eteks.sweethome3d.swing");
    JavaPackage sweetHome3DJava3D = constraint.addPackage("com.eteks.sweethome3d.j3d");
View Full Code Here

Examples of jdepend.framework.PackageFilter.addPackage()

   * Tests that the package dependencies constraint is met for the analyzed packages.
   */
  public void testPackageDependencies() throws IOException {
    PackageFilter packageFilter = new PackageFilter();
    // Ignore Java packages and Swing sub packages
    packageFilter.addPackage("java.*");
    packageFilter.addPackage("javax.swing.*");
    // Ignore JUnit tests
    packageFilter.addPackage("com.eteks.sweethome3d.junit");
   
    JDepend jdepend = new JDepend(packageFilter);
View Full Code Here

Examples of org.apache.felix.sigil.common.core.internal.model.eclipse.SigilBundle.addPackage()

        }

        // contents
        for (String pkg : bundle.getContents())
        {
            sigilBundle.addPackage(pkg);
        }

        // sources
        for (String source : config.getList(null, BldConfig.L_SRC_CONTENTS))
        {
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.