| java.lang.Object | |
| ↳ | com.google.api.gbase.client.GoogleBaseAttribute |
An internal representation for a tag in the g: namespace.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| adjustments | Corresponds to the XML attributes gm:adjusted_name and
gm:adjusted_value, or null if none of these tags is specified. |
||||||||||
| attributeId | Attribute name (with spaces) and type. | ||||||||||
| privateAccess | Corresponds to the XML attribute access="private". |
||||||||||
| subAttributes | Sub-attributes if there are any. | ||||||||||
| subElements | Tag sub-elements (element name, element value) if there are any. | ||||||||||
| textValue | Content of the tag, as text or null for complex tags. | ||||||||||
| thumbnails | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new GoogleBaseAttribute with a name and no type.
| |||||||||||
Creates a new GoogleBaseAttribute with a name and type.
| |||||||||||
Creates a new Extension attribute with a name, type and string content.
| |||||||||||
Creates a new GoogleBaseAttribute with a name and type.
| |||||||||||
Creates a new Extension attribute with a name, type and string content.
| |||||||||||
Creates a new Extension attribute with an
GoogleBaseAttributeId and
string content. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Appends the value to the subAttribute list.
| |||||||||||
Appends the value to a sub-tag value list.
| |||||||||||
Gets the adjustments for this attribute.
| |||||||||||
Returns the attribute identity, name and type.
| |||||||||||
Gets the attribute name.
| |||||||||||
Gets all sub-attributes.
| |||||||||||
Gets the name of all sub-elements in this attribute.
| |||||||||||
Gets a value of a sub-tag.
| |||||||||||
Gets all values correspond to the sub-tag.
| |||||||||||
Gets the reference to the list of thumbnails for this attribute.
| |||||||||||
Gets the type of the attribute, or null.
| |||||||||||
Gets the attribute value, as a string (or null).
| |||||||||||
Returns true if the attribute has sub-attributes.
| |||||||||||
Checks whether a specific sub-element exists.
| |||||||||||
Returns true if the attribute has sub-tags.
| |||||||||||
Returns true if the attribute has thumbnails, false otherwise.
| |||||||||||
Returns true if the attribute has some text content.
| |||||||||||
Checks whether the attribute should only be shown to the owner of
this item.
| |||||||||||
Removes a sub-element.
| |||||||||||
Declares the attribute as being private or public (the default).
| |||||||||||
Sets the value of a sub-tag.
| |||||||||||
Sets the attribute value, as a string.
| |||||||||||
Generates a string representation of this attribute.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Corresponds to the XML attributes gm:adjusted_name and
gm:adjusted_value, or null if none of these tags is specified.
Corresponds to the XML attribute access="private".
Tag sub-elements (element name, element value) if there are any.
Content of the tag, as text or null for complex tags.
Creates a new GoogleBaseAttribute with a name and no type.
| name |
|---|
Creates a new GoogleBaseAttribute with a name and type.
| name | |
|---|---|
| type | Attribute type, one of the TYPE_* defined in this class, or null |
Creates a new Extension attribute with a name, type and string content.
| name | |
|---|---|
| type | Type attribute type, one of the types defined in
GoogleBaseAttributeType, some new type or null |
| textValue | Content of the attribute, as a string |
| NullPointerException | if argument name is null |
|---|
Creates a new GoogleBaseAttribute with a name and type.
| name | |
|---|---|
| type | Attribute type, one of the TYPE_* defined in this class, or null |
| privateAccess | If this attributeId is private |
Creates a new Extension attribute with a name, type and string content.
| name | |
|---|---|
| type | Type attribute type, one of the types defined in
GoogleBaseAttributeType, some new type or null |
| privateAccess | If this attribute is private |
| textValue | Content of the attribute, as a string |
| NullPointerException | if argument name is null |
|---|
Creates a new Extension attribute with an GoogleBaseAttributeId and
string content.
| attributeId | Attribute name and type |
|---|---|
| textValue | Content of the attribute, as a string |
| NullPointerException | if argument name is null |
|---|
Appends the value to the subAttribute list.
| value |
|---|
Appends the value to a sub-tag value list. If the sub-tag doesn't exist, it will be created first. If the value is null, the method will do nothing.
| name | Tag name |
|---|---|
| value | Tag content to be appended. |
| o |
|---|
Gets the adjustments for this attribute. If no adjustments are present,
an empty Adjustments object is created, linked to this attribute
and returned.
Returns the attribute identity, name and type.
Gets the attribute name.
Gets all sub-attributes.
Gets the name of all sub-elements in this attribute.
Gets a value of a sub-tag.
| name | Tag name |
|---|
Gets all values correspond to the sub-tag.
| name | Name |
|---|
Gets the reference to the list of thumbnails for this attribute. The result might be empty, but never null.
Gets the attribute value, as a string (or null).
Returns true if the attribute has sub-attributes.
Checks whether a specific sub-element exists.
| name | Element name |
|---|
Returns true if the attribute has sub-tags.
Returns true if the attribute has thumbnails, false otherwise.
Returns true if the attribute has some text content.
Checks whether the attribute should only be shown to the owner of this item.
Removes a sub-element.
| name | Element names |
|---|
Declares the attribute as being private or public (the default).
| privateAccess |
|---|
Sets the value of a sub-tag.
| name | Tag name |
|---|---|
| value | Tag content, as a string or null to remove the sub-element |
Sets the attribute value, as a string.
| value | Attribute value |
|---|
Generates a string representation of this attribute. The output of this method is in no particular format.