1 19 20 package org.netbeans.api.editor.settings; 21 22 import java.util.List ; 23 24 33 public final class CodeTemplateDescription { 34 35 private final String abbreviation; 36 37 private final String description; 38 39 private final String parametrizedText; 40 41 49 public CodeTemplateDescription(String abbreviation, String description, String parametrizedText) { 50 this(abbreviation, description, parametrizedText, null); 51 } 52 53 public CodeTemplateDescription(String abbreviation, String description, String parametrizedText, List <String > contexts) { 54 assert (abbreviation != null); 55 assert (description != null); 56 assert (parametrizedText != null); 57 this.abbreviation = abbreviation; 58 this.description = description; 59 this.parametrizedText = parametrizedText; 60 this.contexts = contexts; 61 } 62 63 private final List <String > contexts; 64 65 73 public String getAbbreviation() { 74 return abbreviation; 75 } 76 77 84 public String getDescription() { 85 return description; 86 } 87 88 96 public String getParametrizedText() { 97 return parametrizedText; 98 } 99 100 public List <String > getContexts() { 101 return contexts; 102 } 103 104 public String toString() { 105 return "abbrev='" + getAbbreviation() + "', parametrizedText='" + getParametrizedText() + "'"; } 107 108 } 109 | Popular Tags |