File Source: PingTargetFormBean.java
/*
P/P * Method: org.apache.roller.weblogger.ui.struts2.common.PingTargetFormBean__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.common;
20
21 import org.apache.roller.weblogger.pojos.PingTarget;
22
23
24 /**
25 * Form bean used by ping target actions.
26 */
/*
P/P * Method: void org.apache.roller.weblogger.ui.struts2.common.PingTargetFormBean()
*
* Postconditions:
* this.id == null
* this.name == null
* this.pingUrl == null
*/
27 public class PingTargetFormBean {
28
29 private String id = null;
30 private String name = null;
31 private String pingUrl = null;
32
33
34 public String getId() {
/*
P/P * Method: String getId()
*
* Preconditions:
* init'ed(this.id)
*
* Postconditions:
* return_value == this.id
* init'ed(return_value)
*/
35 return this.id;
36 }
37
38 public void setId( String id ) {
/*
P/P * Method: void setId(String)
*
* Postconditions:
* this.id == id
* init'ed(this.id)
*/
39 this.id = id;
40 }
41
42 public String getName() {
/*
P/P * Method: String getName()
*
* Preconditions:
* init'ed(this.name)
*
* Postconditions:
* return_value == this.name
* init'ed(return_value)
*/
43 return this.name;
44 }
45
46 public void setName( String name ) {
/*
P/P * Method: void setName(String)
*
* Postconditions:
* this.name == name
* init'ed(this.name)
*/
47 this.name = name;
48 }
49
50 public String getPingUrl() {
/*
P/P * Method: String getPingUrl()
*
* Preconditions:
* init'ed(this.pingUrl)
*
* Postconditions:
* return_value == this.pingUrl
* init'ed(return_value)
*/
51 return this.pingUrl;
52 }
53
54 public void setPingUrl( String pingUrl ) {
/*
P/P * Method: void setPingUrl(String)
*
* Postconditions:
* this.pingUrl == pingUrl
* init'ed(this.pingUrl)
*/
55 this.pingUrl = pingUrl;
56 }
57
58
59 public void copyTo(PingTarget dataHolder) {
60
/*
P/P * Method: void copyTo(PingTarget)
*
* Preconditions:
* dataHolder != null
* init'ed(this.name)
* init'ed(this.pingUrl)
*/
61 dataHolder.setName(this.name);
62 dataHolder.setPingUrl(this.pingUrl);
63 }
64
65
66 public void copyFrom(PingTarget dataHolder) {
67
/*
P/P * Method: void copyFrom(PingTarget)
*
* Preconditions:
* dataHolder != null
*
* Postconditions:
* init'ed(this.id)
* init'ed(this.name)
* init'ed(this.pingUrl)
*/
68 this.id = dataHolder.getId();
69 this.name = dataHolder.getName();
70 this.pingUrl = dataHolder.getPingUrl();
71 }
72
73 }
SofCheck Inspector Build Version : 2.18479
| PingTargetFormBean.java |
2009-Jan-02 14:24:52 |
| PingTargetFormBean.class |
2009-Sep-04 03:12:45 |