|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.api.gbase.client.MetadataEntryExtension
public class MetadataEntryExtension
Handle gm: attributes found in histogram and item types feeds.
This object should be accessed using
GoogleBaseEntry.getGoogleBaseMetadata().
The metadata can contain either:
getAttributeHistogram())
getItemTypeDescription())
getStats()
GoogleBaseEntry.
| Constructor Summary | |
|---|---|
MetadataEntryExtension(BaseEntry<?> owner)
Creates a MetadataEntryExtension and link it to a BaseEntry (usually a GoogleBaseEntry). |
|
| Method Summary | |
|---|---|
AttributeHistogram |
getAttributeHistogram()
Gets attribute histogram information. |
GmPublishingPriority.Value |
getGmPublishingPriority()
Returns the publishing priority for the entry or null if
the entry doesn't contain this information. |
ItemTypeDescription |
getItemTypeDescription()
Gets the ItemTypeDescription associated with this extension. |
Stats |
getStats()
Gets statistics, if available. |
boolean |
hasAttributeHistogram()
Checks whether an attribute histogram is available in the current entry. |
boolean |
hasGmDisapproved()
Checks whether the entry contains the gm:disapproved tag, marking
it as a disapproved item. |
boolean |
hasItemTypeDescription()
Checks whether item type description is available in the current entry. |
boolean |
hasStats()
Checks whether statistics information is available in the current entry. |
boolean |
isEmpty()
Checks whether anything has been defined in this extension. |
void |
setGmPublishingPriority(GmPublishingPriority.Value value)
Sets the publishing priority for the entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetadataEntryExtension(BaseEntry<?> owner)
BaseEntry (usually a GoogleBaseEntry).
owner - entry this object is linked to| Method Detail |
|---|
public AttributeHistogram getAttributeHistogram()
java.lang.IllegalStateException - if the feed was not an
histogram feed.public Stats getStats()
public boolean isEmpty()
public boolean hasStats()
getStats() would return a Stats
objectpublic boolean hasAttributeHistogram()
getAttributeHistogram() would workpublic ItemTypeDescription getItemTypeDescription()
ItemTypeDescription associated with this extension.
java.lang.IllegalStateException - if no item type description could
be found in the entry (only item type feeds have item type description
information)public boolean hasItemTypeDescription()
getItemTypeDescription() would workpublic boolean hasGmDisapproved()
gm:disapproved tag, marking
it as a disapproved item.
true if the gm:disapproved tag is present in the
app:control section, false otherwise.public GmPublishingPriority.Value getGmPublishingPriority()
null if
the entry doesn't contain this information.
publishing_priority parameter,
or null if this information is not available.public void setGmPublishingPriority(GmPublishingPriority.Value value)
value - the value for the publish priority
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||