Examples of addAttribute()


Examples of org.bouncycastle.x509.X509V2AttributeCertificateGenerator.addAttribute()

        // roleSyntax OID: 2.5.24.72
        X509Attribute attributes = new X509Attribute("2.5.24.72",
                new DERSequence(roleSyntax));

        gen.addAttribute(attributes);
        gen.setHolder(new AttributeCertificateHolder(iCert));
        gen.setIssuer(new AttributeCertificateIssuer(new X509Principal("cn=test")));
        gen.setNotBefore(new Date(System.currentTimeMillis() - 50000));
        gen.setNotAfter(new Date(System.currentTimeMillis() + 50000));
        gen.setSerialNumber(BigInteger.ONE);

Examples of org.candlepin.common.jackson.DynamicFilterData.addAttribute()

        // nor exclude is provided, so we don't accidentally filter anything
        DynamicFilterData filterData = new DynamicFilterData(!containsIncl);

        if (containsExcl) {
            for (String toExclude : queryParams.get("exclude")) {
                filterData.addAttribute(toExclude);
            }
        }
        else if (containsIncl) {
            for (String toInclude : queryParams.get("include")) {
                filterData.addAttribute(toInclude);

Examples of org.candlepin.model.Pool.addAttribute()

    }

    protected Pool setupVirtLimitPool() {
        Product product = new Product(productId, "A virt_limit product");
        Pool pool = TestUtil.createPool(owner, product);
        pool.addAttribute(new PoolAttribute("virt_limit", "10"));
        pool.setId("fakeid" + TestUtil.randomInt());
        when(this.prodAdapter.getProductById(productId)).thenReturn(product);
        return pool;
    }
}

Examples of org.candlepin.model.Product.addAttribute()

    }

    @Test
    public void testQuantityIncrement() {
        Product product2 = new Product("blah", "blah");
        product2.addAttribute(new ProductAttribute("instance_multiplier", "12"));
        productCurator.create(product2);

        Pool pool2 = createPoolAndSub(owner1, product2, 500L,
            TestUtil.createDate(2000, 1, 1), TestUtil.createDate(3000, 1, 1));

Examples of org.castor.xmlctf.xmldiff.xml.nodes.Element.addAttribute()

                idx = attName.indexOf(':');
                if (idx > 0) {
                    ns = element.getNamespaceURI(attName.substring(0, idx));
                    attName = attName.substring(idx + 1);
                }
                element.addAttribute(new Attribute(ns, attName, atts.getValue(i)));
            }
        }

        // Set the namespace on this Element, if one is explicit or defaulted
        if (prefix != null && prefix.length() > 0) {

Examples of org.codehaus.aspectwerkz.metadata.MethodMetaData.addAttribute()

                    ExpressionTest.class.getDeclaredMethod("set", new Class[]{})
            );
            MethodMetaData methodMetaData2 = ReflectionMetaDataMaker.createMethodMetaData(
                    ExpressionTest.class.getDeclaredMethod("get", new Class[]{})
            );
            methodMetaData2.addAttribute(new CustomAttribute("ATTR", "", null));
            MethodMetaData methodMetaData3 = ReflectionMetaDataMaker.createMethodMetaData(
                    ExpressionTest.class.getDeclaredMethod("suite", new Class[]{})
            );

            assertTrue(root.match(classMetaData1, PointcutType.EXECUTION));

Examples of org.codehaus.plexus.util.xml.PrettyPrintXMLWriter.addAttribute()

                    + descriptor.getAbsolutePath() + "]", ex);
        }

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("services");
        writer.addAttribute("binding-component", bc ? "true" : "false");

Examples of org.codehaus.plexus.util.xml.XMLWriter.addAttribute()

                    + descriptor.getAbsolutePath() + "]", ex);
        }

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("services");
        writer.addAttribute("binding-component", bc ? "true" : "false");

Examples of org.codehaus.staxmate.out.SMOutputElement.addAttribute()

    }

    it = xmlObject.getAttributes().entrySet().iterator();
    while (it.hasNext()) {
      Entry<String, String> entry = it.next();
      smOutputElement.addAttribute(entry.getKey(), entry.getValue());
    }

    int indent = indentCount;
    if (sbmlDocument.isSetNotes()) {
      writeNotes(sbmlDocument, smOutputElement, streamWriter,

Examples of org.cybergarage.xml.Node.addAttribute()

    m.setValue(MINOR_VALUE);
    sp.addNode(m);
   
    //Node scpd = new Node(SCPD_ROOTNODE,SCPD_ROOTNODE_NS); wrong!
    Node scpd = new Node(SCPD_ROOTNODE);
    scpd.addAttribute("xmlns",SCPD_ROOTNODE_NS);
    scpd.addNode(sp);
    getServiceData().setSCPDNode(scpd);
  }

  public Service(Node node)
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.