1 55 56 package org.jboss.axis.encoding; 57 58 import org.jboss.axis.utils.Messages; 59 60 import javax.xml.namespace.QName ; 61 import javax.xml.rpc.JAXRPCException ; 62 63 70 class TypeMappingDelegate extends TypeMappingImpl 71 { 72 73 76 TypeMappingDelegate(TypeMapping delegate) 77 { 78 super(delegate); 79 } 80 81 82 85 86 88 public String [] getSupportedEncodings() 89 { 90 if (delegate != null) 91 return delegate.getSupportedEncodings(); 92 return null; 93 } 94 95 public void setSupportedEncodings(String [] namespaceURIs) 96 { 97 if (delegate != null) 98 delegate.setSupportedEncodings(namespaceURIs); 99 } 100 101 public void register(Class javaType, QName xmlType, 102 javax.xml.rpc.encoding.SerializerFactory sf, 103 javax.xml.rpc.encoding.DeserializerFactory dsf) 104 throws JAXRPCException 105 { 106 107 throw new JAXRPCException (Messages.getMessage("delegatedTypeMapping")); 108 } 109 110 public javax.xml.rpc.encoding.SerializerFactory 111 getSerializer(Class javaType, QName xmlType) 112 throws JAXRPCException 113 { 114 if (delegate != null) 115 return delegate.getSerializer(javaType, xmlType); 116 return null; 117 } 118 119 public javax.xml.rpc.encoding.SerializerFactory 120 getSerializer(Class javaType) 121 throws JAXRPCException 122 { 123 if (delegate != null) 124 return delegate.getSerializer(javaType); 125 return null; 126 } 127 128 public javax.xml.rpc.encoding.DeserializerFactory 129 getDeserializer(Class javaType, QName xmlType) 130 throws JAXRPCException 131 { 132 if (delegate != null) 133 return delegate.getDeserializer(javaType, xmlType); 134 return null; 135 } 136 137 public javax.xml.rpc.encoding.DeserializerFactory 138 getDeserializer(QName xmlType) 139 throws JAXRPCException 140 { 141 if (delegate != null) 142 return delegate.getDeserializer(xmlType); 143 return null; 144 } 145 146 public void removeSerializer(Class javaType, QName xmlType) 147 throws JAXRPCException 148 { 149 throw new JAXRPCException (Messages.getMessage("delegatedTypeMapping")); 150 } 151 152 public void removeDeserializer(Class javaType, QName xmlType) 153 throws JAXRPCException 154 { 155 throw new JAXRPCException (Messages.getMessage("delegatedTypeMapping")); 156 } 157 158 public boolean isRegistered(Class javaType, QName xmlType) 159 { 160 if (delegate != null) 161 { 162 return delegate.isRegistered(javaType, xmlType); 163 } 164 return false; 165 } 166 167 168 169 175 public QName getTypeQName(Class javaType) 176 { 177 if (delegate != null) 178 return delegate.getTypeQName(javaType); 179 return null; 180 } 181 182 188 public Class getClassForQName(QName xmlType) 189 { 190 if (delegate != null) 191 return delegate.getClassForQName(xmlType); 192 return null; 193 } 194 } 195 | Popular Tags |