/* * Copyright 2005 Robert Cooper, Temple of the Screaming Penguin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.rometools.modules.base; import com.rometools.modules.base.types.FloatUnit; /** * This is an interface for the GoogleBase plug in that exposes methods used for wanted ads. */ public interface Wanted extends GlobalInterface { /** * Additional instructions to explain the item’s delivery process. * * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"><b><a * name="delivery_notes"></a>delivery_notes</b></font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Details</b></font></td> * * <td><font size="-1">Additional instructions to explain the item’s delivery process.</font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Example</b></font></td> * <td> * <font size="-1"><g:delivery_notes>Items usually shipped within 24 * hours.<g:/delivery_notes><br> * * </font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Attribute of</b></font></td> * <td> * <font size="-1">Events, Products, Reviews, Services, Travel, Vehicles, Wanted Ads. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Content type</b></font></td> * * <td><font size="-1">string</font></td> * </tr> * </tbody> * </table> * * @param deliveryNotes Additional instructions to explain the item’s delivery process. */ public void setDeliveryNotes(String deliveryNotes); /** * Additional instructions to explain the item’s delivery process. * * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"><b><a * name="delivery_notes"></a>delivery_notes</b></font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Details</b></font></td> * * <td><font size="-1">Additional instructions to explain the item’s delivery process.</font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Example</b></font></td> * <td> * <font size="-1"><g:delivery_notes>Items usually shipped within 24 * hours.<g:/delivery_notes><br> * * </font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Attribute of</b></font></td> * <td> * <font size="-1">Events, Products, Reviews, Services, Travel, Vehicles, Wanted Ads. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Content type</b></font></td> * * <td><font size="-1">string</font></td> * </tr> * </tbody> * </table> * * @return Additional instructions to explain the item’s delivery process. */ public String getDeliveryNotes(); /** * The maximum distance you will deliver an item in any direction. * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"><b><a * name="delivery_radius"></a>delivery_radius</b></font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Details</b></font></td> * <td><font size="-1">The maximum distance you will deliver an item in any direction. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Example</b></font></td> * * <td> * <font size="-1"><g:delivery_radius>10<g:/delivery_radius> </font> <br> * <font size="-1"><g:delivery_radius>10km</g:delivery_radius></font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Attribute of</b></font></td> * * <td> * <font size="-1">Events, Products, Reviews, Services, Travel, Vehicles, Wanted Ads. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Content type</b></font></td> * <td><font size="-1">floatUnit</font></td> * </tr> * * </tbody> * </table> * * @param deliveryRadius The maximum distance you will deliver an item in any direction. */ public void setDeliveryRadius(FloatUnit deliveryRadius); /** * The maximum distance you will deliver an item in any direction. * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"><b><a * name="delivery_radius"></a>delivery_radius</b></font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Details</b></font></td> * <td><font size="-1">The maximum distance you will deliver an item in any direction. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Example</b></font></td> * * <td> * <font size="-1"><g:delivery_radius>10<g:/delivery_radius> </font> <br> * <font size="-1"><g:delivery_radius>10km</g:delivery_radius></font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Attribute of</b></font></td> * * <td> * <font size="-1">Events, Products, Reviews, Services, Travel, Vehicles, Wanted Ads. </font></td> * </tr> * <tr valign="top"> * <td width="120"><font size="-1"><b>Content type</b></font></td> * <td><font size="-1">floatUnit</font></td> * </tr> * * </tbody> * </table> * * @return The maximum distance you will deliver an item in any direction. */ public FloatUnit getDeliveryRadius(); /** * Location of the property. * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"> <b><a * name="location"></a>location</b></font></td> * </tr> * <tr valign="top"> * * <td width="120"><font size="-1"> <b>Details</b></font></td> * <td><font size="-1"> Location of a property. Should include street, city, state, postal code, * and country, in that order. </font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"> <b>Example</b></font></td> * * <td><font size="-1"> <em>Acceptable:</em><br> * <g:location><st1:place>123 Main St, <st1:city>Anytown</st1:city>, * <st1:state>CA</st1:state>, <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location><br> * * <em>Not acceptable:</em><br> * <g:location><st1:place><st1:city>123</st1:city> Main St,, <st1:state>CA</st1:state>, * <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location><br> * <g:location> <st1:place><st1:city>Anytown</st1:city>, <st1:state>CA</st1:state>, * <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location></font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"> <b>Attribute of</b></font></td> * <td><font size="-1"> Reference Items, Events, Housing, Jobs, News and Articles, People * profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.</font></td> * </tr> * * <tr valign="top"> * * <td width="120"><font size="-1"> <b>Content type</b></font></td> * <td><font size="-1"> locationType</font></td> * </tr> * </tbody> * </table> * * @param location Location of the property. */ public void setLocation(String location); /** * Location of the property. * <table border="1" cellpadding="5" cellspacing="0" width="640"> * <tbody> * <tr valign="top"> * * <td colspan="2" bgcolor="#dddddd" valign="top"><font size="-1"> <b><a * name="location"></a>location</b></font></td> * </tr> * <tr valign="top"> * * <td width="120"><font size="-1"> <b>Details</b></font></td> * <td><font size="-1"> Location of a property. Should include street, city, state, postal code, * and country, in that order. </font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"> <b>Example</b></font></td> * * <td><font size="-1"> <em>Acceptable:</em><br> * <g:location><st1:place>123 Main St, <st1:city>Anytown</st1:city>, * <st1:state>CA</st1:state>, <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location><br> * * <em>Not acceptable:</em><br> * <g:location><st1:place><st1:city>123</st1:city> Main St,, <st1:state>CA</st1:state>, * <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location><br> * <g:location> <st1:place><st1:city>Anytown</st1:city>, <st1:state>CA</st1:state>, * <st1:postalcode>12345</st1:postalcode>, * <st1:country-region>USA</st1:country-region></st1:place></g:location></font></td> * * </tr> * <tr valign="top"> * <td width="120"><font size="-1"> <b>Attribute of</b></font></td> * <td><font size="-1"> Reference Items, Events, Housing, Jobs, News and Articles, People * profiles, Products, Reviews, Services, Travel, Vehicles, Wanted Ads.</font></td> * </tr> * * <tr valign="top"> * * <td width="120"><font size="-1"> <b>Content type</b></font></td> * <td><font size="-1"> locationType</font></td> * </tr> * </tbody> * </table> * * @return Location of the property. */ public String getLocation(); }