| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package com.xpn.xwiki.web; |
| 21 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 5 |
Complexity Density: 0.71 |
|
| 22 |
|
public class PropAddForm extends XWikiForm |
| 23 |
|
{ |
| 24 |
|
|
| 25 |
|
private String propName; |
| 26 |
|
|
| 27 |
|
private String propType; |
| 28 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 29 |
6 |
public String getPropName()... |
| 30 |
|
{ |
| 31 |
6 |
return this.propName; |
| 32 |
|
} |
| 33 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
12 |
public void setPropName(String propName)... |
| 35 |
|
{ |
| 36 |
12 |
this.propName = propName.replaceAll(" ", ""); |
| 37 |
|
} |
| 38 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
6 |
public String getPropType()... |
| 40 |
|
{ |
| 41 |
6 |
return this.propType; |
| 42 |
|
} |
| 43 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
12 |
public void setPropType(String propType)... |
| 45 |
|
{ |
| 46 |
12 |
this.propType = propType; |
| 47 |
|
} |
| 48 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 49 |
12 |
@Override... |
| 50 |
|
public void readRequest() |
| 51 |
|
{ |
| 52 |
12 |
XWikiRequest request = getRequest(); |
| 53 |
12 |
setPropName(request.getParameter("propname")); |
| 54 |
12 |
setPropType(request.getParameter("proptype")); |
| 55 |
|
} |
| 56 |
|
} |