View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc;
2   
3   /**
4    * <body>
5    * <p> This class is only meant for testing. </p>
6    * <p> In html, closing all tags is not necessary.
7    * <li> neither is opening every tag. <p>Only the first non-tight tag is logged</li>
8    * </body>
9    *
10   * @see "https://www.w3.org/TR/html51/syntax.html#optional-start-and-end-tags"
11   */
12  public class InputAbstractJavadocNonTightHtmlTags2 {
13      /** <p> <p> paraception </p> </p> */
14      private int field1;
15  
16      /**<li> paraTags should be opened</p> list isn't nested in parse tree </li>*/
17      private int field2;
18  
19      /**
20       * <p> this paragraph is closed and would be nested in javadoc tree </p>
21       * <li> this list has an <p> unclosed para, but still the list would get nested </li>
22       */
23      private int field3;
24  
25      /**
26       * <li> Complete <p> nesting </p> </li>
27       * <tr> Zero </p> nesting despite `tr` is closed </tr>
28       */
29      private int field4;
30  
31      /**
32       * <p> <a href="www.something.com">something</a> paragraph with `htmlTag` </p>
33       * <p> <a href="www.something.com"/> Nested paragraph with `singletonTag` </p>
34       * <li> Outer tag <li> Inner tag nested </li> not nested </li>
35       */
36      private int field5;
37  
38      /**
39       * <body> body <p> paragraph <li> list </li> </p> </body>
40       *
41       * @return <li> <li> outer list isn't nested in parse tree </li> </li>
42       */
43      int getField1() {return field1;}
44  
45      /***/
46      int getField2() {return field2;} //method with empty javadoc
47  
48      /**
49       * <p>This is a setter method.
50       * And paraTag shall be nested in parse tree </p>
51       * @param field2 <p> settter
52       */
53      void setField2(int field2) {this.field2 = field2;}
54  
55      /**
56       * <p> paragraph with a <br>singletonElement. <hr> And it contains another one. </p>
57       * <li> List with singletonElement
58       * <param name=mov value="~/imitation game.mp4"> <param name=allowfullscreen value=true> </li>
59       * @return <tr> tr with <base href="www.something.com"> singletonElement </tr>
60       *     <tr> nonTight </th>
61       */
62      private int getField3() {return field3;}
63  
64      /**
65       * @param field3 <td> td with singletonElement <br/> </td>
66       */
67      private void setField3(int field3) { this.field3 = field3;}
68  
69      /**
70       * <html> <bR> <Br> <BR> <Br/> <BR/> <bR/> </html>
71       * <option> <INPut/> </option>
72       * @return <tbody> <input/> <br> </tbody>
73       */
74      private int getField4() {return field4;}
75  
76      /**
77       * <thead> <br> </thead>
78       * <tfoot> <AREA ALT="alt" COORDS="100,0,200,50" HREF="/href/"> </tfoot>
79       * <p> </p>
80       * @param field4 value to which {@link #field4} is to be set to
81       */
82      private void setField4(int field4) {this.field4 = field4;}
83  
84      /**
85       *  <p> <li> <TR> <Td> <tH> <body> <colGROUP> <DD> <dt> <Head> <HTML> <option> <tBody> <tHead>
86       *      <tFoot>
87       * @param field5 </p> value to which {@link #field5} is to be set to
88       */
89      private void setField5(int field5) {this.field5 = field5;}
90  }