|
GData JavaScript Client 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--google.gdata.gbase.GmAttribute
Describes a list of attribute for an item type.
Defined in gdata.js
Field Summary | |
Object |
$valuesClass_
|
{string|undefined} |
count
Count. |
{string|undefined} |
importance
Importance. |
{string|undefined} |
name
Name. |
{string|undefined} |
type
Type. |
<static> <final> {string} |
IMPORTANCE_OPTIONAL
The attribute is optional. |
<static> <final> {string} |
IMPORTANCE_RECOMMENDED
The attribute is recommended. |
<static> <final> {string} |
IMPORTANCE_REQUIRED
The attribute is required. |
Constructor Summary | |
google.gdata.gbase.GmAttribute(<Object> opt_params)
Constructs a list of attribute for an item type using an object parameter whose property names match the setter method to use for each property. |
Method Summary | |
void
|
addValue(<google.gdata.gbase.GmValue|Object> value)
Adds a new gm value. |
number|undefined
|
getCount()
Returns the count. |
string|undefined
|
getImportance()
Returns the importance. |
string|undefined
|
getName()
Returns the name. |
string|undefined
|
getType()
Returns the type. |
Array.<google.gdata.gbase.GmValue>
|
getValues()
Returns the gm values. |
void
|
setCount(<number|undefined> count)
Sets the count. |
void
|
setImportance(<string|undefined> importance)
Sets the importance. |
void
|
setName(<string|undefined> name)
Sets the name. |
void
|
setType(<string|undefined> type)
Sets the type. |
void
|
setValues(<Array.<google.gdata.gbase.GmValue>|Array.<Object>|undefined> values)
Sets the gm values. |
Field Detail |
Object $valuesClass_
{string|undefined} count
{string|undefined} importance
{string|undefined} name
{string|undefined} type
<static> <final> {string} IMPORTANCE_OPTIONAL
<static> <final> {string} IMPORTANCE_RECOMMENDED
<static> <final> {string} IMPORTANCE_REQUIRED
Constructor Detail |
google.gdata.gbase.GmAttribute(<Object> opt_params)
opt_params
- Optional parameters, each of which is used as the sole parameter to the associated setter method: count, importance, name, type, and values.
Method Detail |
void addValue(<google.gdata.gbase.GmValue|Object> value)
value
- Gm value to add, or object to use as a parameter to the google.gdata.gbase.GmValue constructor.
number|undefined getCount()
string|undefined getImportance()
string|undefined getName()
string|undefined getType()
Array.<google.gdata.gbase.GmValue> getValues()
void setCount(<number|undefined> count)
count
- Count or undefined for none.
void setImportance(<string|undefined> importance)
importance
- Importance or undefined for none.
void setName(<string|undefined> name)
name
- Name or undefined for none.
void setType(<string|undefined> type)
type
- Type or undefined for none.
void setValues(<Array.<google.gdata.gbase.GmValue>|Array.<Object>|undefined> values)
values
- Gm values, where each gm value is added using the addValue() function, or undefined to clear the gm values.
|
GData JavaScript Client 2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |