001 /** 002 * Copyright 2005-2011 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.kew.xml; 017 018 import org.xml.sax.Attributes; 019 import org.xml.sax.ContentHandler; 020 import org.xml.sax.Locator; 021 import org.xml.sax.SAXException; 022 023 /** 024 * This is a test Content Handler to upgrade Group 1.0.2 XML to Group 1.0.3. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 * 028 */ 029 public class TestGroupNamespaceURIHandler implements ContentHandler{ 030 031 private ContentHandler parent; 032 033 public TestGroupNamespaceURIHandler(ContentHandler parent) { 034 this.parent = parent; 035 } 036 037 /** 038 * This overridden method ... 039 * 040 * @see org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes) 041 */ 042 public void startElement(String uri, String localName, String qName, 043 Attributes atts) throws SAXException { 044 parent.startElement(uri, localName, qName, atts); 045 } 046 047 /** 048 * This overridden method ... 049 * 050 * @see org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String) 051 */ 052 public void endElement(String uri, String localName, String qName) 053 throws SAXException { 054 parent.endElement(uri, localName, qName); 055 } 056 057 /** 058 * This overridden method ... 059 * 060 * @see org.xml.sax.ContentHandler#characters(char[], int, int) 061 */ 062 public void characters(char[] ch, int start, int length) throws SAXException { 063 parent.characters(ch, start, length); 064 } 065 066 /** 067 * This overridden method ... 068 * 069 * @see org.xml.sax.ContentHandler#endDocument() 070 */ 071 public void endDocument() throws SAXException { 072 parent.endDocument(); 073 } 074 075 /** 076 * This overridden method ... 077 * 078 * @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String) 079 */ 080 public void endPrefixMapping(String prefix) throws SAXException { 081 parent.endPrefixMapping(prefix); 082 } 083 084 /** 085 * This overridden method ... 086 * 087 * @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int) 088 */ 089 public void ignorableWhitespace(char[] ch, int start, int length) 090 throws SAXException { 091 parent.ignorableWhitespace(ch, start, length); 092 } 093 094 /** 095 * This overridden method ... 096 * 097 * @see org.xml.sax.ContentHandler#processingInstruction(java.lang.String, java.lang.String) 098 */ 099 public void processingInstruction(String target, String data) 100 throws SAXException { 101 parent.processingInstruction(target, data); 102 } 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 parent.setDocumentLocator(locator); 111 } 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 parent.skippedEntity(name); 120 } 121 122 /** 123 * This overridden method ... 124 * 125 * @see org.xml.sax.ContentHandler#startDocument() 126 */ 127 public void startDocument() throws SAXException { 128 parent.startDocument(); 129 } 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 parent.startPrefixMapping(prefix, uri); 139 } 140 }