Examples of addAttribute()


Examples of org.dom4j.Element.addAttribute()

    }

    public Document createDocument() {
        Document document = DocumentHelper.createDocument();
        Element timefinderEl = document.addElement("timefinder"/*, "xmlnsValue"*/);
        timefinderEl.addAttribute("version", "4.1");

        writeElement(settings, timefinderEl);

        for (Dao<? extends DBInterface> dao : pool.getDaos()) {
            Element el = timefinderEl.addElement("objects");

Examples of org.dom4j.dom.DOMElement.addAttribute()

    {

        DOMDocument report = new DOMDocument();
        DOMElement testsuite = new DOMElement("testsuite");
        report.setRootElement(testsuite);
        testsuite.addAttribute("name", _testSuiteClassName);
        testsuite.addAttribute("errors", Integer.toString(_errorTests.size()));
        testsuite.addAttribute("failures", Integer.toString(_failedTests.size()));
        testsuite.addAttribute("hostname", request.getServerName());
        testsuite.addAttribute("tests", Integer.toString((_testResult != null) ? _testResult.runCount() : 0));
        testsuite.addAttribute("timestamp", new Date().toString());

Examples of org.dom4j.tree.DefaultElement.addAttribute()

   */
  public void buildDocument(DefaultElement parent) {

    DefaultElement orgaElement = new DefaultElement(CPCore.ORGANIZATION);

    orgaElement.addAttribute(CPCore.IDENTIFIER, identifier);
    orgaElement.addAttribute(CPCore.STRUCTURE, structure);

    DefaultElement titleElement = new DefaultElement(CPCore.TITLE);
    titleElement.setText(title);
    orgaElement.add(titleElement);

Examples of org.drools.brms.client.modeldriven.brl.RuleModel.addAttribute()

        String expected = "rule \"my rule\"\n\tno-loop true\n\tdialect \"mvel\"\n\twhen\n\t\tPerson( )\n" +
                          "\t\tAccident( )\n\tthen\n\t\tinsert( new Report() );\nend\n";
        final RuleModel m = new RuleModel();
        m.addLhsItem( new FactPattern( "Person" ) );
        m.addLhsItem( new FactPattern( "Accident" ) );
        m.addAttribute( new RuleAttribute( "no-loop",
                                           "true" ) );

        m.addRhsItem( new ActionInsertFact( "Report" ) );
        m.name = "my rule";

Examples of org.drools.compiler.lang.descr.PackageDescr.addAttribute()

        PackageDescr desc = new PackageDescr("foo");
       
        AttributeDescr at1 = new AttributeDescr("foo", "bar");
        AttributeDescr at2 = new AttributeDescr("foo2", "default");
       
        desc.addAttribute( at1 );
        desc.addAttribute( at2 );
       
        RuleDescr rule = new RuleDescr("abc");
        rule.addAttribute( new AttributeDescr("foo", "overridden") );
       

Examples of org.drools.compiler.lang.descr.RuleDescr.addAttribute()

            // process pattern
            InternalKnowledgePackage pkg = pkgRegistry.getPackage();
            DialectCompiletimeRegistry ctr = pkgRegistry.getDialectCompiletimeRegistry();
            RuleDescr dummy = new RuleDescr(wd.getName() + " Window Declaration");
            dummy.addAttribute(new AttributeDescr("dialect", "java"));
            RuleBuildContext context = new RuleBuildContext(this,
                                                            dummy,
                                                            ctr,
                                                            pkg,
                                                            ctr.getDialect(pkgRegistry.getDialect()));

Examples of org.drools.guvnor.client.common.FormStyleLayout.addAttribute()

        VerticalPanel container = new VerticalPanel();
        VerticalPanel criteria = new VerticalPanel();

        FormStyleLayout ts = new FormStyleLayout();
        final TextBox tx = new TextBox();
        ts.addAttribute( constants.SearchFor(),
                tx );

        final CheckBox caseSensitiveBox = new CheckBox();
        caseSensitiveBox.setValue( false );
        ts.addAttribute( constants.IsSearchCaseSensitive(),

Examples of org.drools.guvnor.client.common.FormStylePopup.addAttribute()

            }
        });

        pop.addAttribute(constants.WillExtendTheFollowingRuleCalled(),
                consDefsCombo);
        pop.addAttribute("",
                addbutton);

        pop.show();
    }

Examples of org.drools.guvnor.client.common.PrettyFormLayout.addAttribute()

        dock.add( idock,
                  DockPanel.EAST );

        form.startSection( constants.ManageRepositoryConfigDesc() );
        form.addAttribute( "",
                           dock );
        form.endSection();
        initWidget( form );
    }

Examples of org.drools.guvnor.client.modeldriven.brl.RuleModel.addAttribute()

  }

  public void testAttributes() {
    final RuleModel m = new RuleModel();
    final RuleAttribute at = new RuleAttribute("salience", "42");
    m.addAttribute(at);
    assertEquals(1, m.attributes.length);
    assertEquals(at, m.attributes[0]);

    final RuleAttribute at2 = new RuleAttribute("agenda-group", "x");
    m.addAttribute(at2);
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.