1 package org.tigris.scarab.util.build.l10nchecker.issues; 2 3 import org.tigris.scarab.util.build.l10nchecker.L10nIssue; 4 49 50 66 public class DifferentAttributeCountIssue extends L10nIssue 67 { 68 69 private String key; 70 71 private Integer attrCount; 72 private Integer origAttrCount; 73 74 77 public DifferentAttributeCountIssue(String key, int attrCount, int origAttrCount) 78 { 79 this.key = key; 80 this.attrCount = new Integer (attrCount); 81 this.origAttrCount = new Integer (origAttrCount); 82 } 83 84 87 public String getMessageTemplate() 88 { 89 return "Key {0} contains different number of attributes ({1}) than reference ({2})"; 90 } 91 92 95 public Object [] getParameters() 96 { 97 return new Object [] { key, attrCount, origAttrCount }; 98 } 99 } 100 | Popular Tags |