Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 package org.apache.axis.description; 17 18 import javax.xml.namespace.QName ; 19 import java.io.Serializable ; 20 21 28 public class ElementDesc extends FieldDesc implements Serializable { 29 30 private int minOccurs = 1; 31 32 private int maxOccurs = 1; 33 35 private boolean nillable = false; 36 37 38 private boolean unbounded = false; 39 40 41 private QName arrayType; 42 43 private QName itemQName; 44 45 public ElementDesc() { 46 super(true); 47 } 48 49 public boolean isMinOccursZero() { 50 return minOccurs == 0; 51 } 52 53 public int getMinOccurs() { 54 return minOccurs; 55 } 56 57 public void setMinOccurs(int minOccurs) { 58 this.minOccurs = minOccurs; 59 } 60 61 public int getMaxOccurs() { 62 return maxOccurs; 63 } 64 65 public void setMaxOccurs(int maxOccurs) { 66 this.maxOccurs = maxOccurs; 67 } 68 69 public void setMaxOccursUnbounded(boolean ubnd) { 70 this.unbounded = ubnd; 71 } 72 73 public boolean isMaxOccursUnbounded() { 74 return unbounded; 75 } 76 77 82 public boolean isNillable() { 83 return nillable; 84 } 85 86 91 public void setNillable(boolean nillable) { 92 this.nillable = nillable; 93 } 94 95 public QName getArrayType() { 96 return arrayType; 97 } 98 99 public void setArrayType(QName arrayType) { 100 this.arrayType = arrayType; 101 } 102 103 public QName getItemQName() { 104 return itemQName; 105 } 106 107 public void setItemQName(QName itemQName) { 108 this.itemQName = itemQName; 109 } 110 } 111
| Popular Tags
|