View Javadoc
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.xds.core.requests;
17  
18  import lombok.EqualsAndHashCode;
19  import lombok.Getter;
20  import lombok.ToString;
21  import org.openehealth.ipf.commons.ihe.xds.core.metadata.ObjectReference;
22  
23  import javax.xml.bind.annotation.*;
24  import java.io.Serializable;
25  import java.util.ArrayList;
26  import java.util.List;
27  
28  /**
29   * Request object for the Remove Metadata transaction.
30   * <p>
31   * Lists are pre-created and can therefore never be <code>null</code>.
32   * @author Boris Stanojevic
33   */
34  @XmlAccessorType(XmlAccessType.FIELD)
35  @XmlType(name = "RemoveMetadata", propOrder = {"references"})
36  @XmlRootElement(name = "removeMetadata")
37  @EqualsAndHashCode(doNotUseGetters = true)
38  @ToString(doNotUseGetters = true)
39  public class RemoveMetadata implements Serializable {
40      private static final long serialVersionUID = -737326382128159189L;
41  
42      @XmlElement(name = "reference")
43      @Getter private final List<ObjectReference> references = new ArrayList<>();
44  
45  }