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.XmlAccessType;
20  import jakarta.xml.bind.annotation.XmlAccessorType;
21  import jakarta.xml.bind.annotation.XmlElement;
22  import jakarta.xml.bind.annotation.XmlRootElement;
23  import jakarta.xml.bind.annotation.XmlType;
24  import lombok.EqualsAndHashCode;
25  import lombok.ToString;
26  import org.bremersee.xml.model7a.Bicycle;
27  
28  /**
29   * The mountain bike.
30   *
31   * @author Christian Bremer
32   */
33  @SuppressWarnings("DefaultAnnotationParam")
34  @XmlRootElement(name = "MountainBike")
35  @XmlType(name = "mountainBikeType")
36  @XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
37  @EqualsAndHashCode(callSuper = true)
38  @ToString(callSuper = true)
39  public class MountainBike extends Bicycle {
40  
41    private Integer seatHeight;
42  
43    /**
44     * Gets seat height.
45     *
46     * @return the seat height
47     */
48    @XmlElement
49    @SuppressWarnings("unused")
50    public Integer getSeatHeight() {
51      return seatHeight;
52    }
53  
54    /**
55     * Sets seat height.
56     *
57     * @param seatHeight the seat height
58     */
59    public void setSeatHeight(Integer seatHeight) {
60      this.seatHeight = seatHeight;
61    }
62  }