Return-Path: Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: (qmail 38415 invoked from network); 22 Dec 2008 16:38:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2008 16:38:11 -0000 Received: (qmail 50024 invoked by uid 500); 22 Dec 2008 16:38:11 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 49985 invoked by uid 500); 22 Dec 2008 16:38:11 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 49976 invoked by uid 99); 22 Dec 2008 16:38:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 08:38:11 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 16:38:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DFF7923889A0; Mon, 22 Dec 2008 08:37:43 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r728722 [2/8] - in /jackrabbit/sandbox/jcr-cmis/server/ws: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/jackrabbit/ src/main/java/org/apache/jackrabbit/cmis/ src/main/java/org/apache... Date: Mon, 22 Dec 2008 16:37:38 -0000 To: commits@jackrabbit.apache.org From: paolo@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081222163743.DFF7923889A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDateTimeType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDateTimeType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDateTimeType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDateTimeType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,65 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for cmisChoiceDateTimeType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceDateTimeType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceDateTimeType", propOrder = { + "value" +}) +public class CmisChoiceDateTimeType + extends CmisChoiceType +{ + + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setValue(XMLGregorianCalendar value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDecimalType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDecimalType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDecimalType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceDecimalType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,63 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceDecimalType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceDecimalType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceDecimalType", propOrder = { + "value" +}) +public class CmisChoiceDecimalType + extends CmisChoiceType +{ + + protected BigDecimal value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setValue(BigDecimal value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceHtmlType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceHtmlType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceHtmlType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceHtmlType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,73 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisChoiceHtmlType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceHtmlType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceHtmlType", propOrder = { + "any" +}) +public class CmisChoiceHtmlType + extends CmisChoiceType +{ + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIdType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIdType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIdType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIdType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,62 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceIdType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceIdType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceIdType", propOrder = { + "value" +}) +public class CmisChoiceIdType + extends CmisChoiceType +{ + + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIntegerType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIntegerType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIntegerType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceIntegerType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,63 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceIntegerType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceIntegerType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceIntegerType", propOrder = { + "value" +}) +public class CmisChoiceIntegerType + extends CmisChoiceType +{ + + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceStringType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceStringType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceStringType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceStringType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,62 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceStringType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceStringType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceStringType", propOrder = { + "value" +}) +public class CmisChoiceStringType + extends CmisChoiceType +{ + + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,172 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; + + +/** + *

Java class for cmisChoiceType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.cmis.org/2008/05}choice" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *       <attribute ref="{http://www.cmis.org/2008/05}index"/>
+ *       <attribute ref="{http://www.cmis.org/2008/05}key"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceType", propOrder = { + "choice" +}) +@XmlSeeAlso({ + CmisChoiceDecimalType.class, + CmisChoiceXmlType.class, + CmisChoiceDateTimeType.class, + CmisChoiceStringType.class, + CmisChoiceUriType.class, + CmisChoiceIntegerType.class, + CmisChoiceHtmlType.class, + CmisChoiceIdType.class, + CmisChoiceBooleanType.class +}) +public abstract class CmisChoiceType { + + @XmlElementRef(name = "choice", namespace = "http://www.cmis.org/2008/05", type = JAXBElement.class) + protected List> choice; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected BigInteger index; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected String key; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the choice property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the choice property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChoice().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CmisChoiceIdType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceHtmlType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceDateTimeType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceUriType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceDecimalType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceStringType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceXmlType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceIntegerType }{@code >} + * {@link JAXBElement }{@code <}{@link CmisChoiceBooleanType }{@code >} + * + * + */ + public List> getChoice() { + if (choice == null) { + choice = new ArrayList>(); + } + return this.choice; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setIndex(BigInteger value) { + this.index = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceUriType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceUriType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceUriType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceUriType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,64 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisChoiceUriType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceUriType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceUriType", propOrder = { + "value" +}) +public class CmisChoiceUriType + extends CmisChoiceType +{ + + @XmlSchemaType(name = "anyURI") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceXmlType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceXmlType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceXmlType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisChoiceXmlType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,73 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisChoiceXmlType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisChoiceXmlType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisChoiceType">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisChoiceXmlType", propOrder = { + "any" +}) +public class CmisChoiceXmlType + extends CmisChoiceType +{ + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisContentStreamType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisContentStreamType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisContentStreamType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisContentStreamType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,240 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.activation.DataHandler; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMimeType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisContentStreamType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisContentStreamType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="length" type="{http://www.w3.org/2001/XMLSchema}integer"/>
+ *         <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="filename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="uri" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
+ *         <element name="stream" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisContentStreamType", propOrder = { + "length", + "mimeType", + "filename", + "uri", + "stream", + "any" +}) +public class CmisContentStreamType { + + @XmlElement(required = true) + protected BigInteger length; + protected String mimeType; + protected String filename; + @XmlSchemaType(name = "anyURI") + protected String uri; + @XmlElement(required = true) + @XmlMimeType("application/octet-stream") + protected DataHandler stream; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the length property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLength(BigInteger value) { + this.length = value; + } + + /** + * Gets the value of the mimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMimeType() { + return mimeType; + } + + /** + * Sets the value of the mimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMimeType(String value) { + this.mimeType = value; + } + + /** + * Gets the value of the filename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilename() { + return filename; + } + + /** + * Sets the value of the filename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilename(String value) { + this.filename = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the stream property. + * + * @return + * possible object is + * {@link DataHandler } + * + */ + public DataHandler getStream() { + return stream; + } + + /** + * Sets the value of the stream property. + * + * @param value + * allowed object is + * {@link DataHandler } + * + */ + public void setStream(DataHandler value) { + this.stream = value; + } + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisFaultType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisFaultType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisFaultType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisFaultType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,110 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisFaultType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisFaultType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}integer"/>
+ *         <element name="errorMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisFaultType", propOrder = { + "errorCode", + "errorMessage" +}) +@XmlSeeAlso({ + OperationNotSupportedExceptionType.class, + PermissionDeniedExceptionType.class, + NotInFolderExceptionType.class, + StorageExceptionType.class, + OffsetExceptionType.class, + ConstraintViolationExceptionType.class, + VersioningExceptionType.class, + InvalidArgumentExceptionType.class, + FilterNotValidExceptionType.class, + TypeNotFoundExceptionType.class, + UpdateConflictExceptionType.class, + FolderNotValidExceptionType.class, + ObjectNotFoundExceptionType.class, + StreamNotSupportedExceptionType.class, + RuntimeExceptionType.class, + ContentAlreadyExistsExceptionType.class +}) +public class CmisFaultType { + + @XmlElement(required = true) + protected BigInteger errorCode; + @XmlElement(required = true) + protected String errorMessage; + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setErrorCode(BigInteger value) { + this.errorCode = value; + } + + /** + * Gets the value of the errorMessage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Sets the value of the errorMessage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorMessage(String value) { + this.errorMessage = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisObjectType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisObjectType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisObjectType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisObjectType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,214 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisObjectType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisObjectType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="properties" type="{http://www.cmis.org/2008/05}cmisPropertiesType" minOccurs="0"/>
+ *         <element ref="{http://www.cmis.org/2008/05}allowableActions" minOccurs="0"/>
+ *         <element name="relationship" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="child" type="{http://www.cmis.org/2008/05}cmisObjectType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisObjectType", propOrder = { + "properties", + "allowableActions", + "relationship", + "child", + "any" +}) +public class CmisObjectType { + + protected CmisPropertiesType properties; + protected CmisAllowableActionsType allowableActions; + protected List relationship; + protected List child; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link CmisPropertiesType } + * + */ + public CmisPropertiesType getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link CmisPropertiesType } + * + */ + public void setProperties(CmisPropertiesType value) { + this.properties = value; + } + + /** + * Gets the value of the allowableActions property. + * + * @return + * possible object is + * {@link CmisAllowableActionsType } + * + */ + public CmisAllowableActionsType getAllowableActions() { + return allowableActions; + } + + /** + * Sets the value of the allowableActions property. + * + * @param value + * allowed object is + * {@link CmisAllowableActionsType } + * + */ + public void setAllowableActions(CmisAllowableActionsType value) { + this.allowableActions = value; + } + + /** + * Gets the value of the relationship property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the relationship property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRelationship().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } + * + * + */ + public List getRelationship() { + if (relationship == null) { + relationship = new ArrayList(); + } + return this.relationship; + } + + /** + * Gets the value of the child property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the child property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChild().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisObjectType } + * + * + */ + public List getChild() { + if (child == null) { + child = new ArrayList(); + } + return this.child; + } + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertiesType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertiesType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertiesType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertiesType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,159 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertiesType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertiesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice maxOccurs="unbounded" minOccurs="0">
+ *           <element ref="{http://www.cmis.org/2008/05}propertyBoolean"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyId"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyInteger"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyDateTime"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyDecimal"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyHtml"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyString"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyUri"/>
+ *           <element ref="{http://www.cmis.org/2008/05}propertyXml"/>
+ *         </choice>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertiesType", propOrder = { + "property", + "any" +}) +public class CmisPropertiesType { + + @XmlElements({ + @XmlElement(name = "propertyHtml", type = CmisPropertyHtml.class, nillable = true), + @XmlElement(name = "propertyUri", type = CmisPropertyUri.class, nillable = true), + @XmlElement(name = "propertyString", type = CmisPropertyString.class, nillable = true), + @XmlElement(name = "propertyInteger", type = CmisPropertyInteger.class, nillable = true), + @XmlElement(name = "propertyId", type = CmisPropertyId.class, nillable = true), + @XmlElement(name = "propertyDecimal", type = CmisPropertyDecimal.class, nillable = true), + @XmlElement(name = "propertyDateTime", type = CmisPropertyDateTime.class, nillable = true), + @XmlElement(name = "propertyBoolean", type = CmisPropertyBoolean.class, nillable = true), + @XmlElement(name = "propertyXml", type = CmisPropertyXml.class, nillable = true) + }) + protected List property; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the property property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the property property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProperty().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisPropertyHtml } + * {@link CmisPropertyUri } + * {@link CmisPropertyString } + * {@link CmisPropertyInteger } + * {@link CmisPropertyId } + * {@link CmisPropertyDecimal } + * {@link CmisPropertyDateTime } + * {@link CmisPropertyBoolean } + * {@link CmisPropertyXml } + * + * + */ + public List getProperty() { + if (property == null) { + property = new ArrayList(); + } + return this.property; + } + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisProperty.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisProperty.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisProperty.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisProperty.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,123 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import java.util.HashMap; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; + + +/** + *

Java class for cmisProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *       <attribute ref="{http://www.cmis.org/2008/05}name use="required""/>
+ *       <attribute ref="{http://www.cmis.org/2008/05}index"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisProperty") +@XmlSeeAlso({ + CmisPropertyId.class, + CmisPropertyUri.class, + CmisPropertyDecimal.class, + CmisPropertyXml.class, + CmisPropertyString.class, + CmisPropertyDateTime.class, + CmisPropertyHtml.class, + CmisPropertyInteger.class, + CmisPropertyBoolean.class +}) +public class CmisProperty { + + @XmlAttribute(namespace = "http://www.cmis.org/2008/05", required = true) + protected String name; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected BigInteger index; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setIndex(BigInteger value) { + this.index = value; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBoolean.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBoolean.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBoolean.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBoolean.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,94 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyBoolean complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyBoolean">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="boolean""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyBoolean", propOrder = { + "value" +}) +public class CmisPropertyBoolean + extends CmisProperty +{ + + protected Boolean value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setValue(Boolean value) { + this.value = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.BOOLEAN; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBooleanDefinitionType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBooleanDefinitionType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBooleanDefinitionType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyBooleanDefinitionType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,69 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyBooleanDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyBooleanDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceBooleanType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyBooleanDefinitionType", propOrder = { + "defaultValue" +}) +public class CmisPropertyBooleanDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + + /** + * Gets the value of the defaultValue property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the defaultValue property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDefaultValue().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceBooleanType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTime.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTime.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTime.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTime.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,97 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for cmisPropertyDateTime complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyDateTime">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="datetime""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDateTime", propOrder = { + "value" +}) +public class CmisPropertyDateTime + extends CmisProperty +{ + + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setValue(XMLGregorianCalendar value) { + this.value = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.DATETIME; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTimeDefinitionType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTimeDefinitionType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTimeDefinitionType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDateTimeDefinitionType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,69 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyDateTimeDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyDateTimeDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceDateTimeType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDateTimeDefinitionType", propOrder = { + "defaultValue" +}) +public class CmisPropertyDateTimeDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + + /** + * Gets the value of the defaultValue property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the defaultValue property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDefaultValue().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceDateTimeType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimal.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimal.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimal.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimal.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,95 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigDecimal; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyDecimal complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyDecimal">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="decimal""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDecimal", propOrder = { + "value" +}) +public class CmisPropertyDecimal + extends CmisProperty +{ + + protected BigDecimal value; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setValue(BigDecimal value) { + this.value = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.DECIMAL; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimalDefinitionType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimalDefinitionType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimalDefinitionType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDecimalDefinitionType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,97 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cmisPropertyDecimalDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyDecimalDefinitionType">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisPropertyDefinitionType">
+ *       <sequence>
+ *         <element name="defaultValue" type="{http://www.cmis.org/2008/05}cmisChoiceDecimalType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="precision" type="{http://www.cmis.org/2008/05}enumDecimalPrecision" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDecimalDefinitionType", propOrder = { + "defaultValue", + "precision" +}) +public class CmisPropertyDecimalDefinitionType + extends CmisPropertyDefinitionType +{ + + protected List defaultValue; + protected BigInteger precision; + + /** + * Gets the value of the defaultValue property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the defaultValue property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDefaultValue().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceDecimalType } + * + * + */ + public List getDefaultValue() { + if (defaultValue == null) { + defaultValue = new ArrayList(); + } + return this.defaultValue; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setPrecision(BigInteger value) { + this.precision = value; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDefinitionType.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDefinitionType.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDefinitionType.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyDefinitionType.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,477 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertyDefinitionType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyDefinitionType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="displayName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="propertyType" type="{http://www.cmis.org/2008/05}enumPropertyType"/>
+ *         <element name="cardinality" type="{http://www.cmis.org/2008/05}enumCardinality"/>
+ *         <element name="updateability" type="{http://www.cmis.org/2008/05}enumUpdateability"/>
+ *         <element name="inherited" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="queryable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="orderable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <choice maxOccurs="unbounded" minOccurs="0">
+ *           <element ref="{http://www.cmis.org/2008/05}choiceBoolean"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceDateTime"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceDecimal"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceHtml"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceId"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceInteger"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceString"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceUri"/>
+ *           <element ref="{http://www.cmis.org/2008/05}choiceXml"/>
+ *         </choice>
+ *         <element name="openChoice" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <any/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.cmis.org/2008/05}cmisUndefinedAttribute"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyDefinitionType", propOrder = { + "name", + "id", + "displayName", + "description", + "propertyType", + "cardinality", + "updateability", + "inherited", + "required", + "queryable", + "orderable", + "choice", + "openChoice", + "any" +}) +@XmlSeeAlso({ + CmisPropertyHtmlDefinitionType.class, + CmisPropertyIntegerDefinitionType.class, + CmisPropertyBooleanDefinitionType.class, + CmisPropertyIdDefinitionType.class, + CmisPropertyStringDefinitionType.class, + CmisPropertyDecimalDefinitionType.class, + CmisPropertyDateTimeDefinitionType.class, + CmisPropertyUriDefinitionType.class, + CmisPropertyXmlDefinitionType.class +}) +public class CmisPropertyDefinitionType { + + @XmlElement(required = true) + protected String name; + @XmlElement(required = true) + protected String id; + @XmlElement(required = true) + protected String displayName; + protected String description; + @XmlElement(required = true) + protected EnumPropertyType propertyType; + @XmlElement(required = true) + protected EnumCardinality cardinality; + @XmlElement(required = true) + protected EnumUpdateability updateability; + protected Boolean inherited; + protected boolean required; + protected boolean queryable; + protected boolean orderable; + @XmlElements({ + @XmlElement(name = "choiceDateTime", type = CmisChoiceDateTimeType.class), + @XmlElement(name = "choiceString", type = CmisChoiceStringType.class), + @XmlElement(name = "choiceId", type = CmisChoiceIdType.class), + @XmlElement(name = "choiceBoolean", type = CmisChoiceBooleanType.class), + @XmlElement(name = "choiceInteger", type = CmisChoiceIntegerType.class), + @XmlElement(name = "choiceDecimal", type = CmisChoiceDecimalType.class), + @XmlElement(name = "choiceXml", type = CmisChoiceXmlType.class), + @XmlElement(name = "choiceHtml", type = CmisChoiceHtmlType.class), + @XmlElement(name = "choiceUri", type = CmisChoiceUriType.class) + }) + protected List choice; + protected Boolean openChoice; + @XmlAnyElement(lax = true) + protected List any; + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + return propertyType; + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + + /** + * Gets the value of the cardinality property. + * + * @return + * possible object is + * {@link EnumCardinality } + * + */ + public EnumCardinality getCardinality() { + return cardinality; + } + + /** + * Sets the value of the cardinality property. + * + * @param value + * allowed object is + * {@link EnumCardinality } + * + */ + public void setCardinality(EnumCardinality value) { + this.cardinality = value; + } + + /** + * Gets the value of the updateability property. + * + * @return + * possible object is + * {@link EnumUpdateability } + * + */ + public EnumUpdateability getUpdateability() { + return updateability; + } + + /** + * Sets the value of the updateability property. + * + * @param value + * allowed object is + * {@link EnumUpdateability } + * + */ + public void setUpdateability(EnumUpdateability value) { + this.updateability = value; + } + + /** + * Gets the value of the inherited property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInherited() { + return inherited; + } + + /** + * Sets the value of the inherited property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInherited(Boolean value) { + this.inherited = value; + } + + /** + * Gets the value of the required property. + * + */ + public boolean isRequired() { + return required; + } + + /** + * Sets the value of the required property. + * + */ + public void setRequired(boolean value) { + this.required = value; + } + + /** + * Gets the value of the queryable property. + * + */ + public boolean isQueryable() { + return queryable; + } + + /** + * Sets the value of the queryable property. + * + */ + public void setQueryable(boolean value) { + this.queryable = value; + } + + /** + * Gets the value of the orderable property. + * + */ + public boolean isOrderable() { + return orderable; + } + + /** + * Sets the value of the orderable property. + * + */ + public void setOrderable(boolean value) { + this.orderable = value; + } + + /** + * Gets the value of the choice property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the choice property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChoice().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CmisChoiceDateTimeType } + * {@link CmisChoiceStringType } + * {@link CmisChoiceIdType } + * {@link CmisChoiceBooleanType } + * {@link CmisChoiceIntegerType } + * {@link CmisChoiceDecimalType } + * {@link CmisChoiceXmlType } + * {@link CmisChoiceHtmlType } + * {@link CmisChoiceUriType } + * + * + */ + public List getChoice() { + if (choice == null) { + choice = new ArrayList(); + } + return this.choice; + } + + /** + * Gets the value of the openChoice property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOpenChoice() { + return openChoice; + } + + /** + * Sets the value of the openChoice property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOpenChoice(Boolean value) { + this.openChoice = value; + } + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + +} Added: jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyHtml.java URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyHtml.java?rev=728722&view=auto ============================================================================== --- jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyHtml.java (added) +++ jackrabbit/sandbox/jcr-cmis/server/ws/src/main/java/org/apache/jackrabbit/cmis/ws/repository/CmisPropertyHtml.java Mon Dec 22 08:37:33 2008 @@ -0,0 +1,105 @@ + +package org.apache.jackrabbit.cmis.ws.repository; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for cmisPropertyHtml complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cmisPropertyHtml">
+ *   <complexContent>
+ *     <extension base="{http://www.cmis.org/2008/05}cmisProperty">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attribute ref="{http://www.cmis.org/2008/05}propertyType default="html""/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cmisPropertyHtml", propOrder = { + "any" +}) +public class CmisPropertyHtml + extends CmisProperty +{ + + @XmlAnyElement(lax = true) + protected List any; + @XmlAttribute(namespace = "http://www.cmis.org/2008/05") + protected EnumPropertyType propertyType; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAny().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets the value of the propertyType property. + * + * @return + * possible object is + * {@link EnumPropertyType } + * + */ + public EnumPropertyType getPropertyType() { + if (propertyType == null) { + return EnumPropertyType.HTML; + } else { + return propertyType; + } + } + + /** + * Sets the value of the propertyType property. + * + * @param value + * allowed object is + * {@link EnumPropertyType } + * + */ + public void setPropertyType(EnumPropertyType value) { + this.propertyType = value; + } + +}