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