Examples of newId()


Examples of org.apache.abdera.factory.Factory.newID()

        iri = factory.newIcon();
        iri.setValue("http://example.org/foo");
        assertEquals("http://example.org/foo", iri.getValue().toString());
        iri = factory.newID();
        assertNotNull(iri);
        iri = factory.newID();
        iri.setValue("http://example.org/foo");
        assertEquals("http://example.org/foo", iri.getValue().toString());
        iri = factory.newID();
        iri.setValue("http://example.org/foo");
        assertEquals("http://example.org/foo", iri.getValue().toString());
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

        iri = factory.newID();
        assertNotNull(iri);
        iri = factory.newID();
        iri.setValue("http://example.org/foo");
        assertEquals("http://example.org/foo", iri.getValue().toString());
        iri = factory.newID();
        iri.setValue("http://example.org/foo");
        assertEquals("http://example.org/foo", iri.getValue().toString());
        iri = factory.newIRIElement(Constants.ID, null);
        assertNotNull(iri);
        iri = factory.newIRIElement(Constants.ID, null);
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newIcon();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri = factory.newIcon();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
View Full Code Here

Examples of org.apache.abdera.factory.Factory.newID()

    iri = factory.newID();
    assertNotNull(iri);
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newID();
    iri.setValue("http://example.org/foo");
    assertEquals(iri.getValue().toString(), "http://example.org/foo");
    iri = factory.newIRIElement(Constants.ID, null);
    assertNotNull(iri);
    iri = factory.newIRIElement(Constants.ID, null);
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

        return createEntry(abdera, by, null);
    }

    public static Entry createEntry(Abdera abdera, String by, Feed feed) {
        Entry entry = feed != null ? feed.addEntry() : abdera.newEntry();
        entry.newId();
        Sync sync = getSync(entry, true);
        sync.setId(entry.getId().toString());
        sync.setUpdates(1);
        History history = sync.addHistory();
        history.setSequence(sync.getUpdates());
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

  public static void main(String... args) throws Exception {
   
    Abdera abdera = new Abdera();
    Entry entry = abdera.newEntry();
    entry.newId();
    entry.setTitle("test");
    entry.setContentAsHtml("<b>foo</b>");
    entry.addAuthor("James");
    entry.addCategory("term");
   
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

    Feed f1 = abdera.newFeed();
    Feed f2 = abdera.newFeed();
   
    // Create a couple of sharing-enabled entries
    Entry e1 = SharingHelper.createEntry(abdera, "jms", f1);
    e1.newId();
   
    Entry e2 = SharingHelper.createEntry(abdera, "jms", f1);
    e2.newId();
   
    Entry e3 = (Entry) e2.clone();
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

    // Create a couple of sharing-enabled entries
    Entry e1 = SharingHelper.createEntry(abdera, "jms", f1);
    e1.newId();
   
    Entry e2 = SharingHelper.createEntry(abdera, "jms", f1);
    e2.newId();
   
    Entry e3 = (Entry) e2.clone();
    f2.addEntry(e3);
   
    // concurrent modification of the same entry by two different users in two different feeds
View Full Code Here

Examples of org.apache.abdera.model.Entry.newId()

    Abdera abdera = new Abdera();
    Entry e1 = abdera.newEntry();
    Entry e2 = abdera.newEntry();
   
    e1.newId();
    e2.newId();
   
    // Entry e2 is a reply to Entry e1
    ThreadHelper.addInReplyTo(e2, e1);
   
    // Get the in-reply-to information
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.