View Javadoc

1   package org.codehaus.ivory.serialize;
2   
3   import java.util.Map;
4   
5   import javax.xml.namespace.QName;
6   
7   import org.apache.axis.description.TypeDesc;
8   import org.apache.axis.encoding.ser.BeanDeserializer;
9   
10  /***
11   * A BeanDeserializer with metadata support.
12   * 
13   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
14   * @since May 21, 2003
15   */
16  public class MetadataDeserializer
17      extends BeanDeserializer
18  {
19      // Construct BeanSerializer for the indicated class/qname
20      public MetadataDeserializer(Class javaType, QName xmlType)
21      {
22          this(javaType, xmlType, TypeDesc.getTypeDescForClass(javaType));
23      }
24  
25      // Construct BeanDeserializer for the indicated class/qname and meta Data
26      public MetadataDeserializer(
27          Class javaType,
28          QName xmlType,
29          TypeDesc typeDesc)
30      {
31          this(
32              javaType,
33              xmlType,
34              typeDesc,
35              MetadataDeserializerFactory.getProperties(javaType, typeDesc));
36      }
37  
38      // Construct BeanDeserializer for the indicated class/qname and meta Data
39      public MetadataDeserializer(
40          Class javaType,
41          QName xmlType,
42          TypeDesc typeDesc,
43          Map propertyMap)
44      {
45          super(javaType, xmlType, typeDesc, propertyMap);
46      }
47  }