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.model7b;
18  
19  import jakarta.xml.bind.annotation.XmlElement;
20  import jakarta.xml.bind.annotation.XmlRootElement;
21  import jakarta.xml.bind.annotation.XmlTransient;
22  import jakarta.xml.bind.annotation.XmlType;
23  import java.util.ArrayList;
24  import java.util.List;
25  import lombok.EqualsAndHashCode;
26  import lombok.ToString;
27  import org.bremersee.xml.model7a.Producer;
28  
29  /**
30   * The sport bikes.
31   *
32   * @author Christian Bremer
33   */
34  @XmlRootElement(name = "SportBikes")
35  @XmlType(name = "sportBikesType")
36  @EqualsAndHashCode(callSuper = true)
37  @ToString(callSuper = true)
38  public class SportBikes extends Producer {
39  
40    @XmlTransient
41    private List<Producer> chain;
42  
43    /**
44     * Gets chain.
45     *
46     * @return the chain
47     */
48    @XmlElement(name = "Reseller")
49    public List<Producer> getChain() {
50      if (chain == null) {
51        chain = new ArrayList<>();
52      }
53      return chain;
54    }
55  
56  }