/** * Returns the batch interruption information. * * @return batch interruption information */ public BatchInterrupted getBatchInterrupted() { return getExtension(BatchInterrupted.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 marker for deleted entries. * * @param deleted marker for deleted entries or <code>null</code> to reset */ public void setDeleted(Deleted deleted) { if (deleted == null) { removeExtension(Deleted.class); } else { setExtension(deleted); } }
/** * Returns whether it has the batch response status information. * * @return whether it has the batch response status information */ public boolean hasBatchStatus() { return hasExtension(BatchStatus.class); }
/** * Default mutable constructor. */ public FeatureEntry() { super(); getCategories().add(CATEGORY); }
/** * @return the content of the feature in KML format as an XmlBlob. */ public XmlBlob getKml() { Content content = getContent(); if (null == content || !(content instanceof OtherContent)) { return null; } return ((OtherContent) getContent()).getXml(); }
/** * Adds a new custom property. * * @param customProperty custom property */ public void addCustomProperty(CustomProperty customProperty) { getCustomProperties().add(customProperty); }
/** * Returns whether it has the custom properties. * * @return whether it has the custom properties */ public boolean hasCustomProperties() { return hasRepeatingExtension(CustomProperty.class); }
/** * Sets the KML content of the feature as an XmlBlob. Unless * overridden by setKmlDefault, the default namespace of the entry * is kml, so the KML placemarks don't need any namespace prefix. * * @param kml A string representing a KML placemark. */ public void setKml(XmlBlob kml) { OtherContent content = new OtherContent(); content.setXml(kml); content.setMimeType(KML_CONTENT); setContent(content); } }
/** * 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 marker for deleted entries. * * @return whether it has the marker for deleted entries */ public boolean hasDeleted() { return hasExtension(Deleted.class); }
/** * Default mutable constructor. */ public FeatureEntry() { super(); getCategories().add(CATEGORY); }
/** * @return the content of the feature in KML format as an XmlBlob. */ public XmlBlob getKml() { Content content = getContent(); if (null == content || !(content instanceof OtherContent)) { return null; } return ((OtherContent) getContent()).getXml(); }
/** * Adds a new custom property. * * @param customProperty custom property */ public void addCustomProperty(CustomProperty customProperty) { getCustomProperties().add(customProperty); }
/** * Returns whether it has the custom properties. * * @return whether it has the custom properties */ public boolean hasCustomProperties() { return hasRepeatingExtension(CustomProperty.class); }
/** * Sets the KML content of the feature as an XmlBlob. Unless * overridden by setKmlDefault, the default namespace of the entry * is kml, so the KML placemarks don't need to any namespace prefix. * * @param kml A string representing a KML placemark. */ public void setKml(XmlBlob kml) { OtherContent content = new OtherContent(); content.setXml(kml); content.setMimeType(KML_CONTENT); setContent(content); } }
/** * Sets the postal address. * * @param postalAddress postal address or <code>null</code> to reset */ public void setPostalAddress(PostalAddress postalAddress) { if (postalAddress == null) { removeExtension(PostalAddress.class); } else { setExtension(postalAddress); } }
/** * Returns whether it has the batch operation. * * @return whether it has the batch operation */ public boolean hasBatchOperation() { return hasExtension(BatchOperation.class); }
/** * Returns the structured postal address. * * @return structured postal address */ public StructuredPostalAddress getStructuredPostalAddress() { return getExtension(StructuredPostalAddress.class); }