Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
GroupNamespaceURIHandlerPOC |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2010 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.kuali.rice.kew.xml; | |
17 | ||
18 | import org.xml.sax.Attributes; | |
19 | import org.xml.sax.ContentHandler; | |
20 | import org.xml.sax.Locator; | |
21 | import org.xml.sax.SAXException; | |
22 | ||
23 | /** | |
24 | * This is a test Content Handler to upgrade Group 1.0.2 XML to Group 1.0.3. | |
25 | * | |
26 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
27 | * | |
28 | */ | |
29 | public class GroupNamespaceURIHandlerPOC implements ContentHandler{ | |
30 | ||
31 | private ContentHandler parent; | |
32 | ||
33 | 0 | public GroupNamespaceURIHandlerPOC(ContentHandler parent) { |
34 | 0 | this.parent = parent; |
35 | 0 | } |
36 | ||
37 | /** | |
38 | * This overridden method ... | |
39 | * | |
40 | * @see org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) | |
41 | */ | |
42 | public void startElement(String uri, String localName, String qName, | |
43 | Attributes atts) throws SAXException { | |
44 | 0 | parent.startElement(uri, localName, qName, atts); |
45 | 0 | } |
46 | ||
47 | /** | |
48 | * This overridden method ... | |
49 | * | |
50 | * @see org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String) | |
51 | */ | |
52 | public void endElement(String uri, String localName, String qName) | |
53 | throws SAXException { | |
54 | 0 | parent.endElement(uri, localName, qName); |
55 | 0 | } |
56 | ||
57 | /** | |
58 | * This overridden method ... | |
59 | * | |
60 | * @see org.xml.sax.ContentHandler#characters(char[], int, int) | |
61 | */ | |
62 | public void characters(char[] ch, int start, int length) throws SAXException { | |
63 | 0 | parent.characters(ch, start, length); |
64 | 0 | } |
65 | ||
66 | /** | |
67 | * This overridden method ... | |
68 | * | |
69 | * @see org.xml.sax.ContentHandler#endDocument() | |
70 | */ | |
71 | public void endDocument() throws SAXException { | |
72 | 0 | parent.endDocument(); |
73 | 0 | } |
74 | ||
75 | /** | |
76 | * This overridden method ... | |
77 | * | |
78 | * @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String) | |
79 | */ | |
80 | public void endPrefixMapping(String prefix) throws SAXException { | |
81 | 0 | parent.endPrefixMapping(prefix); |
82 | 0 | } |
83 | ||
84 | /** | |
85 | * This overridden method ... | |
86 | * | |
87 | * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int) | |
88 | */ | |
89 | public void ignorableWhitespace(char[] ch, int start, int length) | |
90 | throws SAXException { | |
91 | 0 | parent.ignorableWhitespace(ch, start, length); |
92 | 0 | } |
93 | ||
94 | /** | |
95 | * This overridden method ... | |
96 | * | |
97 | * @see org.xml.sax.ContentHandler#processingInstruction(java.lang.String, java.lang.String) | |
98 | */ | |
99 | public void processingInstruction(String target, String data) | |
100 | throws SAXException { | |
101 | 0 | parent.processingInstruction(target, data); |
102 | 0 | } |
103 | ||
104 | /** | |
105 | * This overridden method ... | |
106 | * | |
107 | * @see org.xml.sax.ContentHandler#setDocumentLocator(org.xml.sax.Locator) | |
108 | */ | |
109 | public void setDocumentLocator(Locator locator) { | |
110 | 0 | parent.setDocumentLocator(locator); |
111 | 0 | } |
112 | ||
113 | /** | |
114 | * This overridden method ... | |
115 | * | |
116 | * @see org.xml.sax.ContentHandler#skippedEntity(java.lang.String) | |
117 | */ | |
118 | public void skippedEntity(String name) throws SAXException { | |
119 | 0 | parent.skippedEntity(name); |
120 | 0 | } |
121 | ||
122 | /** | |
123 | * This overridden method ... | |
124 | * | |
125 | * @see org.xml.sax.ContentHandler#startDocument() | |
126 | */ | |
127 | public void startDocument() throws SAXException { | |
128 | 0 | parent.startDocument(); |
129 | 0 | } |
130 | ||
131 | /** | |
132 | * This overridden method ... | |
133 | * | |
134 | * @see org.xml.sax.ContentHandler#startPrefixMapping(java.lang.String, java.lang.String) | |
135 | */ | |
136 | public void startPrefixMapping(String prefix, String uri) | |
137 | throws SAXException { | |
138 | 0 | parent.startPrefixMapping(prefix, uri); |
139 | 0 | } |
140 | } |