1 43 44 package org.jfree.xml.generator.model; 45 46 49 public class Comments { 50 51 52 private String [] openTagComment; 53 54 55 private String [] closeTagComment; 56 57 63 public Comments(final String [] openTagComment, final String [] closeTagComment) { 64 this.openTagComment = openTagComment; 65 this.closeTagComment = closeTagComment; 66 } 67 68 73 public String [] getOpenTagComment() { 74 return this.openTagComment; 75 } 76 77 82 public String [] getCloseTagComment() { 83 return this.closeTagComment; 84 } 85 86 91 public String toString() { 92 final StringBuffer b = new StringBuffer (); 93 b.append ("Comments:={open="); 94 if (this.openTagComment == null) { 95 b.append("null"); 96 } 97 else { 98 b.append("{"); 99 for (int i = 0; i < this.openTagComment.length; i++) { 100 b.append("["); 101 b.append(this.openTagComment[i]); 102 b.append("]"); 103 } 104 b.append("}"); 105 } 106 b.append(", close="); 107 if (this.closeTagComment == null) { 108 b.append("null"); 109 } 110 else { 111 b.append("{"); 112 for (int i = 0; i < this.closeTagComment.length; i++) { 113 b.append("["); 114 b.append(this.closeTagComment[i]); 115 b.append("]"); 116 } 117 b.append("}"); 118 } 119 b.append("}"); 120 return b.toString(); 121 } 122 123 } 124 | Popular Tags |