View Javadoc
1   /*
2    * #%L
3    * wcm.io
4    * %%
5    * Copyright (C) 2019 wcm.io
6    * %%
7    * Licensed under the Apache License, Version 2.0 (the "License");
8    * you may not use this file except in compliance with the License.
9    * You may obtain a copy of the License at
10   *
11   *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   * #L%
19   */
20  package io.wcm.handler.commons.dom;
21  
22  import org.osgi.annotation.versioning.ProviderType;
23  
24  /**
25   * Html picture element.
26   */
27  @ProviderType
28  @SuppressWarnings("java:S110") // # parent inheritance
29  public final class Picture extends AbstractNonSelfClosingHtmlElement {
30  
31    private static final long serialVersionUID = 1L;
32  
33    private static final String ELEMENT_NAME = "picture";
34  
35    /**
36     * Initializes html element.
37     */
38    public Picture() {
39      super(ELEMENT_NAME);
40    }
41  
42    // -- overwrite methods for builder pattern with covariant return types --
43  
44    @Override
45    protected Picture setEmptyAttributeValueAsBoolean(String attributeName, boolean value) {
46      return (Picture)super.setEmptyAttributeValueAsBoolean(attributeName, value);
47    }
48  
49    @Override
50    public Picture setId(String value) {
51      return (Picture)super.setId(value);
52    }
53  
54    @Override
55    public Picture setCssClass(String value) {
56      return (Picture)super.setCssClass(value);
57    }
58  
59    @Override
60    public Picture addCssClass(String value) {
61      return (Picture)super.addCssClass(value);
62    }
63  
64    @Override
65    public Picture setStyleString(String value) {
66      return (Picture)super.setStyleString(value);
67    }
68  
69    @Override
70    public Picture setStyle(String styleAttribute, String styleValue) {
71      return (Picture)super.setStyle(styleAttribute, styleValue);
72    }
73  
74    @Override
75    public Picture setTitle(String value) {
76      return (Picture)super.setTitle(value);
77    }
78  
79    @Override
80    public Picture setData(String attributeName, String value) {
81      return (Picture)super.setData(attributeName, value);
82    }
83  
84    @Override
85    public Picture setAttributeValueAsLong(String name, long value) {
86      return (Picture)super.setAttributeValueAsLong(name, value);
87    }
88  
89    @Override
90    public Picture setText(String text) {
91      return (Picture)super.setText(text);
92    }
93  
94  }