1 7 package org.jboss.webservice.metadata.jaxrpcmapping; 8 9 11 import javax.xml.namespace.QName ; 12 import java.util.ArrayList ; 13 14 20 public class JavaXmlTypeMapping 21 { 22 private JavaWsdlMapping javaWsdlMapping; 24 25 28 private String javaType; 29 private QName rootTypeQName; 31 private QName anonymousTypeQName; 33 34 38 private String qnameScope; 39 40 private ArrayList variableMappings = new ArrayList (); 42 43 public JavaXmlTypeMapping(JavaWsdlMapping javaWsdlMapping) 44 { 45 this.javaWsdlMapping = javaWsdlMapping; 46 } 47 48 public JavaWsdlMapping getJavaWsdlMapping() 49 { 50 return javaWsdlMapping; 51 } 52 53 public String getJavaType() 54 { 55 return javaType; 56 } 57 58 public void setJavaType(String javaType) 59 { 60 this.javaType = javaType; 61 } 62 63 public String getQnameScope() 64 { 65 return qnameScope; 66 } 67 68 public void setQnameScope(String qnameScope) 69 { 70 this.qnameScope = qnameScope; 71 } 72 73 public QName getRootTypeQName() 74 { 75 return rootTypeQName; 76 } 77 78 public void setRootTypeQName(QName rootTypeQName) 79 { 80 this.rootTypeQName = rootTypeQName; 81 } 82 83 public QName getAnonymousTypeQName() 84 { 85 return anonymousTypeQName; 86 } 87 88 public void setAnonymousTypeQName(QName anonymousTypeQName) 89 { 90 this.anonymousTypeQName = anonymousTypeQName; 91 } 92 93 public VariableMapping[] getVariableMappings() 94 { 95 VariableMapping[] arr = new VariableMapping[variableMappings.size()]; 96 variableMappings.toArray(arr); 97 return arr; 98 } 99 100 public void addVariableMapping(VariableMapping variableMapping) 101 { 102 variableMappings.add(variableMapping); 103 } 104 105 public String toString() 106 { 107 return "[qname=" + rootTypeQName + ",javaType=" + javaType + ",scope=" + qnameScope + "]"; 108 } 109 } 110 | Popular Tags |