File Source: BookmarkBean.java
/*
P/P * Method: org.apache.roller.weblogger.ui.struts2.editor.BookmarkBean__static_init
*/
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */
18
19 package org.apache.roller.weblogger.ui.struts2.editor;
20
21 import org.apache.roller.weblogger.pojos.WeblogBookmark;
22
23
24 /**
25 * Bean for managing bookmark data.
26 */
/*
P/P * Method: void org.apache.roller.weblogger.ui.struts2.editor.BookmarkBean()
*
* Postconditions:
* this.description == null
* this.feedUrl == null
* this.id == null
* this.image == null
* this.name == null
* this.url == null
* this.priority == &new Integer(BookmarkBean#2)
* this.weight == &new Integer(BookmarkBean#1)
* new Integer(BookmarkBean#1) num objects == 1
* new Integer(BookmarkBean#2) num objects == 1
*/
27 public class BookmarkBean {
28
29 private String id = null;
30 private String name = null;
31 private String description = null;
32 private String url = null;
33 private Integer weight = new Integer(0);
34 private Integer priority = new Integer(0);
35 private String image = null;
36 private String feedUrl = null;
37
38
39 public String getId() {
/*
P/P * Method: String getId()
*
* Preconditions:
* init'ed(this.id)
*
* Postconditions:
* return_value == this.id
* init'ed(return_value)
*/
40 return this.id;
41 }
42
43 public void setId( String id ) {
/*
P/P * Method: void setId(String)
*
* Postconditions:
* this.id == id
* init'ed(this.id)
*/
44 this.id = id;
45 }
46
47 public String getName() {
/*
P/P * Method: String getName()
*
* Preconditions:
* init'ed(this.name)
*
* Postconditions:
* return_value == this.name
* init'ed(return_value)
*/
48 return this.name;
49 }
50
51 public void setName( String name ) {
/*
P/P * Method: void setName(String)
*
* Postconditions:
* this.name == name
* init'ed(this.name)
*/
52 this.name = name;
53 }
54
55 public String getDescription() {
/*
P/P * Method: String getDescription()
*
* Preconditions:
* init'ed(this.description)
*
* Postconditions:
* return_value == this.description
* init'ed(return_value)
*/
56 return this.description;
57 }
58
59 public void setDescription( String description ) {
/*
P/P * Method: void setDescription(String)
*
* Postconditions:
* this.description == description
* init'ed(this.description)
*/
60 this.description = description;
61 }
62
63 public String getUrl() {
/*
P/P * Method: String getUrl()
*
* Preconditions:
* init'ed(this.url)
*
* Postconditions:
* return_value == this.url
* init'ed(return_value)
*/
64 return this.url;
65 }
66
67 public void setUrl( String url ) {
/*
P/P * Method: void setUrl(String)
*
* Postconditions:
* this.url == url
* init'ed(this.url)
*/
68 this.url = url;
69 }
70
71 public Integer getWeight() {
/*
P/P * Method: Integer getWeight()
*
* Preconditions:
* init'ed(this.weight)
*
* Postconditions:
* return_value == this.weight
* init'ed(return_value)
*/
72 return this.weight;
73 }
74
75 public void setWeight( Integer weight ) {
/*
P/P * Method: void setWeight(Integer)
*
* Postconditions:
* this.weight == weight
* init'ed(this.weight)
*/
76 this.weight = weight;
77 }
78
79 public Integer getPriority() {
/*
P/P * Method: Integer getPriority()
*
* Preconditions:
* init'ed(this.priority)
*
* Postconditions:
* return_value == this.priority
* init'ed(return_value)
*/
80 return this.priority;
81 }
82
83 public void setPriority( Integer priority ) {
/*
P/P * Method: void setPriority(Integer)
*
* Postconditions:
* this.priority == priority
* init'ed(this.priority)
*/
84 this.priority = priority;
85 }
86
87 public String getImage() {
/*
P/P * Method: String getImage()
*
* Preconditions:
* init'ed(this.image)
*
* Postconditions:
* return_value == this.image
* init'ed(return_value)
*/
88 return this.image;
89 }
90
91 public void setImage( String image ) {
/*
P/P * Method: void setImage(String)
*
* Postconditions:
* this.image == image
* init'ed(this.image)
*/
92 this.image = image;
93 }
94
95 public String getFeedUrl() {
/*
P/P * Method: String getFeedUrl()
*
* Preconditions:
* init'ed(this.feedUrl)
*
* Postconditions:
* return_value == this.feedUrl
* init'ed(return_value)
*/
96 return this.feedUrl;
97 }
98
99 public void setFeedUrl( String feedUrl ) {
/*
P/P * Method: void setFeedUrl(String)
*
* Postconditions:
* this.feedUrl == feedUrl
* init'ed(this.feedUrl)
*/
100 this.feedUrl = feedUrl;
101 }
102
103
104 public void copyTo(WeblogBookmark dataHolder) {
/*
P/P * Method: void copyTo(WeblogBookmark)
*
* Preconditions:
* dataHolder != null
* init'ed(this.description)
* init'ed(this.feedUrl)
* init'ed(this.image)
* init'ed(this.name)
* init'ed(this.priority)
* init'ed(this.url)
* init'ed(this.weight)
*/
105 dataHolder.setName(this.name);
106 dataHolder.setDescription(this.description);
107 dataHolder.setUrl(this.url);
108 dataHolder.setWeight(this.weight);
109 dataHolder.setPriority(this.priority);
110 dataHolder.setImage(this.image);
111 dataHolder.setFeedUrl(this.feedUrl);
112 }
113
114
115 public void copyFrom(WeblogBookmark dataHolder) {
/*
P/P * Method: void copyFrom(WeblogBookmark)
*
* Preconditions:
* dataHolder != null
*
* Postconditions:
* init'ed(this.description)
* init'ed(this.feedUrl)
* init'ed(this.id)
* init'ed(this.image)
* init'ed(this.name)
* init'ed(this.priority)
* init'ed(this.url)
* init'ed(this.weight)
*/
116 this.id = dataHolder.getId();
117 this.name = dataHolder.getName();
118 this.description = dataHolder.getDescription();
119 this.url = dataHolder.getUrl();
120 this.weight = dataHolder.getWeight();
121 this.priority = dataHolder.getPriority();
122 this.image = dataHolder.getImage();
123 this.feedUrl = dataHolder.getFeedUrl();
124 }
125
126 }
SofCheck Inspector Build Version : 2.18479
| BookmarkBean.java |
2009-Jan-02 14:25:08 |
| BookmarkBean.class |
2009-Sep-04 03:12:45 |