1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.rule.xmlrouting;
17
18 import java.util.Iterator;
19
20 import javax.xml.namespace.NamespaceContext;
21
22
23
24
25
26
27 public class WorkflowNamespaceContext implements NamespaceContext {
28 public String getNamespaceURI(String prefix) {
29 if (prefix == null) {
30 throw new IllegalArgumentException("The prefix cannot be null.");
31 }
32
33 if (prefix.equals("wf")) {
34 return "http://nothingfornowwf.com";
35 } else {
36 return null;
37 }
38 }
39
40 public String getPrefix(String namespace) {
41 if (namespace == null) {
42 throw new IllegalArgumentException("The namespace uri cannot be null.");
43 }
44 if (namespace.equals("http://nothingfornowwf.com")) {
45 return "wf";
46 } else {
47 return null;
48 }
49 }
50
51 public Iterator getPrefixes(String namespace) {
52 return null;
53 }
54 }