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 */ 019package org.apache.maven.doxia.sink.impl; 020 021import org.apache.maven.doxia.sink.SinkEventAttributes; 022 023/** 024 * Empty implementation of the <code>Sink</code> interface. Useful for testing purposes. 025 * 026 * @since 1.0 027 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a> 028 * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a> 029 */ 030public class SinkAdapter extends AbstractSink { 031 032 @Override 033 public void head_() { 034 // nop 035 } 036 037 @Override 038 public void body_() { 039 // nop 040 } 041 042 @Override 043 public void article_() { 044 // nop 045 } 046 047 @Override 048 public void navigation_() { 049 // nop 050 } 051 052 @Override 053 public void sidebar_() { 054 // nop 055 } 056 057 @Override 058 public void list_() { 059 // nop 060 } 061 062 @Override 063 public void listItem_() { 064 // nop 065 } 066 067 @Override 068 public void numberedList_() { 069 // nop 070 } 071 072 @Override 073 public void numberedListItem_() { 074 // nop 075 } 076 077 @Override 078 public void definitionList_() { 079 // nop 080 } 081 082 @Override 083 public void definitionListItem_() { 084 // nop 085 } 086 087 @Override 088 public void definition_() { 089 // nop 090 } 091 092 @Override 093 public void figure_() { 094 // nop 095 } 096 097 @Override 098 public void table_() { 099 // nop 100 } 101 102 @Override 103 public void tableRows_() { 104 // nop 105 } 106 107 @Override 108 public void tableRow_() { 109 // nop 110 } 111 112 @Override 113 public void title_() { 114 // nop 115 } 116 117 @Override 118 public void author_() { 119 // nop 120 } 121 122 @Override 123 public void date_() { 124 // nop 125 } 126 127 @Override 128 public void header_() { 129 // nop 130 } 131 132 @Override 133 public void content_() { 134 // nop 135 } 136 137 @Override 138 public void footer_() { 139 // nop 140 } 141 142 @Override 143 public void paragraph_() { 144 // nop 145 } 146 147 @Override 148 public void data_() { 149 // nop 150 } 151 152 @Override 153 public void time_() { 154 // nop 155 } 156 157 @Override 158 public void address_() { 159 // nop 160 } 161 162 @Override 163 public void blockquote_() { 164 // nop 165 } 166 167 @Override 168 public void division_() { 169 // nop 170 } 171 172 @Override 173 public void verbatim_() { 174 // nop 175 } 176 177 @Override 178 public void definedTerm_() { 179 // nop 180 } 181 182 @Override 183 public void figureCaption_() { 184 // nop 185 } 186 187 @Override 188 public void tableCell_() { 189 // nop 190 } 191 192 @Override 193 public void tableHeaderCell_() { 194 // nop 195 } 196 197 @Override 198 public void tableCaption_() { 199 // nop 200 } 201 202 @Override 203 public void pageBreak() { 204 // nop 205 } 206 207 @Override 208 public void anchor_() { 209 // nop 210 } 211 212 @Override 213 public void link_() { 214 // nop 215 } 216 217 @Override 218 public void inline_() { 219 // nop 220 } 221 222 @Override 223 public void italic() { 224 // nop 225 } 226 227 @Override 228 public void italic_() { 229 // nop 230 } 231 232 @Override 233 public void bold() { 234 // nop 235 } 236 237 @Override 238 public void bold_() { 239 // nop 240 } 241 242 @Override 243 public void monospaced() { 244 // nop 245 } 246 247 @Override 248 public void monospaced_() { 249 // nop 250 } 251 252 @Override 253 public void nonBreakingSpace() { 254 // nop 255 } 256 257 @Override 258 public void rawText(String text) { 259 // nop 260 } 261 262 @Override 263 public void comment(String comment) { 264 // nop 265 } 266 267 @Override 268 public void flush() { 269 // nop 270 } 271 272 @Override 273 public void close() { 274 // nop 275 } 276 277 @Override 278 public void head(SinkEventAttributes attributes) { 279 // nop 280 } 281 282 @Override 283 public void title(SinkEventAttributes attributes) { 284 // nop 285 } 286 287 @Override 288 public void author(SinkEventAttributes attributes) { 289 // nop 290 } 291 292 @Override 293 public void date(SinkEventAttributes attributes) { 294 // nop 295 } 296 297 @Override 298 public void body(SinkEventAttributes attributes) { 299 // nop 300 } 301 302 @Override 303 public void article(SinkEventAttributes attributes) { 304 // nop 305 } 306 307 @Override 308 public void navigation(SinkEventAttributes attributes) { 309 // nop 310 } 311 312 @Override 313 public void sidebar(SinkEventAttributes attributes) { 314 // nop 315 } 316 317 @Override 318 public void section(int level, SinkEventAttributes attributes) { 319 // nop 320 } 321 322 @Override 323 public void section_(int level) { 324 // nop 325 } 326 327 @Override 328 public void sectionTitle(int level, SinkEventAttributes attributes) { 329 // nop 330 } 331 332 @Override 333 public void sectionTitle_(int level) { 334 // nop 335 } 336 337 @Override 338 public void header(SinkEventAttributes attributes) { 339 // nop 340 } 341 342 @Override 343 public void content(SinkEventAttributes attributes) { 344 // nop 345 } 346 347 @Override 348 public void footer(SinkEventAttributes attributes) { 349 // nop 350 } 351 352 @Override 353 public void list(SinkEventAttributes attributes) { 354 // nop 355 } 356 357 @Override 358 public void listItem(SinkEventAttributes attributes) { 359 // nop 360 } 361 362 @Override 363 public void numberedList(int numbering, SinkEventAttributes attributes) { 364 // nop 365 } 366 367 @Override 368 public void numberedListItem(SinkEventAttributes attributes) { 369 // nop 370 } 371 372 @Override 373 public void definitionList(SinkEventAttributes attributes) { 374 // nop 375 } 376 377 @Override 378 public void definitionListItem(SinkEventAttributes attributes) { 379 // nop 380 } 381 382 @Override 383 public void definition(SinkEventAttributes attributes) { 384 // nop 385 } 386 387 @Override 388 public void definedTerm(SinkEventAttributes attributes) { 389 // nop 390 } 391 392 @Override 393 public void figure(SinkEventAttributes attributes) { 394 // nop 395 } 396 397 @Override 398 public void figureCaption(SinkEventAttributes attributes) { 399 // nop 400 } 401 402 @Override 403 public void figureGraphics(String src, SinkEventAttributes attributes) { 404 // nop 405 } 406 407 @Override 408 public void table(SinkEventAttributes attributes) { 409 // nop 410 } 411 412 @Override 413 public void tableRows(int[] justification, boolean grid) { 414 // nop 415 } 416 417 @Override 418 public void tableRow(SinkEventAttributes attributes) { 419 // nop 420 } 421 422 @Override 423 public void tableCell(SinkEventAttributes attributes) { 424 // nop 425 } 426 427 @Override 428 public void tableHeaderCell(SinkEventAttributes attributes) { 429 // nop 430 } 431 432 @Override 433 public void tableCaption(SinkEventAttributes attributes) { 434 // nop 435 } 436 437 @Override 438 public void paragraph(SinkEventAttributes attributes) { 439 // nop 440 } 441 442 @Override 443 public void data(String value, SinkEventAttributes attributes) { 444 // nop 445 } 446 447 @Override 448 public void time(String datetime, SinkEventAttributes attributes) { 449 // nop 450 } 451 452 @Override 453 public void address(SinkEventAttributes attributes) { 454 // nop 455 } 456 457 @Override 458 public void blockquote(SinkEventAttributes attributes) { 459 // nop 460 } 461 462 @Override 463 public void division(SinkEventAttributes attributes) { 464 // nop 465 } 466 467 @Override 468 public void verbatim(SinkEventAttributes attributes) { 469 // nop 470 } 471 472 @Override 473 public void horizontalRule(SinkEventAttributes attributes) { 474 // nop 475 } 476 477 @Override 478 public void anchor(String name, SinkEventAttributes attributes) { 479 // nop 480 } 481 482 @Override 483 public void link(String name, SinkEventAttributes attributes) { 484 // nop 485 } 486 487 @Override 488 public void inline(SinkEventAttributes attributes) { 489 // nop 490 } 491 492 @Override 493 public void lineBreak(SinkEventAttributes attributes) { 494 // nop 495 } 496 497 @Override 498 public void lineBreakOpportunity(SinkEventAttributes attributes) { 499 // nop 500 } 501 502 @Override 503 public void text(String text, SinkEventAttributes attributes) { 504 // nop 505 } 506 507 @Override 508 public void unknown(String name, Object[] requiredParams, SinkEventAttributes attributes) { 509 // nop 510 } 511}