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.XmlAnyElement; 10 import javax.xml.bind.annotation.XmlElement; 11 import javax.xml.bind.annotation.XmlType; 12 13 14 /** 15 * <p>Java class for cmisFaultType complex type. 16 * 17 * <p>The following schema fragment specifies the expected content contained within this class. 18 * 19 * <pre> 20 * <complexType name="cmisFaultType"> 21 * <complexContent> 22 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 23 * <sequence> 24 * <element name="type" type="{http://docs.oasis-open.org/ns/cmis/messaging/200908/}enumServiceException"/> 25 * <element name="code" type="{http://www.w3.org/2001/XMLSchema}integer"/> 26 * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/> 27 * <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 28 * </sequence> 29 * </restriction> 30 * </complexContent> 31 * </complexType> 32 * </pre> 33 * 34 * 35 */ 36 @XmlAccessorType(XmlAccessType.FIELD) 37 @XmlType(name = "cmisFaultType", propOrder = { 38 "type", 39 "code", 40 "message", 41 "any" 42 }) 43 public class CmisFaultType { 44 45 @XmlElement(required = true) 46 protected EnumServiceException type; 47 @XmlElement(required = true) 48 protected BigInteger code; 49 @XmlElement(required = true) 50 protected String message; 51 @XmlAnyElement(lax = true) 52 protected List<Object> any; 53 54 /** 55 * Gets the value of the type property. 56 * 57 * @return 58 * possible object is 59 * {@link EnumServiceException } 60 * 61 */ 62 public EnumServiceException getType() { 63 return type; 64 } 65 66 /** 67 * Sets the value of the type property. 68 * 69 * @param value 70 * allowed object is 71 * {@link EnumServiceException } 72 * 73 */ 74 public void setType(EnumServiceException value) { 75 this.type = value; 76 } 77 78 /** 79 * Gets the value of the code property. 80 * 81 * @return 82 * possible object is 83 * {@link BigInteger } 84 * 85 */ 86 public BigInteger getCode() { 87 return code; 88 } 89 90 /** 91 * Sets the value of the code property. 92 * 93 * @param value 94 * allowed object is 95 * {@link BigInteger } 96 * 97 */ 98 public void setCode(BigInteger value) { 99 this.code = value; 100 } 101 102 /** 103 * Gets the value of the message property. 104 * 105 * @return 106 * possible object is 107 * {@link String } 108 * 109 */ 110 public String getMessage() { 111 return message; 112 } 113 114 /** 115 * Sets the value of the message property. 116 * 117 * @param value 118 * allowed object is 119 * {@link String } 120 * 121 */ 122 public void setMessage(String value) { 123 this.message = value; 124 } 125 126 /** 127 * Gets the value of the any property. 128 * 129 * <p> 130 * This accessor method returns a reference to the live list, 131 * not a snapshot. Therefore any modification you make to the 132 * returned list will be present inside the JAXB object. 133 * This is why there is not a <CODE>set</CODE> method for the any property. 134 * 135 * <p> 136 * For example, to add a new item, do as follows: 137 * <pre> 138 * getAny().add(newItem); 139 * </pre> 140 * 141 * 142 * <p> 143 * Objects of the following type(s) are allowed in the list 144 * {@link Object } 145 * 146 * 147 */ 148 public List<Object> getAny() { 149 if (any == null) { 150 any = new ArrayList<Object>(); 151 } 152 return this.any; 153 } 154 155 }