1 16 17 package org.apache.axis.description; 18 19 import javax.xml.namespace.QName ; 20 import java.io.Serializable ; 21 22 28 public class FieldDesc implements Serializable { 29 30 private String fieldName; 31 32 private QName xmlName; 33 34 private QName xmlType; 35 36 private Class javaType; 37 38 39 private boolean _isElement = true; 41 42 43 private boolean minOccursIs0 = false; 44 45 49 protected FieldDesc(boolean isElement) 50 { 51 _isElement = isElement; 52 } 53 54 57 public String getFieldName() { 58 return fieldName; 59 } 60 61 64 public void setFieldName(String fieldName) { 65 this.fieldName = fieldName; 66 } 67 68 71 public QName getXmlName() { 72 return xmlName; 73 } 74 75 78 public void setXmlName(QName xmlName) { 79 this.xmlName = xmlName; 80 } 81 82 public Class getJavaType() { 83 return javaType; 84 } 85 86 public void setJavaType(Class javaType) { 87 this.javaType = javaType; 88 } 89 90 93 public QName getXmlType() { 94 return xmlType; 95 } 96 97 100 public void setXmlType(QName xmlType) { 101 this.xmlType = xmlType; 102 } 103 104 109 public boolean isElement() { 110 return _isElement; 111 } 112 113 public boolean isIndexed() { 114 return false; 115 } 116 117 120 public boolean isMinOccursZero() { 121 return minOccursIs0; 122 } 123 124 132 public void setMinOccursIs0(boolean minOccursIs0) { 133 this.minOccursIs0 = minOccursIs0; 134 } 135 } 136 | Popular Tags |