//# 0 errors, 131 messages
//#
/*
    //#CategoryBean.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#CategoryBean.java:1:1: method: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init
 * 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.weblogger.ui.struts2.editor;

import org.apache.roller.weblogger.WebloggerException;
import org.apache.roller.weblogger.pojos.WeblogCategory;


/**
 * Bean for managing category data.
 */
public class CategoryBean {
    //#CategoryBean.java:28: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.description
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.id
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.image
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.name
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.description == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.id == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.image == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()): this.name == null
    
    private String id = null;
    private String name = null;
    private String description = null;
    private String image = null;
    //#CategoryBean.java:33: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.org.apache.roller.weblogger.ui.struts2.editor.CategoryBean()
    
    
    public String getId() {
        return this.id;
    //#CategoryBean.java:37: method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getId()
    //#input(String getId()): this
    //#input(String getId()): this.id
    //#output(String getId()): return_value
    //#pre[2] (String getId()): init'ed(this.id)
    //#post(String getId()): return_value == this.id
    //#post(String getId()): init'ed(return_value)
    //#CategoryBean.java:37: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getId()
    }
    
    public void setId( String id ) {
        this.id = id;
    //#CategoryBean.java:41: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setId(String)
    //#input(void setId(String)): id
    //#input(void setId(String)): this
    //#output(void setId(String)): this.id
    //#post(void setId(String)): this.id == id
    //#post(void setId(String)): init'ed(this.id)
    }
    //#CategoryBean.java:42: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setId(String)
    
    public String getName() {
        return this.name;
    //#CategoryBean.java:45: method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getName()
    //#input(String getName()): this
    //#input(String getName()): this.name
    //#output(String getName()): return_value
    //#pre[2] (String getName()): init'ed(this.name)
    //#post(String getName()): return_value == this.name
    //#post(String getName()): init'ed(return_value)
    //#CategoryBean.java:45: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getName()
    }
    
    public void setName( String name ) {
        this.name = name;
    //#CategoryBean.java:49: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setName(String)
    //#input(void setName(String)): name
    //#input(void setName(String)): this
    //#output(void setName(String)): this.name
    //#post(void setName(String)): this.name == name
    //#post(void setName(String)): init'ed(this.name)
    }
    //#CategoryBean.java:50: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setName(String)
    
    public String getDescription() {
        return this.description;
    //#CategoryBean.java:53: method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getDescription()
    //#input(String getDescription()): this
    //#input(String getDescription()): this.description
    //#output(String getDescription()): return_value
    //#pre[2] (String getDescription()): init'ed(this.description)
    //#post(String getDescription()): return_value == this.description
    //#post(String getDescription()): init'ed(return_value)
    //#CategoryBean.java:53: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getDescription()
    }
    
    public void setDescription( String description ) {
        this.description = description;
    //#CategoryBean.java:57: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setDescription(String)
    //#input(void setDescription(String)): description
    //#input(void setDescription(String)): this
    //#output(void setDescription(String)): this.description
    //#post(void setDescription(String)): this.description == description
    //#post(void setDescription(String)): init'ed(this.description)
    }
    //#CategoryBean.java:58: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setDescription(String)
    
    public String getImage() {
        return image;
    //#CategoryBean.java:61: method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getImage()
    //#input(String getImage()): this
    //#input(String getImage()): this.image
    //#output(String getImage()): return_value
    //#pre[2] (String getImage()): init'ed(this.image)
    //#post(String getImage()): return_value == this.image
    //#post(String getImage()): init'ed(return_value)
    //#CategoryBean.java:61: end of method: String org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.getImage()
    }

    public void setImage(String image) {
        this.image = image;
    //#CategoryBean.java:65: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setImage(String)
    //#input(void setImage(String)): image
    //#input(void setImage(String)): this
    //#output(void setImage(String)): this.image
    //#post(void setImage(String)): this.image == image
    //#post(void setImage(String)): init'ed(this.image)
    }
    //#CategoryBean.java:66: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.setImage(String)
    
    
    public void copyTo(WeblogCategory dataHolder) throws WebloggerException {
        
        if(!dataHolder.getName().equals(this.name)) {
    //#CategoryBean.java:71: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.copyTo(WeblogCategory)
    //#CategoryBean.java:71: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyTo(WeblogCategory)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
    //#input(void copyTo(WeblogCategory)): dataHolder
    //#input(void copyTo(WeblogCategory)): this
    //#input(void copyTo(WeblogCategory)): this.description
    //#input(void copyTo(WeblogCategory)): this.image
    //#input(void copyTo(WeblogCategory)): this.name
    //#pre[1] (void copyTo(WeblogCategory)): dataHolder != null
    //#pre[3] (void copyTo(WeblogCategory)): init'ed(this.description)
    //#pre[4] (void copyTo(WeblogCategory)): init'ed(this.image)
    //#pre[5] (void copyTo(WeblogCategory)): init'ed(this.name)
    //#presumption(void copyTo(WeblogCategory)): org.apache.roller.weblogger.pojos.WeblogCategory:getName(...)@71 != null
    //#test_vector(void copyTo(WeblogCategory)): java.lang.String:equals(...)@71: {1}, {0}
            dataHolder.updateName(this.name);
    //#CategoryBean.java:72: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory:updateName(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyTo(WeblogCategory)
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory:updateName(String)
        }
        
        dataHolder.setDescription(this.description);
    //#CategoryBean.java:75: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory:setDescription(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyTo(WeblogCategory)
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory:setDescription(String)
        dataHolder.setImage(this.image);
    //#CategoryBean.java:76: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.WeblogCategory:setImage(String)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyTo(WeblogCategory)
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.WeblogCategory:setImage(String)
    }
    //#CategoryBean.java:77: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.copyTo(WeblogCategory)
    
    
    public void copyFrom(WeblogCategory dataHolder) {
        this.id = dataHolder.getId();
    //#CategoryBean.java:81: method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.copyFrom(WeblogCategory)
    //#CategoryBean.java:81: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getId()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyFrom(WeblogCategory)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getId()
    //#input(void copyFrom(WeblogCategory)): dataHolder
    //#input(void copyFrom(WeblogCategory)): this
    //#output(void copyFrom(WeblogCategory)): this.description
    //#output(void copyFrom(WeblogCategory)): this.id
    //#output(void copyFrom(WeblogCategory)): this.image
    //#output(void copyFrom(WeblogCategory)): this.name
    //#pre[1] (void copyFrom(WeblogCategory)): dataHolder != null
    //#post(void copyFrom(WeblogCategory)): init'ed(this.description)
    //#post(void copyFrom(WeblogCategory)): init'ed(this.id)
    //#post(void copyFrom(WeblogCategory)): init'ed(this.image)
    //#post(void copyFrom(WeblogCategory)): init'ed(this.name)
        this.name = dataHolder.getName();
    //#CategoryBean.java:82: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyFrom(WeblogCategory)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getName()
        this.description = dataHolder.getDescription();
    //#CategoryBean.java:83: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getDescription()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyFrom(WeblogCategory)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getDescription()
        this.image = dataHolder.getImage();
    //#CategoryBean.java:84: Warning: method not available
    //#    -- call on String org.apache.roller.weblogger.pojos.WeblogCategory:getImage()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
    //#    method: void copyFrom(WeblogCategory)
    //#    unanalyzed callee: String org.apache.roller.weblogger.pojos.WeblogCategory:getImage()
    }
    //#CategoryBean.java:85: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.copyFrom(WeblogCategory)
    
}
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CategoryBean]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.copyFrom(Lorg/apache/roller/weblogger/pojos/WeblogCategory;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.copyTo(Lorg/apache/roller/weblogger/pojos/WeblogCategory;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getDescription()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getId()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getImage()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setDescription(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setId(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setImage(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setName(Ljava/lang/String;)V
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CategoryBean] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.copyFrom(Lorg/apache/roller/weblogger/pojos/WeblogCategory;)V == &copyFrom
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.copyTo(Lorg/apache/roller/weblogger/pojos/WeblogCategory;)V == &copyTo
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getDescription()Ljava/lang/String; == &getDescription
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getId()Ljava/lang/String; == &getId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getImage()Ljava/lang/String; == &getImage
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setDescription(Ljava/lang/String;)V == &setDescription
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setId(Ljava/lang/String;)V == &setId
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setImage(Ljava/lang/String;)V == &setImage
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init): __Dispatch_Table.setName(Ljava/lang/String;)V == &setName
    //#CategoryBean.java:: end of method: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean.org.apache.roller.weblogger.ui.struts2.editor.CategoryBean__static_init
    //#CategoryBean.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.CategoryBean
