1 15 package org.apache.tapestry.spec; 16 17 import org.apache.hivemind.HiveMind; 18 import org.apache.hivemind.impl.MessageFormatter; 19 20 24 class SpecMessages 25 { 26 private static MessageFormatter _formatter = new MessageFormatter(SpecMessages.class, 27 "SpecStrings"); 28 29 static String claimedProperty(String propertyName, Object existing) 30 { 31 return _formatter.format("claimed-property", propertyName, HiveMind 32 .getLocationString(existing)); 33 } 34 35 static String duplicateAsset(String name, IAssetSpecification previousAsset) 36 { 37 return _formatter 38 .format("duplicate-asset", name, HiveMind.getLocationString(previousAsset)); 39 } 40 41 static String duplicateParameter(String name, IParameterSpecification existing) 42 { 43 return _formatter.format("duplicate-parameter", name, HiveMind.getLocationString(existing)); 44 } 45 46 static String duplicateBean(String name, IBeanSpecification spec) 47 { 48 return _formatter.format("duplicate-bean", name, HiveMind.getLocationString(spec)); 49 } 50 51 static String duplicateProperty(String name, IPropertySpecification existing) 52 { 53 return _formatter.format("duplicate-property", name, HiveMind.getLocationString(existing)); 54 } 55 56 static String duplicateComponent(String name, IContainedComponent existing) 57 { 58 return _formatter.format("duplicate-component", name, HiveMind.getLocationString(existing)); 59 } 60 } 61 | Popular Tags |