roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r521988 [1/2] - in /incubator/roller/trunk: ./ src/org/apache/roller/pojos/wrapper/
Date Sat, 24 Mar 2007 06:59:48 GMT
Author: agilliland
Date: Fri Mar 23 23:59:47 2007
New Revision: 521988

URL: http://svn.apache.org/viewvc?view=rev&rev=521988
Log:
pojo wrappers are now static.

the CommentDataWrapper has multiple methods which now have built-in support for html escaping in order to prevent possible XSS vulnerabilities.


Added:
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/BookmarkDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/CommentDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/EntryAttributeDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/FolderDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/RefererDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/TemplateWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/UserDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogCategoryDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryTagDataWrapper.java
    incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WebsiteDataWrapper.java
Modified:
    incubator/roller/trunk/build.xml

Modified: incubator/roller/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/build.xml?view=diff&rev=521988&r1=521987&r2=521988
==============================================================================
--- incubator/roller/trunk/build.xml (original)
+++ incubator/roller/trunk/build.xml Fri Mar 23 23:59:47 2007
@@ -95,7 +95,7 @@
 <!-- XDoclet code generation -->
 <!-- ********************************************************************* -->
 
-<target name="generate" depends="gen-wrappers,gen-forms" >
+<target name="generate" depends="gen-forms" >
 </target>
 
 <!-- ============================================== -->

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/BookmarkDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/BookmarkDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/BookmarkDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/BookmarkDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.BookmarkData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.BookmarkData
+ */
+public class BookmarkDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private BookmarkData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private BookmarkDataWrapper(BookmarkData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static BookmarkDataWrapper wrap(BookmarkData toWrap) {
+        if(toWrap != null)
+            return new BookmarkDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDescription()
+    {   
+        return this.pojo.getDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getUrl()
+    {   
+        return this.pojo.getUrl();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Integer getWeight()
+    {   
+        return this.pojo.getWeight();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Integer getPriority()
+    {   
+        return this.pojo.getPriority();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getImage()
+    {   
+        return this.pojo.getImage();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getFeedUrl()
+    {   
+        return this.pojo.getFeedUrl();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.FolderDataWrapper getFolder()
+    {
+        return org.apache.roller.pojos.wrapper.FolderDataWrapper.wrap(this.pojo.getFolder());
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.BookmarkData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/CommentDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/CommentDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/CommentDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/CommentDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,216 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.commons.lang.StringEscapeUtils;
+import org.apache.roller.pojos.CommentData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.CommentData
+ */
+public class CommentDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private CommentData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private CommentDataWrapper(CommentData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static CommentDataWrapper wrap(CommentData toWrap) {
+        if(toWrap != null)
+            return new CommentDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper getWeblogEntry()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap(this.pojo.getWeblogEntry());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return StringEscapeUtils.escapeHtml(this.pojo.getName());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEmail()
+    {   
+        return StringEscapeUtils.escapeHtml(this.pojo.getEmail());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getUrl()
+    {   
+        return StringEscapeUtils.escapeHtml(this.pojo.getUrl());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getContent()
+    {   
+        return StringEscapeUtils.escapeHtml(this.pojo.getContent());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.sql.Timestamp getPostTime()
+    {   
+        return this.pojo.getPostTime();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getStatus()
+    {   
+        return this.pojo.getStatus();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getNotify()
+    {   
+        return this.pojo.getNotify();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRemoteHost()
+    {   
+        return this.pojo.getRemoteHost();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getReferrer()
+    {   
+        return StringEscapeUtils.escapeHtml(this.pojo.getReferrer());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getUserAgent()
+    {   
+        return this.pojo.getUserAgent();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getSpam()
+    {   
+        return this.pojo.getSpam();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getPending()
+    {   
+        return this.pojo.getPending();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getApproved()
+    {   
+        return this.pojo.getApproved();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTimestamp()
+    {   
+        return this.pojo.getTimestamp();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.CommentData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/EntryAttributeDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/EntryAttributeDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/EntryAttributeDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/EntryAttributeDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.EntryAttributeData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.EntryAttributeData
+ */
+public class EntryAttributeDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private EntryAttributeData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private EntryAttributeDataWrapper(EntryAttributeData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static EntryAttributeDataWrapper wrap(EntryAttributeData toWrap) {
+        if(toWrap != null)
+            return new EntryAttributeDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper getEntry()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap(this.pojo.getEntry());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getValue()
+    {   
+        return this.pojo.getValue();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.EntryAttributeData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/FolderDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/FolderDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/FolderDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/FolderDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,198 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.FolderData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.FolderData
+ */
+public class FolderDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private FolderData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private FolderDataWrapper(FolderData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static FolderDataWrapper wrap(FolderData toWrap) {
+        if(toWrap != null)
+            return new FolderDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDescription()
+    {   
+        return this.pojo.getDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getPath()
+    {   
+        return this.pojo.getPath();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WebsiteDataWrapper getWebsite()
+    {
+        return org.apache.roller.pojos.wrapper.WebsiteDataWrapper.wrap(this.pojo.getWebsite());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.FolderDataWrapper getParent()
+    {
+        return org.apache.roller.pojos.wrapper.FolderDataWrapper.wrap(this.pojo.getParent());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getFolders()
+    {
+        java.util.Set initialCollection = this.pojo.getFolders();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.FolderDataWrapper.wrap((org.apache.roller.pojos.FolderData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getBookmarks()
+    {
+        java.util.Set initialCollection = this.pojo.getBookmarks();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.BookmarkDataWrapper.wrap((org.apache.roller.pojos.BookmarkData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List retrieveBookmarks(boolean subfolders)
+        throws org.apache.roller.RollerException
+    {
+        java.util.List initialCollection = this.pojo.retrieveBookmarks(subfolders);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.BookmarkDataWrapper.wrap((org.apache.roller.pojos.BookmarkData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean descendentOf(org.apache.roller.pojos.FolderData ancestor)
+    {   
+        return this.pojo.descendentOf(ancestor);
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.FolderData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/RefererDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/RefererDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/RefererDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/RefererDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,215 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.RefererData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.RefererData
+ */
+public class RefererDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private RefererData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private RefererDataWrapper(RefererData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static RefererDataWrapper wrap(RefererData toWrap) {
+        if(toWrap != null)
+            return new RefererDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WebsiteDataWrapper getWebsite()
+    {
+        return org.apache.roller.pojos.wrapper.WebsiteDataWrapper.wrap(this.pojo.getWebsite());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper getWeblogEntry()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap(this.pojo.getWeblogEntry());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDateString()
+    {   
+        return this.pojo.getDateString();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRefererUrl()
+    {   
+        return this.pojo.getRefererUrl();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRefererPermalink()
+    {   
+        return this.pojo.getRefererPermalink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRequestUrl()
+    {   
+        return this.pojo.getRequestUrl();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTitle()
+    {   
+        return this.pojo.getTitle();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getExcerpt()
+    {   
+        return this.pojo.getExcerpt();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getVisible()
+    {   
+        return this.pojo.getVisible();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getDuplicate()
+    {   
+        return this.pojo.getDuplicate();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Integer getDayHits()
+    {   
+        return this.pojo.getDayHits();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Integer getTotalHits()
+    {   
+        return this.pojo.getTotalHits();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDisplayUrl(int maxWidth,boolean includeHits)
+    {   
+        return this.pojo.getDisplayUrl(maxWidth,includeHits);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getUrl()
+    {   
+        return this.pojo.getUrl();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDisplayUrl()
+    {   
+        return this.pojo.getDisplayUrl();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.RefererData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/TemplateWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/TemplateWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/TemplateWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/TemplateWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,135 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.Template;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.Template
+ */
+public class TemplateWrapper {
+
+    // keep a reference to the wrapped pojo
+    private Template pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private TemplateWrapper(Template toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static TemplateWrapper wrap(Template toWrap) {
+        if(toWrap != null)
+            return new TemplateWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDescription()
+    {   
+        return this.pojo.getDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getContents()
+    {   
+        return this.pojo.getContents();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getLink()
+    {   
+        return this.pojo.getLink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.Date getLastModified()
+    {   
+        return this.pojo.getLastModified();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean isHidden()
+    {   
+        return this.pojo.isHidden();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean isNavbar()
+    {   
+        return this.pojo.isNavbar();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.Template getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/UserDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/UserDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/UserDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/UserDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.UserData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.UserData
+ */
+public class UserDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private UserData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private UserDataWrapper(UserData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static UserDataWrapper wrap(UserData toWrap) {
+        if(toWrap != null)
+            return new UserDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getUserName()
+    {   
+        return this.pojo.getUserName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getFullName()
+    {   
+        return this.pojo.getFullName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getEmailAddress()
+    {   
+        return this.pojo.getEmailAddress();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.Date getDateCreated()
+    {   
+        return this.pojo.getDateCreated();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getLocale()
+    {   
+        return this.pojo.getLocale();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTimeZone()
+    {   
+        return this.pojo.getTimeZone();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.UserData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogCategoryDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogCategoryDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogCategoryDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogCategoryDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,194 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.WeblogCategoryData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.WeblogCategoryData
+ */
+public class WeblogCategoryDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private WeblogCategoryData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private WeblogCategoryDataWrapper(WeblogCategoryData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static WeblogCategoryDataWrapper wrap(WeblogCategoryData toWrap) {
+        if(toWrap != null)
+            return new WeblogCategoryDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDescription()
+    {   
+        return this.pojo.getDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getImage()
+    {   
+        return this.pojo.getImage();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getPath()
+    {   
+        return this.pojo.getPath();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WebsiteDataWrapper getWebsite()
+    {
+        return org.apache.roller.pojos.wrapper.WebsiteDataWrapper.wrap(this.pojo.getWebsite());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper getParent()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap(this.pojo.getParent());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getWeblogCategories()
+    {
+        java.util.Set initialCollection = this.pojo.getWeblogCategories();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap((org.apache.roller.pojos.WeblogCategoryData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List retrieveWeblogEntries(boolean subcats)
+        throws org.apache.roller.RollerException
+    {
+        java.util.List initialCollection = this.pojo.retrieveWeblogEntries(subcats);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap((org.apache.roller.pojos.WeblogEntryData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean descendentOf(org.apache.roller.pojos.WeblogCategoryData ancestor)
+    {   
+        return this.pojo.descendentOf(ancestor);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean isInUse()
+    {   
+        return this.pojo.isInUse();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.WeblogCategoryData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,569 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.WeblogEntryData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.WeblogEntryData
+ */
+public class WeblogEntryDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private WeblogEntryData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private WeblogEntryDataWrapper(WeblogEntryData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static WeblogEntryDataWrapper wrap(WeblogEntryData toWrap) {
+        if(toWrap != null)
+            return new WeblogEntryDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper getCategory()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap(this.pojo.getCategory());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getCategories()
+    {
+        java.util.List initialCollection = this.pojo.getCategories();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogCategoryDataWrapper.wrap((org.apache.roller.pojos.WeblogCategoryData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WebsiteDataWrapper getWebsite()
+    {
+        return org.apache.roller.pojos.wrapper.WebsiteDataWrapper.wrap(this.pojo.getWebsite());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public org.apache.roller.pojos.UserData getCreator()
+    {   
+        return this.pojo.getCreator();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTitle()
+    {   
+        return this.pojo.getTitle();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getSummary()
+    {   
+        return this.pojo.getSummary();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getText()
+    {   
+        return this.pojo.getText();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getContentType()
+    {   
+        return this.pojo.getContentType();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getContentSrc()
+    {   
+        return this.pojo.getContentSrc();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getAnchor()
+    {   
+        return this.pojo.getAnchor();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getEntryAttributes()
+    {
+        java.util.Set initialCollection = this.pojo.getEntryAttributes();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.EntryAttributeDataWrapper.wrap((org.apache.roller.pojos.EntryAttributeData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String findEntryAttribute(java.lang.String name)
+    {   
+        return this.pojo.findEntryAttribute(name);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.sql.Timestamp getPubTime()
+    {   
+        return this.pojo.getPubTime();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.sql.Timestamp getUpdateTime()
+    {   
+        return this.pojo.getUpdateTime();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getStatus()
+    {   
+        return this.pojo.getStatus();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getLink()
+    {   
+        return this.pojo.getLink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getPlugins()
+    {   
+        return this.pojo.getPlugins();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getAllowComments()
+    {   
+        return this.pojo.getAllowComments();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Integer getCommentDays()
+    {   
+        return this.pojo.getCommentDays();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getRightToLeft()
+    {   
+        return this.pojo.getRightToLeft();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.Boolean getPinnedToMain()
+    {   
+        return this.pojo.getPinnedToMain();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getLocale()
+    {   
+        return this.pojo.getLocale();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getTags()
+    {
+        java.util.Set initialCollection = this.pojo.getTags();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.WeblogEntryTagDataWrapper.wrap((org.apache.roller.pojos.WeblogEntryTagData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTagsAsString()
+    {   
+        return this.pojo.getTagsAsString();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public boolean getCommentsStillAllowed()
+    {   
+        return this.pojo.getCommentsStillAllowed();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String formatPubTime(java.lang.String pattern)
+    {   
+        return this.pojo.formatPubTime(pattern);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String formatUpdateTime(java.lang.String pattern)
+    {   
+        return this.pojo.formatUpdateTime(pattern);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getComments()
+    {
+        java.util.List initialCollection = this.pojo.getComments();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.CommentDataWrapper.wrap((org.apache.roller.pojos.CommentData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getComments(boolean ignoreSpam,boolean approvedOnly)
+    {
+        java.util.List initialCollection = this.pojo.getComments(ignoreSpam,approvedOnly);
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.CommentDataWrapper.wrap((org.apache.roller.pojos.CommentData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public int getCommentCount()
+    {   
+        return this.pojo.getCommentCount();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo-collection"
+     *
+     * This method returns a collection of pojos so we need to wrap
+     * each pojo that is part of the collection.
+     */
+    public java.util.List getReferers()
+    {
+        java.util.List initialCollection = this.pojo.getReferers();
+
+        // iterate through and wrap
+        // we force the use of an ArrayList because it should be good enough to cover
+        // for any Collection type we encounter.
+        java.util.ArrayList wrappedCollection = new java.util.ArrayList(initialCollection.size());
+        java.util.Iterator it = initialCollection.iterator();
+        int i = 0;
+        while(it.hasNext()) {
+            wrappedCollection.add(i, org.apache.roller.pojos.wrapper.RefererDataWrapper.wrap((org.apache.roller.pojos.RefererData) it.next()));
+            i++;
+        }
+
+        return wrappedCollection;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getPermalink()
+    {   
+        return this.pojo.getPermalink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getPermaLink()
+    {   
+        return this.pojo.getPermaLink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getCommentsLink()
+    {   
+        return this.pojo.getCommentsLink();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDisplayTitle()
+    {   
+        return this.pojo.getDisplayTitle();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRss09xDescription()
+    {   
+        return this.pojo.getRss09xDescription();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getRss09xDescription(int maxLength)
+    {   
+        return this.pojo.getRss09xDescription(maxLength);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.util.List getPluginsList()
+    {   
+        return this.pojo.getPluginsList();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTransformedText()
+    {   
+        return this.pojo.getTransformedText();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getTransformedSummary()
+    {   
+        return this.pojo.getTransformedSummary();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String displayContent(java.lang.String readMoreLink)
+    {   
+        return this.pojo.displayContent(readMoreLink);
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getDisplayContent()
+    {   
+        return this.pojo.getDisplayContent();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.WeblogEntryData getPojo() {
+        return this.pojo;
+    }
+
+}

Added: incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryTagDataWrapper.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryTagDataWrapper.java?view=auto&rev=521988
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryTagDataWrapper.java (added)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/wrapper/WeblogEntryTagDataWrapper.java Fri Mar 23 23:59:47 2007
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  The ASF licenses this file to You
+ * 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.  For additional information regarding
+ * copyright in this work, please see the NOTICE file in the top level
+ * directory of this distribution.
+ */
+
+package org.apache.roller.pojos.wrapper;
+
+import org.apache.roller.pojos.WeblogEntryTagData;
+
+
+/**
+ * Generated wrapper for class: org.apache.roller.pojos.WeblogEntryTagData
+ */
+public class WeblogEntryTagDataWrapper {
+
+    // keep a reference to the wrapped pojo
+    private WeblogEntryTagData pojo = null;
+
+    // this is private so that we can force the use of the .wrap(pojo) method
+    private WeblogEntryTagDataWrapper(WeblogEntryTagData toWrap) {
+        this.pojo = toWrap;
+    }
+
+    // wrap the given pojo if it is not null
+    public static WeblogEntryTagDataWrapper wrap(WeblogEntryTagData toWrap) {
+        if(toWrap != null)
+            return new WeblogEntryTagDataWrapper(toWrap);
+
+        return null;
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getId()
+    {   
+        return this.pojo.getId();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WebsiteDataWrapper getWeblog()
+    {
+        return org.apache.roller.pojos.wrapper.WebsiteDataWrapper.wrap(this.pojo.getWeblog());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper getWeblogEntry()
+    {
+        return org.apache.roller.pojos.wrapper.WeblogEntryDataWrapper.wrap(this.pojo.getWeblogEntry());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="pojo"
+     *
+     * This method returns another pojo so we need to wrap the returned pojo.
+     */
+    public org.apache.roller.pojos.wrapper.UserDataWrapper getUser()
+    {
+        return org.apache.roller.pojos.wrapper.UserDataWrapper.wrap(this.pojo.getUser());
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.lang.String getName()
+    {   
+        return this.pojo.getName();
+    }
+
+    /**
+     * pojo method tagged with @roller.wrapPojoMethod type="simple"
+     *
+     * Simply returns the same value that the pojo would have returned.
+     */
+    public java.sql.Timestamp getTime()
+    {   
+        return this.pojo.getTime();
+    }
+
+    /**
+     * this is a special method to access the original pojo
+     * we don't really want to do this, but it's necessary
+     * because some parts of the rendering process still need the
+     * orginal pojo object
+     */
+    public org.apache.roller.pojos.WeblogEntryTagData getPojo() {
+        return this.pojo;
+    }
+
+}



Mime
View raw message