View Javadoc
1   /*
2   * Copyright 2020-2026 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  
17  package org.bremersee.xml.model8;
18  
19  import jakarta.xml.bind.annotation.XmlAccessType;
20  import jakarta.xml.bind.annotation.XmlAccessorType;
21  import jakarta.xml.bind.annotation.XmlAnyElement;
22  import jakarta.xml.bind.annotation.XmlElementWrapper;
23  import jakarta.xml.bind.annotation.XmlRootElement;
24  import jakarta.xml.bind.annotation.XmlType;
25  import java.util.ArrayList;
26  import java.util.List;
27  import lombok.AccessLevel;
28  import lombok.AllArgsConstructor;
29  import lombok.EqualsAndHashCode;
30  import lombok.Getter;
31  import lombok.NoArgsConstructor;
32  import lombok.ToString;
33  
34  /**
35   * Any element list.
36   *
37   * @author Christian Bremer
38   */
39  @XmlRootElement(name = "anyElementList")
40  @XmlType(name = "anyElementListType")
41  @XmlAccessorType(XmlAccessType.FIELD)
42  @Getter
43  @EqualsAndHashCode
44  @ToString
45  @NoArgsConstructor(access = AccessLevel.PACKAGE)
46  @AllArgsConstructor
47  public class AnyElementList {
48  
49    /**
50     * The Content.
51     */
52    @XmlElementWrapper(name = "content")
53    @XmlAnyElement(lax = true)
54    List<Object> content = new ArrayList<>();
55  
56  }