| com.google.gdata.model.AttributeCreator |
An attribute creator allows setting attribute information, which includes the following pieces:
AttributeKey associated with the metadata. Setting
the name here will override the default.| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the name of the attribute.
| |||||||||||
Sets the requiredness of this attribute.
| |||||||||||
Sets the virtual value for the attribute.
| |||||||||||
Sets whether this attribute is visible.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gdata.model.MetadataCreator
| |||||||||||
Sets the name of the attribute. This is used on parsing to decide which
field to place an attriubte in, and during generation to choose the display
name of the attribute. This should only be set to override the default
name, which is the ID specified in the AttributeKey.
| name | The new name to use for the attribute. |
|---|
Sets the requiredness of this attribute. If set to true, this attribute must appear in both the input and output or a validation error will occur. If set to false, this attribute is optional.
| required | True to set the attribute to required, false to set it to optional (the default). |
|---|
Sets the virtual value for the attribute. This is used as the value of the attribute during parsing and generation.
| virtualValue |
|---|
Sets whether this attribute is visible. If the attribute is not visible then it will not be included in the output. This can be used to hide an attribute in particular contexts (such as RSS or JSON output). It can also be used to explicitly set an attribute to visible that may be hidden by other metadata rules.
| visible | True to make the attribute visible (the default), false to hide it from the output. |
|---|