public class MetadataEntryExtension
extends java.lang.Object
GoogleBaseEntry.getGoogleBaseMetadata().
The metadata can contain either:
getAttributeHistogram())
getItemTypeDescription())
getStats()
GoogleBaseEntry.| Constructor and Description |
|---|
MetadataEntryExtension(BaseEntry<?> owner)
Creates a MetadataEntryExtension and link it to a
BaseEntry (usually a GoogleBaseEntry). |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public MetadataEntryExtension(BaseEntry<?> owner)
BaseEntry (usually a GoogleBaseEntry).owner - entry this object is linked topublic 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