Examples of IGuid


Examples of org.rssowl.core.model.types.IGuid

      label.getColor();
      label.getName();
    }

    else if (type instanceof IGuid) {
      IGuid guid = (IGuid) type;
      guid.getValue();
    }

    else if (type instanceof ICloud) {
      ICloud cloud = (ICloud) type;
      cloud.getDomain();
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

        processNamespaceAttributes(child, news);
      }

      /* Id */
      else if ("id".equals(name)) { //$NON-NLS-1$
        IGuid guid = Owl.getModelFactory().createGuid(news, child.getText());

        processNamespaceAttributes(child, guid);
      }

      /* Link */
 
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

  private void interpretDate(INews news, String value) {
    news.setPublishDate(DateUtils.parseDate(value));
  }

  private void interpretMessageId(INews news, String value) {
    IGuid guid = Owl.getModelFactory().createGuid(news, value.trim());
    news.setGuid(guid);
    news.setInReplyTo(value);
  }
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

      label.getColor();
      label.getName();
    }

    else if (type instanceof IGuid) {
      IGuid guid = (IGuid) type;
      guid.getValue();
    }

    else if (type instanceof ICloud) {
      ICloud cloud = (ICloud) type;
      cloud.getDomain();
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

      }
    }
  }

  private void processGuid(Element element, INews news) {
    IGuid guid = Owl.getModelFactory().createGuid(news, element.getText());

    /* Check wether the Attributes are to be processed by a Contribution */
    processNamespaceAttributes(element, guid);

    /* Interpret Attributes */
    List< ? > attributes = element.getAttributes();
    for (Iterator< ? > iter = attributes.iterator(); iter.hasNext();) {
      Attribute attribute = (Attribute) iter.next();
      String name = attribute.getName().toLowerCase();

      /* Check wether this Attribute is to be processed by a Contribution */
      if (processAttributeExtern(attribute, guid))
        continue;

      /* Is Permalink */
      else if ("ispermalink".equals(name)) //$NON-NLS-1$
        guid.setPermaLink(Boolean.parseBoolean(attribute.getValue()));
    }
  }
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

    IFeed feed = fFactory.createFeed(null, new URI("feed"));
    INews news1 = fFactory.createNews(null, feed, new Date());

    assertNull(CoreUtils.getLink(news1));

    IGuid guid = fFactory.createGuid(news1, "www.guid.de", false);
    news1.setGuid(guid);
    assertEquals("http://www.guid.de", CoreUtils.getLink(news1));

    news1.setLink(new URI("www.link.de"));
    assertEquals("http://www.link.de", CoreUtils.getLink(news1));
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

    news1.setLink(new URI("http://www.rssowl.org/new"));

    assertFalse(news1.isEquivalent(news2));
    assertFalse(news2.isEquivalent(news1));

    IGuid guid1 = fFactory.createGuid(news1, "http://www.guid.org/", true);
    news1.setGuid(guid1);

    IGuid guid2 = fFactory.createGuid(news2, "http://www.guid.org/", true);
    news2.setGuid(guid2);

    assertTrue(news1.isEquivalent(news2));
    assertTrue(news2.isEquivalent(news1));
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

      label.getColor();
      label.getName();
    }

    else if (type instanceof IGuid) {
      IGuid guid = (IGuid) type;
      guid.getValue();
    }

    else if (type instanceof ICloud) {
      ICloud cloud = (ICloud) type;
      cloud.getDomain();
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

    String link = news.getLinkAsText();
    if (StringUtils.isSet(link))
      return link;

    /* Fallback to Guid if available */
    IGuid guid = news.getGuid();
    if (guid != null) {
      String value = guid.getValue();
      if (URIUtils.looksLikeLink(value))
        return value;
    }

    return null;
View Full Code Here

Examples of org.rssowl.core.persist.IGuid

        processNamespaceAttributes(child, news);
      }

      /* Id */
      else if ("id".equals(name)) { //$NON-NLS-1$
        IGuid guid = Owl.getModelFactory().createGuid(news, child.getText(), null);

        processNamespaceAttributes(child, guid);
      }

      /* Link */
 
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.