1 2 package org.apache.chemistry.opencmis.commons.impl.jaxb; 3 4 import java.math.BigDecimal; 5 import java.math.BigInteger; 6 import java.util.ArrayList; 7 import java.util.List; 8 import javax.xml.bind.annotation.XmlAccessType; 9 import javax.xml.bind.annotation.XmlAccessorType; 10 import javax.xml.bind.annotation.XmlType; 11 12 13 /** 14 * <p>Java class for cmisPropertyDecimalDefinitionType complex type. 15 * 16 * <p>The following schema fragment specifies the expected content contained within this class. 17 * 18 * <pre> 19 * <complexType name="cmisPropertyDecimalDefinitionType"> 20 * <complexContent> 21 * <extension base="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDefinitionType"> 22 * <sequence> 23 * <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDecimal" minOccurs="0"/> 24 * <element name="maxValue" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> 25 * <element name="minValue" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/> 26 * <element name="precision" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}enumDecimalPrecision" minOccurs="0"/> 27 * <element name="choice" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoiceDecimal" maxOccurs="unbounded" minOccurs="0"/> 28 * </sequence> 29 * <anyAttribute processContents='lax' namespace='##other'/> 30 * </extension> 31 * </complexContent> 32 * </complexType> 33 * </pre> 34 * 35 * 36 */ 37 @XmlAccessorType(XmlAccessType.FIELD) 38 @XmlType(name = "cmisPropertyDecimalDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 39 "defaultValue", 40 "maxValue", 41 "minValue", 42 "precision", 43 "choice" 44 }) 45 public class CmisPropertyDecimalDefinitionType 46 extends CmisPropertyDefinitionType 47 { 48 49 protected CmisPropertyDecimal defaultValue; 50 protected BigDecimal maxValue; 51 protected BigDecimal minValue; 52 protected BigInteger precision; 53 protected List<CmisChoiceDecimal> choice; 54 55 /** 56 * Gets the value of the defaultValue property. 57 * 58 * @return 59 * possible object is 60 * {@link CmisPropertyDecimal } 61 * 62 */ 63 public CmisPropertyDecimal getDefaultValue() { 64 return defaultValue; 65 } 66 67 /** 68 * Sets the value of the defaultValue property. 69 * 70 * @param value 71 * allowed object is 72 * {@link CmisPropertyDecimal } 73 * 74 */ 75 public void setDefaultValue(CmisPropertyDecimal value) { 76 this.defaultValue = value; 77 } 78 79 /** 80 * Gets the value of the maxValue property. 81 * 82 * @return 83 * possible object is 84 * {@link BigDecimal } 85 * 86 */ 87 public BigDecimal getMaxValue() { 88 return maxValue; 89 } 90 91 /** 92 * Sets the value of the maxValue property. 93 * 94 * @param value 95 * allowed object is 96 * {@link BigDecimal } 97 * 98 */ 99 public void setMaxValue(BigDecimal value) { 100 this.maxValue = value; 101 } 102 103 /** 104 * Gets the value of the minValue property. 105 * 106 * @return 107 * possible object is 108 * {@link BigDecimal } 109 * 110 */ 111 public BigDecimal getMinValue() { 112 return minValue; 113 } 114 115 /** 116 * Sets the value of the minValue property. 117 * 118 * @param value 119 * allowed object is 120 * {@link BigDecimal } 121 * 122 */ 123 public void setMinValue(BigDecimal value) { 124 this.minValue = value; 125 } 126 127 /** 128 * Gets the value of the precision property. 129 * 130 * @return 131 * possible object is 132 * {@link BigInteger } 133 * 134 */ 135 public BigInteger getPrecision() { 136 return precision; 137 } 138 139 /** 140 * Sets the value of the precision property. 141 * 142 * @param value 143 * allowed object is 144 * {@link BigInteger } 145 * 146 */ 147 public void setPrecision(BigInteger value) { 148 this.precision = value; 149 } 150 151 /** 152 * Gets the value of the choice property. 153 * 154 * <p> 155 * This accessor method returns a reference to the live list, 156 * not a snapshot. Therefore any modification you make to the 157 * returned list will be present inside the JAXB object. 158 * This is why there is not a <CODE>set</CODE> method for the choice property. 159 * 160 * <p> 161 * For example, to add a new item, do as follows: 162 * <pre> 163 * getChoice().add(newItem); 164 * </pre> 165 * 166 * 167 * <p> 168 * Objects of the following type(s) are allowed in the list 169 * {@link CmisChoiceDecimal } 170 * 171 * 172 */ 173 public List<CmisChoiceDecimal> getChoice() { 174 if (choice == null) { 175 choice = new ArrayList<CmisChoiceDecimal>(); 176 } 177 return this.choice; 178 } 179 180 }