public class

FeatureEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.maps.FeatureEntry

Class Overview

Describes a feature entry.

Summary

Constants
String KIND Feature feature category kind term value.
Fields
public static final Category CATEGORY Feature feature category kind category.
public static final ContentType KML_CONTENT
private boolean hasView True if this feature has an interesting read-only view, for example as driving directions.
private boolean isKmlDefault
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
FeatureEntry()
Default mutable constructor.
FeatureEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void addCustomProperty(CustomProperty customProperty)
Adds a new custom property.
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
void generateAtom(XmlWriter w, ExtensionProfile extProfile)
Override generateAtom() method to change the default namespace to kml.
Link getAtomFeedLink()
Returns the link that provides the URI of the full feed (without any query parameters).
BatchId getBatchId()
Returns the batch identifier.
BatchInterrupted getBatchInterrupted()
Returns the batch interruption information.
BatchOperation getBatchOperation()
Returns the batch operation.
BatchStatus getBatchStatus()
Returns the batch response status information.
List<CustomProperty> getCustomProperties()
Returns the custom properties.
Deleted getDeleted()
Returns the marker for deleted entries.
XmlBlob getKml()
PostalAddress getPostalAddress()
Returns the postal address.
ResourceId getResourceId()
Returns the resource id.
StructuredPostalAddress getStructuredPostalAddress()
Returns the structured postal address.
Link getViewLink()
Gets the URL of the view projection of this feature.
boolean hasBatchId()
Returns whether it has the batch identifier.
boolean hasBatchInterrupted()
Returns whether it has the batch interruption information.
boolean hasBatchOperation()
Returns whether it has the batch operation.
boolean hasBatchStatus()
Returns whether it has the batch response status information.
boolean hasCustomProperties()
Returns whether it has the custom properties.
boolean hasDeleted()
Returns whether it has the marker for deleted entries.
boolean hasPostalAddress()
Returns whether it has the postal address.
boolean hasResourceId()
Returns whether it has the resource id.
boolean hasStructuredPostalAddress()
Returns whether it has the structured postal address.
boolean hasView()
void setBatchId(BatchId batchId)
Sets the batch identifier.
void setBatchInterrupted(BatchInterrupted batchInterrupted)
Sets the batch interruption information.
void setBatchOperation(BatchOperation batchOperation)
Sets the batch operation.
void setBatchStatus(BatchStatus batchStatus)
Sets the batch response status information.
void setDeleted(Deleted deleted)
Sets the marker for deleted entries.
void setHasView(boolean hasView)
void setKml(XmlBlob kml)
Sets the KML content of the feature as an XmlBlob.
void setKmlDefault(boolean isDefault)
void setPostalAddress(PostalAddress postalAddress)
Sets the postal address.
void setResourceId(ResourceId resourceId)
Sets the resource id.
void setStructuredPostalAddress(StructuredPostalAddress structuredPostalAddress)
Sets the structured postal address.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

public static final String KIND

Feature feature category kind term value.

Constant Value: "http://schemas.google.com/maps/2008#feature"

Fields

public static final Category CATEGORY

Feature feature category kind category.

public static final ContentType KML_CONTENT

private boolean hasView

True if this feature has an interesting read-only view, for example as driving directions.

private boolean isKmlDefault

Public Constructors

public FeatureEntry ()

Default mutable constructor.

public FeatureEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void addCustomProperty (CustomProperty customProperty)

Adds a new custom property.

Parameters
customProperty Custom property

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public void generateAtom (XmlWriter w, ExtensionProfile extProfile)

Override generateAtom() method to change the default namespace to kml.

Parameters
w Output writer.
extProfile Extension profile.
Throws
IOException

public Link getAtomFeedLink ()

Returns the link that provides the URI of the full feed (without any query parameters).

Returns
  • Link that provides the URI of the full feed (without any query parameters) or null for none.

public BatchId getBatchId ()

Returns the batch identifier.

Returns
  • batch identifier

public BatchInterrupted getBatchInterrupted ()

Returns the batch interruption information.

Returns
  • batch interruption information

public BatchOperation getBatchOperation ()

Returns the batch operation.

Returns
  • batch operation

public BatchStatus getBatchStatus ()

Returns the batch response status information.

Returns
  • batch response status information

public List<CustomProperty> getCustomProperties ()

Returns the custom properties.

Returns
  • custom properties

public Deleted getDeleted ()

Returns the marker for deleted entries.

Returns
  • marker for deleted entries

public XmlBlob getKml ()

Returns
  • the content of the feature in KML format as an XmlBlob.

public PostalAddress getPostalAddress ()

Returns the postal address.

Returns
  • postal address

public ResourceId getResourceId ()

Returns the resource id.

Returns
  • resource id

public StructuredPostalAddress getStructuredPostalAddress ()

Returns the structured postal address.

Returns
  • structured postal address

public Link getViewLink ()

Gets the URL of the view projection of this feature.

Returns
  • URL of the view projection of this feature or null

public boolean hasBatchId ()

Returns whether it has the batch identifier.

Returns
  • whether it has the batch identifier

public boolean hasBatchInterrupted ()

Returns whether it has the batch interruption information.

Returns
  • whether it has the batch interruption information

public boolean hasBatchOperation ()

Returns whether it has the batch operation.

Returns
  • whether it has the batch operation

public boolean hasBatchStatus ()

Returns whether it has the batch response status information.

Returns
  • whether it has the batch response status information

public boolean hasCustomProperties ()

Returns whether it has the custom properties.

Returns
  • whether it has the custom properties

public boolean hasDeleted ()

Returns whether it has the marker for deleted entries.

Returns
  • whether it has the marker for deleted entries

public boolean hasPostalAddress ()

Returns whether it has the postal address.

Returns
  • whether it has the postal address

public boolean hasResourceId ()

Returns whether it has the resource id.

Returns
  • whether it has the resource id

public boolean hasStructuredPostalAddress ()

Returns whether it has the structured postal address.

Returns
  • whether it has the structured postal address

public boolean hasView ()

public void setBatchId (BatchId batchId)

Sets the batch identifier.

Parameters
batchId Batch identifier or null to reset

public void setBatchInterrupted (BatchInterrupted batchInterrupted)

Sets the batch interruption information.

Parameters
batchInterrupted Batch interruption information or null to reset

public void setBatchOperation (BatchOperation batchOperation)

Sets the batch operation.

Parameters
batchOperation Batch operation or null to reset

public void setBatchStatus (BatchStatus batchStatus)

Sets the batch response status information.

Parameters
batchStatus Batch response status information or null to reset

public void setDeleted (Deleted deleted)

Sets the marker for deleted entries.

Parameters
deleted Marker for deleted entries or null to reset

public void setHasView (boolean hasView)

Parameters
hasView

public void setKml (XmlBlob kml)

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.

Parameters
kml A string representing a KML placemark.

public void setKmlDefault (boolean isDefault)

Parameters
isDefault

public void setPostalAddress (PostalAddress postalAddress)

Sets the postal address.

Parameters
postalAddress Postal address or null to reset

public void setResourceId (ResourceId resourceId)

Sets the resource id.

Parameters
resourceId Resource id or null to reset

public void setStructuredPostalAddress (StructuredPostalAddress structuredPostalAddress)

Sets the structured postal address.

Parameters
structuredPostalAddress Structured postal address or null to reset

public String toString ()

Protected Methods

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.