1 package net.trajano.twiff.renderer; 2 3 import java.util.Collections; 4 import java.util.List; 5 6 /*** 7 * This is a simple element that is removed from the tree. 8 * 9 * @author Archimedes Trajano 10 */ 11 public class RemovedElement implements CompositePageElement { 12 /*** 13 * 14 */ 15 private int columnNumber; 16 17 /*** 18 * 19 */ 20 private int lineNumber; 21 22 /*** 23 * This is a simplified constructor used for testing. 24 */ 25 public RemovedElement() { 26 } 27 28 /*** 29 * Does nothing since this would be ignored. 30 * 31 * @param visitor 32 * visitor. 33 */ 34 public final void accept(final PageElementVisitor visitor) { 35 } 36 37 /*** 38 * Does nothing. 39 * 40 * @param element 41 */ 42 public void addElement(final PageElement element) { 43 } 44 45 /*** 46 * Returns the sub-elements in the element. 47 * 48 * @return sub-elements. 49 */ 50 public List<PageElement> getElements() { 51 return Collections.EMPTY_LIST; 52 } 53 54 /*** 55 * @see net.trajano.twiff.renderer.PageElement#getColumnNumber() 56 */ 57 public int getColumnNumber() { 58 return columnNumber; 59 } 60 61 /*** 62 * @see net.trajano.twiff.renderer.PageElement#getLineNumber() 63 */ 64 public int getLineNumber() { 65 return lineNumber; 66 } 67 }