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