1 57 58 package org.apache.wsif.util; 59 60 import java.io.Serializable ; 61 62 import javax.xml.namespace.QName ; 63 64 import org.apache.wsif.logging.Trc; 65 66 69 public class TypeSerializerInfo implements Serializable { 70 71 private static final long serialVersionUID = 1L; 72 73 protected QName elementType; 74 protected Class javaType; 75 protected Object serializer; 76 protected Object deserializer; 77 78 public TypeSerializerInfo( 79 QName elementType, 80 Class javaType, 81 Object serializer, 82 Object deserializer) { 83 Trc.entry(this, elementType, javaType, serializer, deserializer); 84 this.elementType = elementType; 85 this.javaType = javaType; 86 this.serializer = serializer; 87 this.deserializer = deserializer; 88 Trc.exit(); 89 } 90 91 95 public Object getDeserializer() { 96 Trc.entry(this); 97 Trc.exit(deserializer); 98 return deserializer; 99 } 100 101 105 public QName getElementType() { 106 Trc.entry(this); 107 Trc.exit(elementType); 108 return elementType; 109 } 110 111 115 public Class getJavaType() { 116 Trc.entry(this); 117 Trc.exit(javaType); 118 return javaType; 119 } 120 121 125 public Object getSerializer() { 126 Trc.entry(this); 127 Trc.exit(serializer); 128 return serializer; 129 } 130 131 135 public void setDeserializer(Object deserializer) { 136 Trc.entry(this, deserializer); 137 this.deserializer = deserializer; 138 Trc.exit(); 139 } 140 141 145 public void setElementType(QName elementType) { 146 Trc.entry(this, elementType); 147 this.elementType = elementType; 148 Trc.exit(); 149 } 150 151 155 public void setJavaType(Class javaType) { 156 Trc.entry(this, javaType); 157 this.javaType = javaType; 158 Trc.exit(); 159 } 160 161 165 public void setSerializer(Object serializer) { 166 Trc.entry(this, serializer); 167 this.serializer = serializer; 168 Trc.exit(); 169 } 170 171 public String toString() { 172 return "[TypeSerializerInfo elementType=" 173 + elementType 174 + ", " 175 + "javaType=" 176 + javaType 177 + ", " 178 + "serializer=" 179 + serializer 180 + ", " 181 + "deserializer=" 182 + deserializer 183 + "]"; 184 } 185 186 } | Popular Tags |