| java.lang.Object | |
| ↳ | com.google.api.gbase.client.GoogleBaseAttributeType |
Attribute types.
This is an open type enumeration. Use getInstance(String) to
convert a string into a GoogleBaseAttributeType.
When not parsing XML streams, always use the constants defined
in this class when referring to a specific type.
Use equality (A.equals(B)) and not identity (A == B) when comparing
types.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BOOLEAN | Either true or false. | ||||||||||
| DATE | Date for an event, in format YYYY-MM-DD (RFC3339). | ||||||||||
| DATE_TIME | Date and time for an event, in format YYYY-MM-DDThh:mm:ss (RFC3339). | ||||||||||
| DATE_TIME_RANGE | Start and end dates for an event. | ||||||||||
| FLOAT | Numbers with decimal digits. | ||||||||||
| FLOAT_UNIT | Numbers with decimal digits and a string. | ||||||||||
| GROUP | Group of related attributes. | ||||||||||
| INT | Whole number values. | ||||||||||
| INT_UNIT | Whole number value and a string. | ||||||||||
| KNOWN_TYPES | All known types, for getInstance(String). |
||||||||||
| LOCATION | A location, a string describing the address. | ||||||||||
| NUMBER | Any kind of number. | ||||||||||
| NUMBER_UNIT | A number and a string. | ||||||||||
| REFERENCE | A reference to another Google Base Item. | ||||||||||
| SHIPPING | Shipping information. | ||||||||||
| TAX | Tax information. | ||||||||||
| TEXT | Text values. | ||||||||||
| URL | HTTP URL. | ||||||||||
| name | Type name | ||||||||||
| supertype | Supertype (if there is any.) | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get a type instance.
| |||||||||||
Gets the type name.
| |||||||||||
Gets the supertype or null.
| |||||||||||
Checks whether the given type is the same as this type or a subtype.
| |||||||||||
Gets the type name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Date and time for an event, in format YYYY-MM-DDThh:mm:ss (RFC3339).
Start and end dates for an event. An attribute of this type is represented by two date strings in format YYYY-MM-DD (RFC3339)separated by a space. Example:
1975-09-25 1975-09-25
Numbers with decimal digits and a string. Example: 1.5 m
Whole number value and a string. Example: 10 km)
All known types, for getInstance(String).
A number and a string. Example: 1.5 m, 12 lb.
This is a supertype of INT_UNIT and FLOAT_UNIT.
Shipping information. Example:
<country>DE</country> <region>Munich</region> <price>12.50 eur</price> <service>Deutsche Post</service>
Tax information. Example:
<country>DE</country> <region>Munich</region> <rate>12.50 eur</rate> <tax_ship>true</tax_ship>
Type name
| o |
|---|
Get a type instance.
| typeName | Name of a type found in a feed. Current version of
the API will always return one of the types listed in this class
but future versions might support new types, so getInstance
accepts any type name |
|---|
null
if typeName was null
Gets the type name.
Gets the supertype or null.
Checks whether the given type is the same as this type or a subtype.
| subtype |
|---|
subtype is the same type or a subtype
of the current type
Gets the type name.