Examples of ItemSourceIF


Examples of de.nava.informa.core.ItemSourceIF

      if (elSource != null) {
        String sourceName = elSource.getTextTrim();
        Attribute sourceAttribute = elSource.getAttribute("url", defNS);
        if (sourceAttribute != null) {
          String sourceLocation = sourceAttribute.getValue().trim();
          ItemSourceIF itemSource = cBuilder.createItemSource(rssItem,
              sourceName, sourceLocation, null);
          rssItem.setSource(itemSource);
        }
      }
View Full Code Here

Examples of de.nava.informa.core.ItemSourceIF

      if (source != null) {
        String sourceName = source.getTextTrim();
        Attribute sourceAttribute = source.getAttribute("url");
        if (sourceAttribute != null) {
          String location = sourceAttribute.getValue().trim();
          ItemSourceIF itemSource =
            cBuilder.createItemSource(rssItem, sourceName, location, null);
          rssItem.setSource(itemSource);
        }
      }
View Full Code Here

Examples of de.nava.informa.core.ItemSourceIF

              .getDate(elSourceTimestamp.getTextTrim());
        }
      }

      if (sourceLocation != null) {
        ItemSourceIF itemSource = cBuilder.createItemSource(rssItem,
            sourceName, sourceLocation, sourceTimestamp);
        rssItem.setSource(itemSource);
      }

      // comments element - use Annotation module
View Full Code Here

Examples of de.nava.informa.core.ItemSourceIF

  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof ItemSourceIF)) return false;

    final ItemSourceIF i = (ItemSourceIF) o;

    if (location != null ? !location.equals(i.getLocation()) : i.getLocation() != null) return false;
    if (name != null ? !name.equals(i.getName()) : i.getName() != null) return false;
    if (timestamp != null ? !timestamp.equals(i.getTimestamp()) : i.getTimestamp() != null) return false;

    return true;
  }
View Full Code Here

Examples of de.nava.informa.core.ItemSourceIF

   
    Query query = session.createQuery("from ItemSource as src where src.name = ? and src.location = ? and src.timestamp = ?  ");
    query.setString(0, name);
    query.setString(1, location);
    query.setTimestamp(2, timestamp);
    ItemSourceIF obj = (ItemSourceIF) query.uniqueResult();
    if (obj == null) {
      obj = new ItemSource(null, name, location, timestamp);
      session.save(obj);
    }
    return obj;
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.