001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 2.1.2, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.maven.doxia.module.fml.model; 007 008/** 009 * 010 * The <code><faqs></code> element is the root of 011 * the FML descriptor. 012 * The following table lists all of the possible child 013 * elements. 014 * 015 * 016 * @version $Revision$ $Date$ 017 */ 018@SuppressWarnings( "all" ) 019public class Faqs 020 implements java.io.Serializable 021{ 022 023 //--------------------------/ 024 //- Class/Member Variables -/ 025 //--------------------------/ 026 027 /** 028 * 029 * The title name of this FAQ. 030 * 031 */ 032 private String title = "FAQ"; 033 034 /** 035 * 036 * Boolean to generate optionally [top] links. 037 * 038 */ 039 private boolean toplink = true; 040 041 /** 042 * Field parts. 043 */ 044 private java.util.List<Part> parts; 045 046 /** 047 * Field modelEncoding. 048 */ 049 private String modelEncoding = "UTF-8"; 050 051 052 //-----------/ 053 //- Methods -/ 054 //-----------/ 055 056 /** 057 * Method addPart. 058 * 059 * @param part a part object. 060 */ 061 public void addPart( Part part ) 062 { 063 getParts().add( part ); 064 } //-- void addPart( Part ) 065 066 /** 067 * Method equals. 068 * 069 * @param other a other object. 070 * @return boolean 071 */ 072 public boolean equals( Object other ) 073 { 074 if ( this == other ) 075 { 076 return true; 077 } 078 079 if ( !( other instanceof Faqs ) ) 080 { 081 return false; 082 } 083 084 Faqs that = (Faqs) other; 085 boolean result = true; 086 087 result = result && ( getTitle() == null ? that.getTitle() == null : getTitle().equals( that.getTitle() ) ); 088 result = result && toplink == that.toplink; 089 result = result && ( getParts() == null ? that.getParts() == null : getParts().equals( that.getParts() ) ); 090 091 return result; 092 } //-- boolean equals( Object ) 093 094 /** 095 * Get the modelEncoding field. 096 * 097 * @return String 098 */ 099 public String getModelEncoding() 100 { 101 return this.modelEncoding; 102 } //-- String getModelEncoding() 103 104 /** 105 * Method getParts. 106 * 107 * @return List 108 */ 109 public java.util.List<Part> getParts() 110 { 111 if ( this.parts == null ) 112 { 113 this.parts = new java.util.ArrayList<Part>(); 114 } 115 116 return this.parts; 117 } //-- java.util.List<Part> getParts() 118 119 /** 120 * Get the title name of this FAQ. 121 * 122 * @return String 123 */ 124 public String getTitle() 125 { 126 return this.title; 127 } //-- String getTitle() 128 129 /** 130 * Method hashCode. 131 * 132 * @return int 133 */ 134 public int hashCode() 135 { 136 int result = 17; 137 138 result = 37 * result + ( title != null ? title.hashCode() : 0 ); 139 result = 37 * result + ( toplink ? 0 : 1 ); 140 result = 37 * result + ( parts != null ? parts.hashCode() : 0 ); 141 142 return result; 143 } //-- int hashCode() 144 145 /** 146 * Get boolean to generate optionally [top] links. 147 * 148 * @return boolean 149 */ 150 public boolean isToplink() 151 { 152 return this.toplink; 153 } //-- boolean isToplink() 154 155 /** 156 * Method removePart. 157 * 158 * @param part a part object. 159 */ 160 public void removePart( Part part ) 161 { 162 getParts().remove( part ); 163 } //-- void removePart( Part ) 164 165 /** 166 * Set the modelEncoding field. 167 * 168 * @param modelEncoding a modelEncoding object. 169 */ 170 public void setModelEncoding( String modelEncoding ) 171 { 172 this.modelEncoding = modelEncoding; 173 } //-- void setModelEncoding( String ) 174 175 /** 176 * Set list of FAQ part. 177 * 178 * @param parts a parts object. 179 */ 180 public void setParts( java.util.List<Part> parts ) 181 { 182 this.parts = parts; 183 } //-- void setParts( java.util.List ) 184 185 /** 186 * Set the title name of this FAQ. 187 * 188 * @param title a title object. 189 */ 190 public void setTitle( String title ) 191 { 192 this.title = title; 193 } //-- void setTitle( String ) 194 195 /** 196 * Set boolean to generate optionally [top] links. 197 * 198 * @param toplink a toplink object. 199 */ 200 public void setToplink( boolean toplink ) 201 { 202 this.toplink = toplink; 203 } //-- void setToplink( boolean ) 204 205 /** 206 * Method toString. 207 * 208 * @return String 209 */ 210 public java.lang.String toString() 211 { 212 StringBuilder buf = new StringBuilder( 128 ); 213 214 buf.append( "title = '" ); 215 buf.append( getTitle() ); 216 buf.append( "'" ); 217 buf.append( "\n" ); 218 buf.append( "toplink = '" ); 219 buf.append( isToplink() ); 220 buf.append( "'" ); 221 buf.append( "\n" ); 222 buf.append( "parts = '" ); 223 buf.append( getParts() ); 224 buf.append( "'" ); 225 226 return buf.toString(); 227 } //-- java.lang.String toString() 228 229}