1 /* 2 * Copyright 2017 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2; 17 18 import java.util.ArrayList; 19 import java.util.List; 20 import javax.xml.bind.annotation.*; 21 22 23 /** 24 * <p>Java class for SubstringFilter complex type. 25 * 26 * <p>The following schema fragment specifies the expected content contained within this class. 27 * 28 * <pre> 29 * <complexType name="SubstringFilter"> 30 * <complexContent> 31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 32 * <sequence> 33 * <element name="initial" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlValue" minOccurs="0"/> 34 * <element name="any" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlValue" maxOccurs="unbounded" minOccurs="0"/> 35 * <element name="final" type="{urn:oasis:names:tc:DSML:2:0:core}DsmlValue" minOccurs="0"/> 36 * </sequence> 37 * <attribute name="name" use="required" type="{urn:oasis:names:tc:DSML:2:0:core}AttributeDescriptionValue" /> 38 * </restriction> 39 * </complexContent> 40 * </complexType> 41 * </pre> 42 * 43 * 44 */ 45 @XmlAccessorType(XmlAccessType.FIELD) 46 @XmlType(name = "SubstringFilter", propOrder = { 47 "initial", 48 "any", 49 "_final" 50 }) 51 public class SubstringFilter { 52 53 @XmlElement(type = String.class) 54 @XmlSchemaType(name = "anySimpleType") 55 protected Object initial; 56 @XmlElement(type = String.class) 57 @XmlSchemaType(name = "anySimpleType") 58 protected List<Object> any; 59 @XmlElement(name = "final", type = String.class) 60 @XmlSchemaType(name = "anySimpleType") 61 protected Object _final; 62 @XmlAttribute(name = "name", required = true) 63 protected String name; 64 65 /** 66 * Gets the value of the initial property. 67 * 68 * @return 69 * possible object is 70 * {@link String } 71 * 72 */ 73 public Object getInitial() { 74 return initial; 75 } 76 77 /** 78 * Sets the value of the initial property. 79 * 80 * @param value 81 * allowed object is 82 * {@link String } 83 * 84 */ 85 public void setInitial(Object value) { 86 this.initial = value; 87 } 88 89 /** 90 * Gets the value of the any property. 91 * 92 * <p> 93 * This accessor method returns a reference to the live list, 94 * not a snapshot. Therefore any modification you make to the 95 * returned list will be present inside the JAXB object. 96 * This is why there is not a <CODE>set</CODE> method for the any property. 97 * 98 * <p> 99 * For example, to add a new item, do as follows: 100 * <pre> 101 * getAny().add(newItem); 102 * </pre> 103 * 104 * 105 * <p> 106 * Objects of the following type(s) are allowed in the list 107 * {@link String } 108 * 109 * 110 */ 111 public List<Object> getAny() { 112 if (any == null) { 113 any = new ArrayList<>(); 114 } 115 return this.any; 116 } 117 118 /** 119 * Gets the value of the final property. 120 * 121 * @return 122 * possible object is 123 * {@link String } 124 * 125 */ 126 public Object getFinal() { 127 return _final; 128 } 129 130 /** 131 * Sets the value of the final property. 132 * 133 * @param value 134 * allowed object is 135 * {@link String } 136 * 137 */ 138 public void setFinal(Object value) { 139 this._final = value; 140 } 141 142 /** 143 * Gets the value of the name property. 144 * 145 * @return 146 * possible object is 147 * {@link String } 148 * 149 */ 150 public String getName() { 151 return name; 152 } 153 154 /** 155 * Sets the value of the name property. 156 * 157 * @param value 158 * allowed object is 159 * {@link String } 160 * 161 */ 162 public void setName(String value) { 163 this.name = value; 164 } 165 166 }