/** * Returns the batch identifier. * * @return batch identifier */ public BatchId getBatchId() { return getExtension(BatchId.class); }
/** * Returns the link that provides the URI of the full feed (without any query * parameters). * * @return Link that provides the URI of the full feed (without any query * parameters) or {@code null} for none. */ public Link getAtomFeedLink() { return getLink(Link.Rel.FEED, Link.Type.ATOM); }
/** * Returns the custom properties. * * @return custom properties */ public List<CustomProperty> getCustomProperties() { return getRepeatingExtension(CustomProperty.class); }
/** * Sets the nested feed link. * * @param feedLink nested feed link or <code>null</code> to reset */ public void setFeedLink(FeedLink feedLink) { if (feedLink == null) { removeExtension(FeedLink.class); } else { setExtension(feedLink); } }
/** * Returns whether it has the nested feed link. * * @return whether it has the nested feed link */ public boolean hasFeedLink() { return hasExtension(FeedLink.class); }
/** * Default mutable constructor. */ public MapEntry() { super(); getCategories().add(CATEGORY); }
/** * Returns whether it has the custom properties. * * @return whether it has the custom properties */ public boolean hasCustomProperties() { return hasRepeatingExtension(CustomProperty.class); }
/** * Adds a new custom property. * * @param customProperty custom property */ public void addCustomProperty(CustomProperty customProperty) { getCustomProperties().add(customProperty); }
/** * Gets the URL of the enclosed feature feed. * * @return URL to the enclosed feed or {@code null} */ public java.net.URL getFeatureFeedUrl() { if (getContent() instanceof com.google.gdata.data.OutOfLineContent) { try { return new java.net.URL(((com.google.gdata.data.OutOfLineContent) getContent()).getUri()); } catch (java.net.MalformedURLException e) { return null; } } return null; }
/** * Sets the nested feed link. * * @param feedLink nested feed link or <code>null</code> to reset */ public void setFeedLink(FeedLink feedLink) { if (feedLink == null) { removeExtension(FeedLink.class); } else { setExtension(feedLink); } }
/** * Returns whether it has the marker for deleted entries. * * @return whether it has the marker for deleted entries */ public boolean hasDeleted() { return hasExtension(Deleted.class); }
/** * Default mutable constructor. */ public MapEntry() { super(); getCategories().add(CATEGORY); }
/** * Returns whether it has the custom properties. * * @return whether it has the custom properties */ public boolean hasCustomProperties() { return hasRepeatingExtension(CustomProperty.class); }
/** * Adds a new custom property. * * @param customProperty custom property */ public void addCustomProperty(CustomProperty customProperty) { getCustomProperties().add(customProperty); }
/** * Gets the URL of the enclosed feature feed. * * @return URL to the enclosed feed or {@code null} */ public java.net.URL getFeatureFeedUrl() { if (getContent() instanceof com.google.gdata.data.OutOfLineContent) { try { return new java.net.URL(((com.google.gdata.data.OutOfLineContent) getContent()).getUri()); } catch (java.net.MalformedURLException e) { return null; } } return null; }
/** * Sets the resource id. * * @param resourceId resource id or <code>null</code> to reset */ public void setResourceId(ResourceId resourceId) { if (resourceId == null) { removeExtension(ResourceId.class); } else { setExtension(resourceId); } }
/** * Returns whether it has the batch interruption information. * * @return whether it has the batch interruption information */ public boolean hasBatchInterrupted() { return hasExtension(BatchInterrupted.class); }
/** * Returns the batch operation. * * @return batch operation */ public BatchOperation getBatchOperation() { return getExtension(BatchOperation.class); }
/** * Returns the link that provides the URI of an alternate format of the * entry's or feed's contents. * * @return Link that provides the URI of an alternate format of the entry's or * feed's contents or {@code null} for none. */ public Link getAtomAlternateLink() { return getLink(Link.Rel.ALTERNATE, Link.Type.ATOM); }
/** * Returns the custom properties. * * @return custom properties */ public List<CustomProperty> getCustomProperties() { return getRepeatingExtension(CustomProperty.class); }