org.rometools.feed.module.base
Interface GlobalInterface

All Superinterfaces:
Serializable
All Known Subinterfaces:
Article, Course, Event, GoogleBase, Housing, Job, Person, Product, Review, ScholarlyArticle, Service, Travel, Unknown, Vehicle, Wanted
All Known Implementing Classes:
GoogleBaseImpl

public interface GlobalInterface
extends Serializable

This is an interface representing the universals.

Version:
$Revision: 1.2 $
Author:
Robert "kebernet" Cooper

Method Summary
 Date getExpirationDate()
          Expiration Date for this item.
 Date getExpirationDateTime()
          Date and time that the item expires.
 String getId()
          Unique id for this item.
 URL[] getImageLinks()
          Images for this item.
 String[] getLabels()
          Labels for this item.
 void setExpirationDate(Date expirationDate)
          Expiration Date for this item.
 void setExpirationDateTime(Date expirationDateTime)
          Date and time that the item expires.
 void setId(String id)
          Unique id for this item.
 void setImageLinks(URL[] imageLinks)
          Images for this item.
 void setLabels(String[] labels)
          Labels for this item.
 

Method Detail

setExpirationDate

void setExpirationDate(Date expirationDate)
Expiration Date for this item.
expiration_date
Details Date that the item expires in ISO 8601 format: YYYY-MM-DD
Example <g:expiration_date>2005-20-12</g:expiration_date>
Attribute of Reference Items, Events, Housing, Jobs, People profiles, Products, Services, Travel, Vehicles, Wanted Ads.
Content type date

Parameters:
expirationDate - the date this entry will expire

getExpirationDate

Date getExpirationDate()
Expiration Date for this item.
expiration_date
Details Date that the item expires in ISO 8601 format: YYYY-MM-DD
Example <g:expiration_date>2005-20-12</g:expiration_date>
Attribute of Reference Items, Events, Housing, Jobs, People profiles, Products, Services, Travel, Vehicles, Wanted Ads.
Content type date

Returns:
the date this entry will expire

setExpirationDateTime

void setExpirationDateTime(Date expirationDateTime)
Date and time that the item expires.
expiration_date_time
Details Date and time that the item expires in ISO 8601 format: YYYY-MM-DDThh:mm:ss
Example <g:expiration_date_time>12-20-05T11:59:59</g:expiration_date_time>
Attribute of Reference Items, Events, Housing, Jobs, People profiles, Products, Services, Travel, Vehicles, Wanted Ads.
Content type dateTime

Parameters:
expirationDateTime - Date and time that the item expires.

getExpirationDateTime

Date getExpirationDateTime()
Date and time that the item expires.
expiration_date_time
Details Date and time that the item expires in ISO 8601 format: YYYY-MM-DDThh:mm:ss
Example <g:expiration_date_time>12-20-05T11:59:59</g:expiration_date_time>
Attribute of Reference Items, Events, Housing, Jobs, People profiles, Products, Services, Travel, Vehicles, Wanted Ads.
Content type dateTime

Returns:
Date and time that the item expires.

setId

void setId(String id)
Unique id for this item.
id
Details Unique alphanumeric identifier for each item - e.g., your internal ID code.
IMPORTANT: Once you submit an item with a unique id, this identifier must not change when you send in a new bulk upload. Each item must retain the same id in subsequent bulk uploads.
Example <g:id>01flx</g:id>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type string

Parameters:
id - unique identifier for this entry

getId

String getId()
Unique id for this item.
id
Details Unique alphanumeric identifier for each item - e.g., your internal ID code.
IMPORTANT: Once you submit an item with a unique id, this identifier must not change when you send in a new bulk upload. Each item must retain the same id in subsequent bulk uploads.
Example <g:id>01flx</g:id>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type string

Returns:
unique identifier for this entry

setImageLinks

void setImageLinks(URL[] imageLinks)
Images for this item.
image_link
Details URL of an associated image if available online. Use your full-sized images; do not use thumbnail images. Up to ten image_links, all placed in between their own <image_link> and </image_link> attributes, can be included with each item. If you do not have an image available, do not include this attribute. Please do not include an image that says "Image not available." Relative URLs and logo images are not acceptable.
Example Acceptable:
<image_link>http://example.com/images/1006.jpg</image_link>
<image_link>http://example.com/i/6.jpg,http://example.com/i/9.jpg</image_link>
Not acceptable:
<image_link>/images/1006.jpg</image_link>
<image_link>example.com/images/1006.jpg</image_link>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type url

Parameters:
imageLinks - URLs to images. Limit 10.

getImageLinks

URL[] getImageLinks()
Images for this item.
image_link
Details URL of an associated image if available online. Use your full-sized images; do not use thumbnail images. Up to ten image_links, all placed in between their own <image_link> and </image_link> attributes, can be included with each item. If you do not have an image available, do not include this attribute. Please do not include an image that says "Image not available." Relative URLs and logo images are not acceptable.
Example Acceptable:
<image_link>http://example.com/images/1006.jpg</image_link>
<image_link>http://example.com/i/6.jpg,http://example.com/i/9.jpg</image_link>
Not acceptable:
<image_link>/images/1006.jpg</image_link>
<image_link>example.com/images/1006.jpg</image_link>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type url

Returns:
URLs to images

setLabels

void setLabels(String[] labels)
Labels for this item.
label
Details A list of classifications the item may fall under. Up to ten user-selected label, each placed in between their own <label> and </label> tags, can be included with each item. These attributes will be used to match your items to search queries. Each attribute value will be checked for policy compliance.
Example Acceptable:
For an automobile in a Vehicles information type:

<g:label>Leather</g:label>
<g:label>Power locks</g:label>
<g:label>sunroof</g:label>
<g:label>ABS</g:label>

For a concert in an Events information type:
<g:label>VIP</g:label>
<g:label>front row</g:label>
<g:label>backstage</g:label>
<g:label>KROCK 101.5</g:label>
<g:label>parking passes</g:label>

Not acceptable:
<g:label> leater, power locks, sunroof, ABS </g:label>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type string

Parameters:
labels - labels for this entry. Limit 10.

getLabels

String[] getLabels()
Labels for this item.
label
Details A list of classifications the item may fall under. Up to ten user-selected label, each placed in between their own <label> and </label> tags, can be included with each item. These attributes will be used to match your items to search queries. Each attribute value will be checked for policy compliance.
Example Acceptable:
For an automobile in a Vehicles information type:

<g:label>Leather</g:label>
<g:label>Power locks</g:label>
<g:label>sunroof</g:label>
<g:label>ABS</g:label>

For a concert in an Events information type:
<g:label>VIP</g:label>
<g:label>front row</g:label>
<g:label>backstage</g:label>
<g:label>KROCK 101.5</g:label>
<g:label>parking passes</g:label>

Not acceptable:
<g:label> leater, power locks, sunroof, ABS </g:label>
Attribute of Reference Items, Events, Housing, Jobs, News and Articles, People profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.
Content type string

Returns:
labels for this entry


Copyright © 2013 ROME Project. All Rights Reserved.