1 55 56 package org.jboss.axis.description; 57 58 import javax.xml.namespace.QName ; 59 60 66 public abstract class FieldDesc 67 { 68 71 private String fieldName; 72 75 private QName xmlName; 76 79 private QName xmlType; 80 83 private Class javaType; 84 85 88 private boolean minOccursIs0 = false; 89 90 93 public String getFieldName() 94 { 95 return fieldName; 96 } 97 98 101 public void setFieldName(String fieldName) 102 { 103 this.fieldName = fieldName; 104 } 105 106 109 public QName getXmlName() 110 { 111 return xmlName; 112 } 113 114 117 public void setXmlName(QName xmlName) 118 { 119 this.xmlName = xmlName; 120 } 121 122 public Class getJavaType() 123 { 124 return javaType; 125 } 126 127 public void setJavaType(Class javaType) 128 { 129 this.javaType = javaType; 130 } 131 132 135 public QName getXmlType() 136 { 137 return xmlType; 138 } 139 140 143 public void setXmlType(QName xmlType) 144 { 145 this.xmlType = xmlType; 146 } 147 148 153 public boolean isElement() 154 { 155 return (this instanceof ElementDesc); 156 } 157 158 163 public boolean isAttribute() 164 { 165 return (this instanceof AttributeDesc); 166 } 167 168 public boolean isIndexed() 169 { 170 return false; 171 } 172 173 176 public boolean isMinOccursZero() 177 { 178 return minOccursIs0; 179 } 180 181 187 public void setMinOccursIs0(boolean minOccursIs0) 188 { 189 this.minOccursIs0 = minOccursIs0; 190 } 191 } 192 | Popular Tags |