You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/01/08 16:25:51 UTC
[35/51] [abbrv] [partial] MARMOTTA-397: Reorganized and renamed
Marmotta Sesame Tools
http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GlobalInterface.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GlobalInterface.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GlobalInterface.java
new file mode 100644
index 0000000..f5a41af
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GlobalInterface.java
@@ -0,0 +1,532 @@
+/*
+ * GlobalInterface.java
+ *
+ * Created on November 16, 2005, 5:27 PM
+ *
+ * This library is provided under dual licenses.
+ * You may choose the terms of the Lesser General Public License or the Apache
+ * License at your discretion.
+ *
+ * Copyright (C) 2005 Robert Cooper, Temple of the Screaming Penguin
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ *
+ * 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 org.rometools.feed.module.base;
+
+import java.io.Serializable;
+import java.net.URL;
+import java.util.Date;
+
+
+/**
+ * This is an interface representing the universals.
+ * @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet" Cooper</a>
+ * @version $Revision: 1.2 $
+ */
+public interface GlobalInterface extends Serializable {
+ /**Expiration Date for this item.
+ * <br>
+ *
+ * <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="expiration_date"></a>expiration_date</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ *
+ * <td><font size="-1"> Date that the item expires in <a href="http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html">ISO 8601</a> format:
+ * YYYY-MM-DD</font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"><font size="-1"><b>Example</b></font></td>
+ * <td><font size="-1">
+ * <g:expiration_date>2005-20-12</g:expiration_date>
+ *
+ * </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, People profiles, Products, 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"> date</font></td>
+ * </tr>
+ * </tbody></table>
+ * @param expirationDate the date this entry will expire
+ */
+ public void setExpirationDate(Date expirationDate);
+
+ /** Expiration Date for this item.
+ * <br>
+ *
+ * <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="expiration_date"></a>expiration_date</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ *
+ * <td><font size="-1"> Date that the item expires in <a href="http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html">ISO 8601</a> format:
+ * YYYY-MM-DD</font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"><font size="-1"><b>Example</b></font></td>
+ * <td><font size="-1">
+ * <g:expiration_date>2005-20-12</g:expiration_date>
+ *
+ * </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, People profiles, Products, 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"> date</font></td>
+ * </tr>
+ * </tbody></table>
+ * @return the date this entry will expire
+ */
+ public Date getExpirationDate();
+
+ /**
+ * Date and time that the item expires.
+ *
+ * <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="expiration_date_time"></a>expiration_date_time</b></font></td>
+ *
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ * <td><font size="-1"> Date and time that the item expires in <a href="http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html">ISO 8601</a> format:
+ * YYYY-MM-DDThh:mm:ss</font></td>
+ * </tr>
+ *
+ * <tr valign="top">
+ * <td width="120"><font size="-1"><b>Example</b></font></td>
+ *
+ * <td><font size="-1">
+ * <g:expiration_date_time>12-20-05T11:59:59</g:expiration_date_time>
+ * </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, People profiles, Products, 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"> dateTime</font></td>
+ * </tr>
+ *
+ * </tbody></table>
+ * @param expirationDateTime Date and time that the item expires.
+ */
+ public void setExpirationDateTime(Date expirationDateTime);
+
+ /**
+ * Date and time that the item expires.
+ *
+ * <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="expiration_date_time"></a>expiration_date_time</b></font></td>
+ *
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ * <td><font size="-1"> Date and time that the item expires in <a href="http://www.iso.org/iso/en/prods-services/popstds/datesandtime.html">ISO 8601</a> format:
+ * YYYY-MM-DDThh:mm:ss</font></td>
+ * </tr>
+ *
+ * <tr valign="top">
+ * <td width="120"><font size="-1"><b>Example</b></font></td>
+ *
+ * <td><font size="-1">
+ * <g:expiration_date_time>12-20-05T11:59:59</g:expiration_date_time>
+ * </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, People profiles, Products, 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"> dateTime</font></td>
+ * </tr>
+ *
+ * </tbody></table>
+ * @return Date and time that the item expires.
+ */
+ public Date getExpirationDateTime();
+
+ /** Unique id for this item.
+ * <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="id"></a>id</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ *
+ * <td><font size="-1"> Unique alphanumeric identifier for each item
+ * - e.g., your internal ID code.<br>
+ * 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.</font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Example</b></font></td>
+ * <td> <font size="-1">
+ *
+ * <g:id>01flx</g:id></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"> string</font></td>
+ * </tr>
+ * </tbody></table>
+ * @param id unique identifier for this entry
+ */
+ public void setId(String id);
+
+ /** Unique id for this item.
+ * <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="id"></a>id</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ *
+ * <td><font size="-1"> Unique alphanumeric identifier for each item
+ * - e.g., your internal ID code.<br>
+ * 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.</font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Example</b></font></td>
+ * <td> <font size="-1">
+ *
+ * <g:id>01flx</g:id></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"> string</font></td>
+ * </tr>
+ * </tbody></table>
+ * @return unique identifier for this entry
+ */
+ public String getId();
+
+ /**Images for this item.
+ * <br>
+ *
+ * <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="image_link"></a>image_link</b></font></td>
+ *
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ * <td><font size="-1"> 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.</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>
+ * <image_link>http://example.com/images/1006.jpg</image_link><br>
+ *
+ * <image_link>http://example.com/i/6.jpg,http://example.com/i/9.jpg</image_link><br>
+ *
+ * <em>Not acceptable:</em><br>
+ * <image_link>/images/1006.jpg</image_link><br>
+ * <image_link>example.com/images/1006.jpg</image_link></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"> url</font></td>
+ * </tr>
+ *
+ * </tbody></table>
+ * @param imageLinks URLs to images. Limit 10.
+ */
+ public void setImageLinks(URL[] imageLinks);
+
+ /**Images for this item.
+ * <br>
+ *
+ * <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="image_link"></a>image_link</b></font></td>
+ *
+ * </tr>
+ * <tr valign="top">
+ * <td width="120"> <font size="-1"><b>Details</b></font></td>
+ * <td><font size="-1"> 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.</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>
+ * <image_link>http://example.com/images/1006.jpg</image_link><br>
+ *
+ * <image_link>http://example.com/i/6.jpg,http://example.com/i/9.jpg</image_link><br>
+ *
+ * <em>Not acceptable:</em><br>
+ * <image_link>/images/1006.jpg</image_link><br>
+ * <image_link>example.com/images/1006.jpg</image_link></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"> url</font></td>
+ * </tr>
+ *
+ * </tbody></table>
+ * @return URLs to images
+ */
+ public URL[] getImageLinks();
+
+ /**Labels for this item.
+ * <br>
+ *
+ * <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="label"></a>label</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120">
+ *
+ * <font size="-1"><b>Details</b></font></td>
+ * <td>
+ * <font size="-1">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.</font></td>
+ * </tr>
+ *
+ * <tr valign="top">
+ * <td width="120">
+ * <font size="-1"><b>Example</b></font></td>
+ * <td>
+ *
+ * <font size="-1"><em>Acceptable:<br>
+ * For an automobile in a Vehicles information type:</em><br>
+ * </font>
+ *
+ * <font size="-1"><g:label>Leather</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>Power locks</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>sunroof</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>ABS</g:label><br><br>
+ * </font>
+ * <font size="-1"><em>For a concert in an Events information type:</em></font><br>
+ *
+ * <font size="-1"><g:label>VIP</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>front row</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>backstage</g:label><br>
+ *
+ * </font>
+ *
+ * <font size="-1"><g:label>KROCK 101.5</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>parking passes</g:label><br><br>
+ * </font>
+ * <font size="-1"><em>Not acceptable:</em><br>
+ *
+ * </font>
+ * <font size="-1"><g:label> leater, power locks, sunroof, ABS </g:label></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">string</font></td>
+ *
+ * </tr>
+ * </tbody></table>
+ * @param labels labels for this entry. Limit 10.
+ */
+ public void setLabels(String[] labels);
+
+ /**Labels for this item.
+ * <br>
+ *
+ * <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="label"></a>label</b></font></td>
+ * </tr>
+ * <tr valign="top">
+ * <td width="120">
+ *
+ * <font size="-1"><b>Details</b></font></td>
+ * <td>
+ * <font size="-1">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.</font></td>
+ * </tr>
+ *
+ * <tr valign="top">
+ * <td width="120">
+ * <font size="-1"><b>Example</b></font></td>
+ * <td>
+ *
+ * <font size="-1"><em>Acceptable:<br>
+ * For an automobile in a Vehicles information type:</em><br>
+ * </font>
+ *
+ * <font size="-1"><g:label>Leather</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>Power locks</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>sunroof</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>ABS</g:label><br><br>
+ * </font>
+ * <font size="-1"><em>For a concert in an Events information type:</em></font><br>
+ *
+ * <font size="-1"><g:label>VIP</g:label><br>
+ *
+ * </font>
+ * <font size="-1"><g:label>front row</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>backstage</g:label><br>
+ *
+ * </font>
+ *
+ * <font size="-1"><g:label>KROCK 101.5</g:label><br>
+ * </font>
+ * <font size="-1"><g:label>parking passes</g:label><br><br>
+ * </font>
+ * <font size="-1"><em>Not acceptable:</em><br>
+ *
+ * </font>
+ * <font size="-1"><g:label> leater, power locks, sunroof, ABS </g:label></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">string</font></td>
+ *
+ * </tr>
+ * </tbody></table>
+ * @return labels for this entry
+ */
+ public String[] getLabels();
+}
http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBase.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBase.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBase.java
new file mode 100644
index 0000000..f52ab24
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBase.java
@@ -0,0 +1,62 @@
+/*
+ * GoogleBase.java
+ *
+ * Created on November 16, 2005, 4:37 PM
+ *
+ * This library is provided under dual licenses.
+ * You may choose the terms of the Lesser General Public License or the Apache
+ * License at your discretion.
+ *
+ * Copyright (C) 2005 Robert Cooper, Temple of the Screaming Penguin
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ *
+ * 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 org.rometools.feed.module.base;
+
+import com.sun.syndication.feed.module.Module;
+
+
+/**
+ * This is the root interface for the Google Base module.
+ *
+ * <p>
+ * It supports all the individual data "types". If you want to work with, for
+ * instance, just the Article or Job datatype, you can cast it to the
+ * respective interface and see only methods related to a particular entry
+ * type.
+ * </p>
+ *
+ * @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet"
+ * Cooper</a>
+ * @version $Revision: 1.1 $
+ */
+public interface GoogleBase extends Module,Article,Course,Event,Job,Person,Product,Review,ScholarlyArticle,Service,Travel,Unknown,Vehicle,Wanted,Housing {
+ /** This is the URI for the Google Base Schema. */
+ public static final String URI = "http://base.google.com/ns/1.0";
+}
http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBaseImpl.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBaseImpl.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBaseImpl.java
new file mode 100644
index 0000000..ab89e2f
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/org/rometools/feed/module/base/GoogleBaseImpl.java
@@ -0,0 +1,1255 @@
+/*
+ * GoogleBaseImpl.java
+ *
+ * Created on November 16, 2005, 2:06 PM
+ *
+ * This library is provided under dual licenses.
+ * You may choose the terms of the Lesser General Public License or the Apache
+ * License at your discretion.
+ *
+ * Copyright (C) 2005 Robert Cooper, Temple of the Screaming Penguin
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ *
+ * 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 org.rometools.feed.module.base;
+
+import com.sun.syndication.feed.CopyFrom;
+import com.sun.syndication.feed.impl.EqualsBean;
+
+import org.rometools.feed.module.base.types.CloneableType;
+import org.rometools.feed.module.base.types.CurrencyEnumeration;
+import org.rometools.feed.module.base.types.DateTimeRange;
+import org.rometools.feed.module.base.types.FloatUnit;
+import org.rometools.feed.module.base.types.GenderEnumeration;
+import org.rometools.feed.module.base.types.IntUnit;
+import org.rometools.feed.module.base.types.PaymentTypeEnumeration;
+import org.rometools.feed.module.base.types.PriceTypeEnumeration;
+import org.rometools.feed.module.base.types.ShippingType;
+import org.rometools.feed.module.base.types.ShortDate;
+import org.rometools.feed.module.base.types.Size;
+import org.rometools.feed.module.base.types.YearType;
+
+import java.lang.reflect.Array;
+
+import java.net.URL;
+
+import java.util.Date;
+
+
+/**
+ * This is the implementation class for the GoogleBase module interface.
+ *
+ * @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet"
+ * Cooper</a>
+ * @version $Revision: 1.2 $
+ */
+public class GoogleBaseImpl implements GoogleBase {
+ /** boolean:listing_type */
+ private Boolean listingType;
+
+ /** Can this item be picked up. */
+ private Boolean pickup;
+
+ /** currencyCodeEnumeration:currency */
+ private CurrencyEnumeration currency;
+
+ /** dateTime:expiration_date_time */
+ private Date expirationDateTime;
+
+ /** dateTimeRange:course_date_range */
+ private DateTimeRange courseDateRange;
+
+ /** dateTimeRange:event_date_range */
+ private DateTimeRange eventDateRange;
+
+ /** dateTimeRange:travel_date_range */
+ private DateTimeRange travelDateRange;
+
+ /** float:bathrooms */
+ private Float bathrooms;
+
+ /** float:hoa_dues */
+ private Float hoaDues;
+
+ /** string:rating thoug this a value from 1 to 5 */
+ private Float rating;
+
+ /** float:salary */
+ private Float salary;
+
+ /** percentType:tax_percent */
+ private Float taxPercent;
+
+ /** floatUnit:delivery_radius */
+ private FloatUnit deliveryRadius;
+
+ /** floatUnit:megapixels */
+ private FloatUnit megapixels;
+
+ /** floatUnit:memory */
+ private FloatUnit memory;
+
+ /** floatUnit:price */
+ private FloatUnit price;
+
+ /** floatUnit:processor_speed */
+ private FloatUnit processorSpeed;
+
+ /** floatUnit:weight */
+ private FloatUnit weight;
+
+ /** genderEnumeration:gender */
+ private GenderEnumeration gender;
+
+ /** intUnit:area */
+ private IntUnit area;
+
+ /** integer:age */
+ private Integer age;
+
+ /** integer:bedrooms */
+ private Integer bedrooms;
+
+ /** integer:mileage */
+ private Integer mileage;
+
+ /** integer:pages */
+ private Integer pages;
+
+ /** integer:quantity */
+ private Integer quantity;
+
+ /** locationType:from_location */
+ private String fromLocation;
+
+ /** locationType:location */
+ private String location;
+
+ /** locationType:to_location */
+ private String toLocation;
+
+ /** priceTypeEnumeration:price_type */
+ private PriceTypeEnumeration priceType;
+
+ /** starting/neg:salary_type */
+ private PriceTypeEnumeration salaryType;
+
+ /** date:expiration_date */
+ private ShortDate expirationDate;
+
+ /** date:publishedDate */
+ private ShortDate publishDate;
+
+ /** string:size */
+ private Size size;
+
+ /** string:sexual_orientation */
+ private String SexualOrientation;
+
+ /** string apparel_type */
+ private String apparelType;
+
+ /** string:brand */
+ private String brand;
+
+ /** string:condition */
+ private String condition;
+
+ /** string:course_number */
+ private String courseNumber;
+
+ /** string:course_times */
+ private String courseTimes;
+
+ /** string:delivery_notes */
+ private String deliveryNotes;
+
+ /** string:education */
+ private String education;
+
+ /** string:employer */
+ private String employer;
+
+ /** string:id */
+ private String id;
+
+ /** string:immigration_status */
+ private String immigrationStatus;
+
+ /** stirng:isbn */
+ private String isbn;
+
+ /** string:make */
+ private String make;
+
+ /** string:manufacturer */
+ private String manufacturer;
+
+ /** string:manufacturer_id */
+ private String manufacturerId;
+
+ /** string:marital_status */
+ private String maritalStatus;
+
+ /** string:model */
+ private String model;
+
+ /** string:model_number */
+ private String modelNumber;
+
+ /** string:name_of_item_being_reviewed */
+ private String nameOfItemBeingReviewed;
+
+ /** string:news_source */
+ private String newsSource;
+
+ /** string:occupation */
+ private String occupation;
+
+ /** string:operating_systems */
+ private String operatingSystems;
+
+ /** string:payment_notes */
+ private String paymentNotes;
+
+ /** string:publication_name */
+ private String publicationName;
+
+ /** string:publication_volume */
+ private String publicationVolume;
+
+ /** string:review_type */
+ private String reviewType;
+
+ /** string:reviewer_type */
+ private String reviewerType;
+
+ /** string:school_district */
+ private String schoolDistrict;
+
+ /** string:service_type */
+ private String serviceType;
+
+ /** string:taxRegion */
+ private String taxRegion;
+
+ /** string:university */
+ private String university;
+
+ /** string:upc */
+ private String upc;
+
+ /** string:vehicle_type */
+ private String vehicleType;
+
+ /** string:vin */
+ private String vin;
+
+ /** string:url_of_item_being_reviewed */
+ private URL urlOfItemBeingReviewed;
+
+ /** string:year */
+ private YearType year;
+
+ /** string:actor */
+ private String[] actors;
+
+ /** string:agent */
+ private String[] agents;
+
+ /** string:artist */
+ private String[] artists;
+
+ /** string:author */
+ private String[] authors;
+
+ /** string:color */
+ private String[] color;
+
+ /** string:ethnicities */
+ private String[] ethnicities;
+
+ /** string:format */
+ private String[] format;
+
+ /** url:image_links */
+ private URL[] imageLinks;
+
+ /** string:interested_in */
+ private String[] interestedIn;
+
+ /** string:job_function */
+ private String[] jobFunctions;
+
+ /** string:job_industry */
+ private String[] jobIndustries;
+
+ /** string:job_type */
+ private String[] jobTypes;
+
+ /** string:label */
+ private String[] labels;
+
+ /** string:license */
+ private String[] licenses;
+
+ /** paymentTypeEnumeration:payment_accepted */
+ private PaymentTypeEnumeration[] paymentAccepted;
+
+ /** string:product_type */
+ private String[] productTypes;
+
+ /** string:programming_language */
+ private String[] programmingLanguages;
+
+ /** string:property_type */
+ private String[] propertyTypes;
+
+ /** url:related_link */
+ private URL[] relatedLinks;
+
+ /** shippingType:shipping */
+ private ShippingType[] shipping;
+
+ /** intUnitType:square_footage */
+ private IntUnit[] squareFootages;
+
+ /** string:subject_area */
+ private String[] subjectAreas;
+
+ /** string:subject */
+ private String[] subjects;
+
+ /**
+ * DOCUMENT ME!
+ *
+ * @param actors
+ */
+ public void setActors(String[] actors) {
+ this.actors = actors;
+ }
+
+ public String[] getActors() {
+ return actors == null ? new String[0] : actors;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAgents(String[] agents) {
+ this.agents = agents == null ? new String[0] : agents;
+ }
+
+ public String[] getAgents() {
+ return agents;
+ }
+
+ public void setApparelType(String apparelType) {
+ this.apparelType = apparelType;
+ }
+
+ public String getApparelType() {
+ return apparelType;
+ }
+
+ public void setArea(IntUnit area) {
+ this.area = area;
+ }
+
+ public IntUnit getArea() {
+ return area;
+ }
+
+ public void setArtists(String[] artists) {
+ this.artists = artists;
+ }
+
+ public String[] getArtists() {
+ return artists == null ? new String[0] : artists;
+ }
+
+ public void setAuthors(String[] authors) {
+ this.authors = authors;
+ }
+
+ public String[] getAuthors() {
+ return authors == null ? new String[0] : authors;
+ }
+
+ public void setBathrooms(Float bathrooms) {
+ this.bathrooms = bathrooms;
+ }
+
+ public Float getBathrooms() {
+ return bathrooms;
+ }
+
+ public void setBedrooms(Integer bedrooms) {
+ this.bedrooms = bedrooms;
+ }
+
+ public Integer getBedrooms() {
+ return bedrooms;
+ }
+
+ public void setBrand(String brand) {
+ this.brand = brand;
+ }
+
+ public String getBrand() {
+ return brand;
+ }
+
+ public void setColors(String[] color) {
+ this.color = color;
+ }
+
+ public String[] getColors() {
+ return color == null ? new String[0] : color;
+ }
+
+ public void setCondition(String condition) {
+ this.condition = condition;
+ }
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public void setCourseDateRange(DateTimeRange courseDateRange) {
+ this.courseDateRange = courseDateRange;
+ }
+
+ public DateTimeRange getCourseDateRange() {
+ return courseDateRange;
+ }
+
+ public void setCourseNumber(String courseNumber) {
+ this.courseNumber = courseNumber;
+ }
+
+ public String getCourseNumber() {
+ return courseNumber;
+ }
+
+ public void setCourseTimes(String courseTimes) {
+ this.courseTimes = courseTimes;
+ }
+
+ public String getCourseTimes() {
+ return courseTimes;
+ }
+
+ public void setCurrency(CurrencyEnumeration currency) {
+ this.currency = currency;
+ }
+
+ public CurrencyEnumeration getCurrency() {
+ return currency;
+ }
+
+ public void setDeliveryNotes(String deliveryNotes) {
+ this.deliveryNotes = deliveryNotes;
+ }
+
+ public String getDeliveryNotes() {
+ return deliveryNotes;
+ }
+
+ public void setDeliveryRadius(FloatUnit deliveryRadius) {
+ this.deliveryRadius = deliveryRadius;
+ }
+
+ public FloatUnit getDeliveryRadius() {
+ return deliveryRadius;
+ }
+
+ public void setEducation(String education) {
+ this.education = education;
+ }
+
+ public String getEducation() {
+ return education;
+ }
+
+ public void setEmployer(String employer) {
+ this.employer = employer;
+ }
+
+ public String getEmployer() {
+ return employer;
+ }
+
+ public void setEthnicities(String[] ethnicities) {
+ this.ethnicities = ethnicities;
+ }
+
+ public String[] getEthnicities() {
+ return ethnicities == null ? new String[0] : ethnicities;
+ }
+
+ public void setEventDateRange(DateTimeRange eventDateRange) {
+ this.eventDateRange = eventDateRange;
+ }
+
+ public DateTimeRange getEventDateRange() {
+ return eventDateRange;
+ }
+
+ public void setExpirationDate(Date expirationDate) {
+ if((expirationDate != null)&&!(expirationDate instanceof ShortDate)) {
+ this.expirationDate = new ShortDate(expirationDate);
+ } else {
+ this.expirationDate = null;
+ }
+ }
+
+ public Date getExpirationDate() {
+ return expirationDate;
+ }
+
+ public void setExpirationDateTime(Date expirationDateTime) {
+ this.expirationDateTime = expirationDateTime;
+ }
+
+ public Date getExpirationDateTime() {
+ return expirationDateTime;
+ }
+
+ public void setFormat(String[] format) {
+ this.format = format;
+ }
+
+ public String[] getFormat() {
+ return format == null ? new String[0] : format;
+ }
+
+ public void setFromLocation(String fromLocation) {
+ this.fromLocation = fromLocation;
+ }
+
+ public String getFromLocation() {
+ return fromLocation;
+ }
+
+ public void setGender(GenderEnumeration gender) {
+ this.gender = gender;
+ }
+
+ public GenderEnumeration getGender() {
+ return gender;
+ }
+
+ public void setHoaDues(Float hoaDues) {
+ this.hoaDues = hoaDues;
+ }
+
+ public Float getHoaDues() {
+ return hoaDues;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public void setImageLinks(URL[] imageLinks) {
+ this.imageLinks = imageLinks;
+ }
+
+ public URL[] getImageLinks() {
+ return imageLinks == null ? new URL[0] : imageLinks;
+ }
+
+ public void setImmigrationStatus(String immigrationStatus) {
+ this.immigrationStatus = immigrationStatus;
+ }
+
+ public String getImmigrationStatus() {
+ return immigrationStatus;
+ }
+
+ public void setInterestedIn(String[] interestedIn) {
+ this.interestedIn = interestedIn;
+ }
+
+ public String[] getInterestedIn() {
+ return interestedIn == null ? new String[0] : interestedIn;
+ }
+
+ public Class getInterface() {
+ return GoogleBase.class;
+ }
+
+ public void setIsbn(String isbn) {
+ this.isbn = isbn;
+ }
+
+ public String getIsbn() {
+ return isbn;
+ }
+
+ public void setJobFunctions(String[] jobFunctions) {
+ this.jobFunctions = jobFunctions;
+ }
+
+ public String[] getJobFunctions() {
+ return jobFunctions == null ? new String[0] : jobFunctions;
+ }
+
+ public void setJobIndustries(String[] jobIndustries) {
+ this.jobIndustries = jobIndustries;
+ }
+
+ public String[] getJobIndustries() {
+ return jobIndustries == null ? new String[0] : jobIndustries;
+ }
+
+ public void setJobTypes(String[] jobTypes) {
+ this.jobTypes = jobTypes;
+ }
+
+ public String[] getJobTypes() {
+ return jobTypes == null ? new String[0] : jobTypes;
+ }
+
+ public void setLabels(String[] labels) {
+ this.labels = labels;
+ }
+
+ public String[] getLabels() {
+ return labels == null ? new String[0] : labels;
+ }
+
+ public void setLicenses(String[] licenses) {
+ this.licenses = licenses;
+ }
+
+ public String[] getLicenses() {
+ return licenses == null ? new String[0] : licenses;
+ }
+
+ public void setListingType(Boolean listingType) {
+ this.listingType = listingType;
+ }
+
+ public Boolean getListingType() {
+ return listingType;
+ }
+
+ public void setLocation(String location) {
+ this.location = location;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public void setMake(String make) {
+ this.make = make;
+ }
+
+ public String getMake() {
+ return make;
+ }
+
+ public void setManufacturer(String manufacturer) {
+ this.manufacturer = manufacturer;
+ }
+
+ public String getManufacturer() {
+ return manufacturer;
+ }
+
+ public void setManufacturerId(String manufacturerId) {
+ this.manufacturerId = manufacturerId;
+ }
+
+ public String getManufacturerId() {
+ return manufacturerId;
+ }
+
+ public void setMaritalStatus(String maritalStatus) {
+ this.maritalStatus = maritalStatus;
+ }
+
+ public String getMaritalStatus() {
+ return maritalStatus;
+ }
+
+ public void setMegapixels(FloatUnit megapixels) {
+ this.megapixels = megapixels;
+ }
+
+ public FloatUnit getMegapixels() {
+ return megapixels;
+ }
+
+ public void setMemory(FloatUnit memory) {
+ this.memory = memory;
+ }
+
+ public FloatUnit getMemory() {
+ return memory;
+ }
+
+ public void setMileage(Integer mileage) {
+ this.mileage = mileage;
+ }
+
+ public Integer getMileage() {
+ return mileage;
+ }
+
+ public void setModel(String model) {
+ this.model = model;
+ }
+
+ public String getModel() {
+ return model;
+ }
+
+ public void setModelNumber(String modelNumber) {
+ this.modelNumber = modelNumber;
+ }
+
+ public String getModelNumber() {
+ return modelNumber;
+ }
+
+ public void setNameOfItemBeingReviewed(String nameOfItemBeingReviewed) {
+ this.nameOfItemBeingReviewed = nameOfItemBeingReviewed;
+ }
+
+ public String getNameOfItemBeingReviewed() {
+ return nameOfItemBeingReviewed;
+ }
+
+ public void setNewsSource(String newsSource) {
+ this.newsSource = newsSource;
+ }
+
+ public String getNewsSource() {
+ return newsSource;
+ }
+
+ public void setOccupation(String occupation) {
+ this.occupation = occupation;
+ }
+
+ public String getOccupation() {
+ return occupation;
+ }
+
+ public void setOperatingSystems(String operatingSystems) {
+ this.operatingSystems = operatingSystems;
+ }
+
+ public String getOperatingSystems() {
+ return operatingSystems;
+ }
+
+ public void setPages(Integer pages) {
+ this.pages = pages;
+ }
+
+ public Integer getPages() {
+ return pages;
+ }
+
+ public void setPaymentAccepted(PaymentTypeEnumeration[] paymentAccepted) {
+ this.paymentAccepted = paymentAccepted;
+ }
+
+ public PaymentTypeEnumeration[] getPaymentAccepted() {
+ return paymentAccepted == null ? new PaymentTypeEnumeration[0] : paymentAccepted;
+ }
+
+ public void setPaymentNotes(String paymentNotes) {
+ this.paymentNotes = paymentNotes;
+ }
+
+ public String getPaymentNotes() {
+ return paymentNotes;
+ }
+
+ public void setPickup(Boolean pickup) {
+ this.pickup = pickup;
+ }
+
+ public Boolean getPickup() {
+ return pickup;
+ }
+
+ public void setPrice(FloatUnit price) {
+ this.price = price;
+ }
+
+ public FloatUnit getPrice() {
+ return price;
+ }
+
+ public void setPriceType(PriceTypeEnumeration priceType) {
+ this.priceType = priceType;
+ }
+
+ public PriceTypeEnumeration getPriceType() {
+ return priceType;
+ }
+
+ public void setProcessorSpeed(FloatUnit processorSpeed) {
+ this.processorSpeed = processorSpeed;
+ }
+
+ public FloatUnit getProcessorSpeed() {
+ return processorSpeed;
+ }
+
+ public void setProductTypes(String[] productTypes) {
+ this.productTypes = productTypes;
+ }
+
+ public String[] getProductTypes() {
+ return productTypes == null ? new String[0] : productTypes;
+ }
+
+ public void setProgrammingLanguages(String[] programmingLanguages) {
+ this.programmingLanguages = programmingLanguages;
+ }
+
+ public String[] getProgrammingLanguages() {
+ return programmingLanguages == null ? new String[0] : programmingLanguages;
+ }
+
+ public void setPropertyTypes(String[] propertyTypes) {
+ this.propertyTypes = propertyTypes;
+ }
+
+ public String[] getPropertyTypes() {
+ return propertyTypes == null ? new String[0] : propertyTypes;
+ }
+
+ public void setPublicationName(String publicationName) {
+ this.publicationName = publicationName;
+ }
+
+ public String getPublicationName() {
+ return publicationName;
+ }
+
+ public void setPublicationVolume(String publicationVolume) {
+ this.publicationVolume = publicationVolume;
+ }
+
+ public String getPublicationVolume() {
+ return publicationVolume;
+ }
+
+ public void setPublishDate(Date publishDate) {
+ if((publishDate != null)&&!(publishDate instanceof ShortDate)) {
+ this.publishDate = new ShortDate(publishDate);
+ } else {
+ this.publishDate = null;
+ }
+ }
+
+ public Date getPublishDate() {
+ return publishDate;
+ }
+
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+
+ public Integer getQuantity() {
+ return quantity;
+ }
+
+ public void setRating(Float rating) {
+ this.rating = rating;
+ }
+
+ public Float getRating() {
+ return rating;
+ }
+
+ public void setRelatedLinks(URL[] relatedLinks) {
+ this.relatedLinks = relatedLinks;
+ }
+
+ public URL[] getRelatedLinks() {
+ return relatedLinks == null ? new URL[0] : relatedLinks;
+ }
+
+ public void setReviewType(String reviewType) {
+ this.reviewType = reviewType;
+ }
+
+ public String getReviewType() {
+ return reviewType;
+ }
+
+ public void setReviewerType(String reviewerType) {
+ this.reviewerType = reviewerType;
+ }
+
+ public String getReviewerType() {
+ return reviewerType;
+ }
+
+ public void setSalary(Float salary) {
+ this.salary = salary;
+ }
+
+ public Float getSalary() {
+ return salary;
+ }
+
+ public void setSalaryType(PriceTypeEnumeration salaryType) {
+ this.salaryType = salaryType;
+ }
+
+ public PriceTypeEnumeration getSalaryType() {
+ return salaryType;
+ }
+
+ public void setSchoolDistrict(String schoolDistrict) {
+ this.schoolDistrict = schoolDistrict;
+ }
+
+ public String getSchoolDistrict() {
+ return schoolDistrict;
+ }
+
+ public void setServiceType(String serviceType) {
+ this.serviceType = serviceType;
+ }
+
+ public String getServiceType() {
+ return serviceType;
+ }
+
+ public void setSexualOrientation(String SexualOrientation) {
+ this.SexualOrientation = SexualOrientation;
+ }
+
+ public String getSexualOrientation() {
+ return SexualOrientation;
+ }
+
+ public void setShipping(ShippingType[] shipping) {
+ this.shipping = shipping;
+ }
+
+ public ShippingType[] getShipping() {
+ return shipping == null ? new ShippingType[0] : shipping;
+ }
+
+ public void setSize(Size size) {
+ this.size = size;
+ }
+
+ public Size getSize() {
+ return size;
+ }
+
+ public void setSquareFootages(IntUnit[] squareFootages) {
+ this.squareFootages = squareFootages;
+ }
+
+ public IntUnit[] getSquareFootages() {
+ return squareFootages == null ? new IntUnit[0] : squareFootages;
+ }
+
+ public void setSubjectAreas(String[] subjectAreas) {
+ this.subjectAreas = subjectAreas;
+ }
+
+ public String[] getSubjectAreas() {
+ return subjectAreas == null ? new String[0] : subjectAreas;
+ }
+
+ public void setSubjects(String[] subjects) {
+ this.subjects = subjects;
+ }
+
+ public String[] getSubjects() {
+ return subjects == null ? new String[0] : subjects;
+ }
+
+ public void setTaxPercent(Float taxPercent) {
+ this.taxPercent = taxPercent;
+ }
+
+ public Float getTaxPercent() {
+ return taxPercent;
+ }
+
+ public void setTaxRegion(String taxRegion) {
+ this.taxRegion = taxRegion;
+ }
+
+ public String getTaxRegion() {
+ return taxRegion;
+ }
+
+ public void setToLocation(String toLocation) {
+ this.toLocation = toLocation;
+ }
+
+ public String getToLocation() {
+ return toLocation;
+ }
+
+ public void setTravelDateRange(DateTimeRange travelDateRange) {
+ this.travelDateRange = travelDateRange;
+ }
+
+ public DateTimeRange getTravelDateRange() {
+ return travelDateRange;
+ }
+
+ public void setUniversity(String university) {
+ this.university = university;
+ }
+
+ public String getUniversity() {
+ return university;
+ }
+
+ public void setUpc(String upc) {
+ this.upc = upc;
+ }
+
+ public String getUpc() {
+ return upc;
+ }
+
+ public String getUri() {
+ return GoogleBase.URI;
+ }
+
+ public void setUrlOfItemBeingReviewed(URL urlOfItemBeingReviewed) {
+ this.urlOfItemBeingReviewed = urlOfItemBeingReviewed;
+ }
+
+ public URL getUrlOfItemBeingReviewed() {
+ return urlOfItemBeingReviewed;
+ }
+
+ public void setVehicleType(String vehicleType) {
+ this.vehicleType = vehicleType;
+ }
+
+ public String getVehicleType() {
+ return vehicleType;
+ }
+
+ public void setVin(String vin) {
+ this.vin = vin;
+ }
+
+ public String getVin() {
+ return vin;
+ }
+
+ public void setWeight(FloatUnit weight) {
+ this.weight = weight;
+ }
+
+ public FloatUnit getWeight() {
+ return weight;
+ }
+
+ public void setYear(YearType year) {
+ this.year = year;
+ }
+
+ public YearType getYear() {
+ return year;
+ }
+
+ //TODO: Finish
+ @Override
+ public Object clone() throws CloneNotSupportedException {
+ try {
+ GoogleBaseImpl gbi = new GoogleBaseImpl();
+ gbi.copyFrom(this);
+
+ return gbi;
+ } catch(Exception e) {
+ e.printStackTrace();
+ throw new CloneNotSupportedException();
+ }
+ }
+
+ public void copyFrom(CopyFrom obj) {
+ if(!(obj instanceof GoogleBase)) {
+ return;
+ }
+
+ GoogleBase source = (GoogleBase)obj;
+
+ this.setActors((String[])arrayCopy(source.getActors()));
+ this.setAge(source.getAge());
+ this.setAgents((String[])arrayCopy(source.getAgents()));
+ this.setApparelType(source.getApparelType());
+ this.setArea(source.getArea());
+ this.setArtists((String[])arrayCopy(source.getArtists()));
+ this.setAuthors((String[])arrayCopy(source.getAuthors()));
+ this.setBathrooms(source.getBathrooms());
+ this.setBedrooms(source.getBedrooms());
+ this.setBrand(source.getBrand());
+ this.setColors((String[])arrayCopy(source.getColors()));
+ this.setCondition(source.getCondition());
+ this.setCourseDateRange((DateTimeRange)cloneOrNull(source.getCourseDateRange()));
+ this.setCourseNumber(source.getCourseNumber());
+ this.setCourseTimes(source.getCourseTimes());
+ this.setDeliveryNotes(source.getDeliveryNotes());
+ this.setDeliveryRadius(source.getDeliveryRadius());
+ this.setEducation(source.getEducation());
+ this.setEmployer(source.getEmployer());
+ this.setEthnicities((String[])arrayCopy(source.getEthnicities()));
+ this.setEventDateRange((DateTimeRange)cloneOrNull(source.getEventDateRange()));
+ this.setExpirationDate(dateOrNull(source.getExpirationDate()));
+ this.setExpirationDateTime(dateOrNull(source.getExpirationDateTime()));
+ this.setFormat(source.getFormat());
+ this.setFromLocation(source.getFromLocation());
+ this.setGender(source.getGender());
+ this.setHoaDues(source.getHoaDues());
+ this.setId(source.getId());
+ this.setImageLinks((URL[])arrayCopy(source.getImageLinks()));
+ this.setImmigrationStatus(source.getImmigrationStatus());
+ this.setInterestedIn(source.getInterestedIn());
+ this.setIsbn(source.getIsbn());
+ this.setJobFunctions((String[])arrayCopy(source.getJobFunctions()));
+ this.setJobIndustries((String[])arrayCopy(source.getJobIndustries()));
+ this.setJobTypes((String[])arrayCopy(source.getJobTypes()));
+ this.setLabels((String[])arrayCopy(source.getLabels()));
+ this.setListingType(source.getListingType());
+ this.setLocation(source.getLocation());
+ this.setMake(source.getMake());
+ this.setManufacturer(source.getManufacturer());
+ this.setManufacturerId(source.getManufacturerId());
+ this.setMaritalStatus(source.getMaritalStatus());
+ this.setMegapixels(source.getMegapixels());
+ this.setMemory(source.getMemory());
+ this.setMileage(source.getMileage());
+ this.setModel(source.getModel());
+ this.setModelNumber(source.getModelNumber());
+ this.setNameOfItemBeingReviewed(source.getNameOfItemBeingReviewed());
+ this.setNewsSource(source.getNewsSource());
+ this.setOccupation(source.getOccupation());
+ this.setPages(source.getPages());
+ this.setPaymentAccepted((PaymentTypeEnumeration[])arrayCopy(source.getPaymentAccepted()));
+ this.setPaymentNotes(source.getPaymentNotes());
+ this.setPickup(source.getPickup());
+ this.setPrice(source.getPrice());
+ this.setPriceType(source.getPriceType());
+ this.setProcessorSpeed(source.getProcessorSpeed());
+ this.setProductTypes((String[])arrayCopy(source.getProductTypes()));
+ this.setPropertyTypes((String[])arrayCopy(source.getPropertyTypes()));
+ this.setPublicationName(source.getPublicationName());
+ this.setPublicationVolume(source.getPublicationVolume());
+ this.setPublishDate(dateOrNull(source.getPublishDate()));
+ this.setQuantity(source.getQuantity());
+ this.setRating(source.getRating());
+ this.setReviewType(source.getReviewType());
+ this.setReviewerType(source.getReviewerType());
+ this.setSalary(source.getSalary());
+ this.setSalaryType(source.getSalaryType());
+ this.setServiceType(source.getServiceType());
+ this.setSexualOrientation(source.getSexualOrientation());
+ this.setShipping((ShippingType[])arrayCopy(source.getShipping()));
+ this.setSize(source.getSize());
+ this.setSubjects((String[])arrayCopy(source.getSubjects()));
+ this.setTaxPercent(source.getTaxPercent());
+ this.setTaxRegion(source.getTaxRegion());
+ this.setToLocation(source.getToLocation());
+ this.setTravelDateRange((DateTimeRange)cloneOrNull(source.getTravelDateRange()));
+ this.setUpc(source.getUpc());
+ this.setUrlOfItemBeingReviewed(source.getUrlOfItemBeingReviewed());
+ this.setVehicleType(source.getVehicleType());
+ this.setVin(source.getVin());
+ this.setYear(source.getYear());
+ this.setLicenses((String[])arrayCopy(source.getLicenses()));
+ this.setRelatedLinks((URL[])arrayCopy(source.getRelatedLinks()));
+ this.setSubjectAreas((String[])arrayCopy(source.getSubjectAreas()));
+ this.setProgrammingLanguages((String[])arrayCopy(source.getProgrammingLanguages()));
+ this.setSquareFootages(((IntUnit[])arrayCopy(source.getSquareFootages())));
+ this.setCurrency(source.getCurrency());
+ this.setSchoolDistrict(source.getSchoolDistrict());
+ this.setUniversity(source.getUniversity());
+ this.setWeight(source.getWeight());
+ this.setOperatingSystems(source.getOperatingSystems());
+ }
+
+ public boolean equals(Object obj) {
+ EqualsBean eBean = new EqualsBean(this.getClass(),this);
+
+ return eBean.beanEquals(obj);
+ }
+
+ private Object arrayCopy(Object[] source) {
+ if(source == null) {
+ return null;
+ }
+
+ Object[] array = (Object[])Array.newInstance(source.getClass().getComponentType(),source.length);
+
+ for(int i = 0; i < source.length; i++) {
+ array[i] = source[i];
+ }
+
+ return array;
+ }
+
+ private Object cloneOrNull(CloneableType o) {
+ if(o == null) {
+ return null;
+ } else {
+ return o.clone();
+ }
+ }
+
+ private Date dateOrNull(Date date) {
+ if(date == null) {
+ return null;
+ } else {
+ return new Date(date.getTime());
+ }
+ }
+}