|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MetadataDeserializer.java | - | 0% | 0% | 0% |
|
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 | 0 |
public MetadataDeserializer(Class javaType, QName xmlType)
|
21 |
{ |
|
22 | 0 |
this(javaType, xmlType, TypeDesc.getTypeDescForClass(javaType));
|
23 |
} |
|
24 |
|
|
25 |
// Construct BeanDeserializer for the indicated class/qname and meta Data
|
|
26 | 0 |
public MetadataDeserializer(
|
27 |
Class javaType, |
|
28 |
QName xmlType, |
|
29 |
TypeDesc typeDesc) |
|
30 |
{ |
|
31 | 0 |
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 | 0 |
public MetadataDeserializer(
|
40 |
Class javaType, |
|
41 |
QName xmlType, |
|
42 |
TypeDesc typeDesc, |
|
43 |
Map propertyMap) |
|
44 |
{ |
|
45 | 0 |
super(javaType, xmlType, typeDesc, propertyMap);
|
46 |
} |
|
47 |
} |
|
48 |
|
|