Examples of addObject()


Examples of org.apache.jackrabbit.ocm.manager.collectionconverter.ManageableCollection.addObject()

                if (collection instanceof Map) {
                    String name = prop.getName();
                    ((Map) collection).put(name, value);
                } else {
                    collection.addObject(value);
                }
            }

            return collection;
        } catch (ValueFormatException vfe) {
View Full Code Here

Examples of org.apache.jackrabbit.ocm.testmodel.collection.ArrayListElement.addObject()

            customList = new CustomList();

            Element e1 = new Element();
            e1.setId("e1");
            e1.setText("Element 1");
            arrayListElement.addObject(e1);
            list.add(e1);
            customList.add(e1);

            Element e2 = new Element();
            e2.setId("e2");
View Full Code Here

Examples of org.apache.jackrabbit.ocm.testmodel.collection.HashMapElement.addObject()

           
            HashMapElement hashMapElement = new HashMapElement();
            Element e1 = new Element();
            e1.setId("e1");
            e1.setText("Element 1");
            hashMapElement.addObject(e1);
           
            Element e2 = new Element();
            e2.setId("e2");
            e2.setText("Element 2");
            hashMapElement.addObject(e2);
View Full Code Here

Examples of org.apache.turbine.services.cache.GlobalCacheService.addObject()

        // Create object
        cacheObject1 = new CachedObject(testString);
        assertNotNull( "Failed to create a cachable object 1", cacheObject1);

        // Add object to cache
        globalCache.addObject(cacheKey, cacheObject1);

        // Get object from cache
        retrievedObject = globalCache.getObject(cacheKey);
        assertNotNull( "Did not retrieved a cached object 1", retrievedObject);
        assertTrue( "Did not retrieved a correct, expected cached object 1", retrievedObject == cacheObject1);
View Full Code Here

Examples of org.bouncycastle.asn1.BERSequenceGenerator.addObject()

        ContentInfoParser contentInfo = new ContentInfoParser((ASN1SequenceParser)in.readObject());
        SignedDataParser signedData = SignedDataParser.getInstance(contentInfo.getContent(DERTags.SEQUENCE));

        BERSequenceGenerator sGen = new BERSequenceGenerator(out);

        sGen.addObject(CMSObjectIdentifiers.signedData);

        BERSequenceGenerator sigGen = new BERSequenceGenerator(sGen.getRawOutputStream(), 0, true);

        // version number
        sigGen.addObject(signedData.getVersion());
View Full Code Here

Examples of org.bouncycastle.asn1.DERConstructedSequence.addObject()

      ByteArrayOutputStream bOut = new ByteArrayOutputStream();
      DEROutputStream dOut = new DEROutputStream(bOut);
      DERConstructedSequence seq = new DERConstructedSequence();

      seq.addObject(new DERInteger(r));
      seq.addObject(new DERInteger(s));
      dOut.writeObject(seq);

      return bOut.toByteArray();
   }
View Full Code Here

Examples of org.bouncycastle.asn1.DERConstructedSet.addObject()

            DERConstructedSet digestAlgorithms = new DERConstructedSet();
            for(Iterator it = digestalgos.iterator(); it.hasNext();) {
                ASN1EncodableVector algos = new ASN1EncodableVector();
                algos.add(new DERObjectIdentifier((String)it.next()));
                algos.add(new DERNull());
                digestAlgorithms.addObject(new DERSequence(algos));
            }
           
            // Create the contentInfo.
            ASN1EncodableVector v = new ASN1EncodableVector();
            v.add(new DERObjectIdentifier(ID_PKCS7_DATA));
View Full Code Here

Examples of org.bouncycastle.asn1.DERSequenceGenerator.addObject()

    BigInteger[] signature = signer.generateSignature (hash);
    ByteArrayOutputStream s = new ByteArrayOutputStream ();
    try
    {
      DERSequenceGenerator seq = new DERSequenceGenerator (s);
      seq.addObject (new ASN1Integer (signature[0]));
      seq.addObject (new ASN1Integer (signature[1]));
      seq.close ();
      return s.toByteArray ();
    }
    catch ( IOException e )
View Full Code Here

Examples of org.bouncycastle.sasn1.BerSequenceGenerator.addObject()

        throws Exception
    {
       ByteArrayOutputStream bOut = new ByteArrayOutputStream();
       BerSequenceGenerator  seqGen = new BerSequenceGenerator(bOut);
      
       seqGen.addObject(new Asn1Integer(BigInteger.valueOf(0)));
      
       seqGen.addObject(new Asn1ObjectIdentifier("1.1"));
      
       seqGen.close();
      
View Full Code Here

Examples of org.bouncycastle.sasn1.DerSequenceGenerator.addObject()

        throws Exception
    {
       ByteArrayOutputStream bOut = new ByteArrayOutputStream();
       DerSequenceGenerator  seqGen = new DerSequenceGenerator(bOut);
      
       seqGen.addObject(new Asn1Integer(BigInteger.valueOf(0)));
      
       seqGen.addObject(new Asn1ObjectIdentifier("1.1"));
      
       seqGen.close();
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.