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