| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
package org.kuali.rice.kew.transformation; |
| 18 |
|
|
| 19 |
|
import javax.xml.transform.Source; |
| 20 |
|
import javax.xml.transform.URIResolver; |
| 21 |
|
import javax.xml.transform.sax.SAXSource; |
| 22 |
|
|
| 23 |
|
import org.apache.log4j.Logger; |
| 24 |
|
import org.xml.sax.InputSource; |
| 25 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 26 |
|
public class WidgetURITestResolver implements URIResolver { |
| 27 |
|
|
| 28 |
|
private static final Logger LOG = Logger.getLogger(WidgetURITestResolver.class); |
| 29 |
|
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 30 |
0
|
public Source resolve(String href, String base) {... |
| 31 |
|
|
| 32 |
0
|
try { |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
0
|
return new SAXSource(new InputSource(WidgetURITestResolver.class.getResourceAsStream("widgets_pipeTest.xml"))); |
| 38 |
|
|
| 39 |
|
} |
| 40 |
|
catch (Exception e) { |
| 41 |
0
|
LOG.error("Error ocurred getting style " + href, e); |
| 42 |
|
|
| 43 |
|
} |
| 44 |
0
|
return null; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
} |