1 2 package org.apache.chemistry.opencmis.commons.impl.jaxb; 3 4 import java.math.BigInteger; 5 import java.util.ArrayList; 6 import java.util.List; 7 import javax.xml.bind.annotation.XmlAccessType; 8 import javax.xml.bind.annotation.XmlAccessorType; 9 import javax.xml.bind.annotation.XmlType; 10 11 12 /** 13 * <p>Java class for cmisPropertyStringDefinitionType complex type. 14 * 15 * <p>The following schema fragment specifies the expected content contained within this class. 16 * 17 * <pre> 18 * <complexType name="cmisPropertyStringDefinitionType"> 19 * <complexContent> 20 * <extension base="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDefinitionType"> 21 * <sequence> 22 * <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyString" minOccurs="0"/> 23 * <element name="maxLength" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/> 24 * <element name="choice" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoiceString" maxOccurs="unbounded" minOccurs="0"/> 25 * </sequence> 26 * <anyAttribute processContents='lax' namespace='##other'/> 27 * </extension> 28 * </complexContent> 29 * </complexType> 30 * </pre> 31 * 32 * 33 */ 34 @XmlAccessorType(XmlAccessType.FIELD) 35 @XmlType(name = "cmisPropertyStringDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 36 "defaultValue", 37 "maxLength", 38 "choice" 39 }) 40 public class CmisPropertyStringDefinitionType 41 extends CmisPropertyDefinitionType 42 { 43 44 protected CmisPropertyString defaultValue; 45 protected BigInteger maxLength; 46 protected List<CmisChoiceString> choice; 47 48 /** 49 * Gets the value of the defaultValue property. 50 * 51 * @return 52 * possible object is 53 * {@link CmisPropertyString } 54 * 55 */ 56 public CmisPropertyString getDefaultValue() { 57 return defaultValue; 58 } 59 60 /** 61 * Sets the value of the defaultValue property. 62 * 63 * @param value 64 * allowed object is 65 * {@link CmisPropertyString } 66 * 67 */ 68 public void setDefaultValue(CmisPropertyString value) { 69 this.defaultValue = value; 70 } 71 72 /** 73 * Gets the value of the maxLength property. 74 * 75 * @return 76 * possible object is 77 * {@link BigInteger } 78 * 79 */ 80 public BigInteger getMaxLength() { 81 return maxLength; 82 } 83 84 /** 85 * Sets the value of the maxLength property. 86 * 87 * @param value 88 * allowed object is 89 * {@link BigInteger } 90 * 91 */ 92 public void setMaxLength(BigInteger value) { 93 this.maxLength = value; 94 } 95 96 /** 97 * Gets the value of the choice property. 98 * 99 * <p> 100 * This accessor method returns a reference to the live list, 101 * not a snapshot. Therefore any modification you make to the 102 * returned list will be present inside the JAXB object. 103 * This is why there is not a <CODE>set</CODE> method for the choice property. 104 * 105 * <p> 106 * For example, to add a new item, do as follows: 107 * <pre> 108 * getChoice().add(newItem); 109 * </pre> 110 * 111 * 112 * <p> 113 * Objects of the following type(s) are allowed in the list 114 * {@link CmisChoiceString } 115 * 116 * 117 */ 118 public List<CmisChoiceString> getChoice() { 119 if (choice == null) { 120 choice = new ArrayList<CmisChoiceString>(); 121 } 122 return this.choice; 123 } 124 125 }