public static class

GmAttributes.GmAttribute

extends Object
java.lang.Object
   ↳ com.google.api.gbase.client.GmAttributes.GmAttribute

Class Overview

The information defining an attribute, as contained by the gm:attribute element in the itemtypes feed.

Summary

Nested Classes
enum GmAttributes.GmAttribute.Importance Enumeration defining the importance levels that an attribute can have. 
Fields
private final GoogleBaseAttributeId attributeId The attribute id identifying this attribute.
private final GmAttributes.GmAttribute.Importance importance The importance for this attribute.
Public Constructors
GmAttributes.GmAttribute(GoogleBaseAttributeId attributeId, GmAttributes.GmAttribute.Importance importance)
Creates a GmAttribute instance with the specified id and importance.
Public Methods
GoogleBaseAttributeId getAttributeId()
Returns the id of this attribute.
GmAttributes.GmAttribute.Importance getImportance()
Returns the importance for this attribute, or null if not defined.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final GoogleBaseAttributeId attributeId

The attribute id identifying this attribute.

private final GmAttributes.GmAttribute.Importance importance

The importance for this attribute.

Public Constructors

public GmAttributes.GmAttribute (GoogleBaseAttributeId attributeId, GmAttributes.GmAttribute.Importance importance)

Creates a GmAttribute instance with the specified id and importance. A null importance value should be provided when no importance is defined.

Parameters
attributeId The id of the attribute
importance The importance, or null if no information is available
Throws
NullPointerException if the attributeId is null.

Public Methods

public GoogleBaseAttributeId getAttributeId ()

Returns the id of this attribute.

public GmAttributes.GmAttribute.Importance getImportance ()

Returns the importance for this attribute, or null if not defined.