| 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 |
|
|
| 22 |
|
import java.util.Map; |
| 23 |
|
|
| 24 |
|
import com.xpn.xwiki.util.Util; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
@version |
| 32 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
| 33 |
|
public class ObjectAddForm extends XWikiForm |
| 34 |
|
{ |
| 35 |
|
private String className; |
| 36 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 37 |
16 |
public String getClassName()... |
| 38 |
|
{ |
| 39 |
16 |
return this.className; |
| 40 |
|
} |
| 41 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 42 |
34 |
public void setClassName(String className)... |
| 43 |
|
{ |
| 44 |
34 |
this.className = className; |
| 45 |
|
} |
| 46 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 47 |
34 |
@Override... |
| 48 |
|
public void readRequest() |
| 49 |
|
{ |
| 50 |
34 |
setClassName(getRequest().getParameter("classname")); |
| 51 |
|
} |
| 52 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
16 |
public Map<String, String[]> getObject(String prefix)... |
| 54 |
|
{ |
| 55 |
16 |
return Util.getObject(getRequest(), prefix); |
| 56 |
|
} |
| 57 |
|
} |