1 15 package org.apache.tapestry.parse; 16 17 import java.util.Map ; 18 19 import org.apache.hivemind.Location; 20 21 31 public class TemplateTokenFactory 32 { 33 public OpenToken createOpenToken(String tagName, String jwcId, String type, Location location) 34 { 35 return new OpenToken(tagName, jwcId, type, location); 36 } 37 38 public CloseToken createCloseToken(String tagName, Location location) 39 { 40 return new CloseToken(tagName, location); 41 } 42 43 public TextToken createTextToken( 44 char[] templateData, 45 int blockStart, 46 int end, 47 Location templateLocation) 48 { 49 return new TextToken(templateData, blockStart, end, templateLocation); 50 } 51 52 public LocalizationToken createLocalizationToken( 53 String tagName, 54 String localizationKey, 55 boolean raw, 56 Map attributes, 57 Location startLocation) 58 { 59 return new LocalizationToken(tagName, localizationKey, raw, attributes, startLocation); 60 } 61 } | Popular Tags |