1 15 package org.apache.tapestry.spec; 16 17 import java.util.Collection ; 18 import java.util.List ; 19 20 import org.apache.hivemind.Locatable; 21 import org.apache.hivemind.LocationHolder; 22 import org.apache.hivemind.Resource; 23 import org.apache.tapestry.util.IPropertyHolder; 24 25 50 public interface IComponentSpecification extends IPropertyHolder, LocationHolder, Locatable 51 { 52 56 public void addAsset(String name, IAssetSpecification asset); 57 58 62 public void addComponent(String id, IContainedComponent component); 63 64 71 public void addParameter(IParameterSpecification spec); 72 73 79 public boolean getAllowBody(); 80 81 91 public boolean getAllowInformalParameters(); 92 93 99 public IAssetSpecification getAsset(String name); 100 101 104 public List getAssetNames(); 105 106 112 public IContainedComponent getComponent(String id); 113 114 119 120 public String getComponentClassName(); 121 122 128 public List getComponentIds(); 129 130 136 public IParameterSpecification getParameter(String name); 137 138 144 145 public Collection getRequiredParameters(); 146 147 152 public List getParameterNames(); 153 154 public void setAllowBody(boolean value); 155 156 public void setAllowInformalParameters(boolean value); 157 158 public void setComponentClassName(String value); 159 160 165 public void addBeanSpecification(String name, IBeanSpecification specification); 166 167 173 public IBeanSpecification getBeanSpecification(String name); 174 175 178 public Collection getBeanNames(); 179 180 187 public void addReservedParameterName(String value); 188 189 197 public boolean isReservedParameterName(String value); 198 199 204 public String getDescription(); 205 206 211 public void setDescription(String description); 212 213 221 public String getPublicId(); 222 223 224 public void setPublicId(String publicId); 225 226 234 public boolean isPageSpecification(); 235 236 237 public void setPageSpecification(boolean pageSpecification); 238 239 240 public Resource getSpecificationLocation(); 241 242 243 public void setSpecificationLocation(Resource specificationLocation); 244 245 251 public void addPropertySpecification(IPropertySpecification spec); 252 253 259 public List getPropertySpecificationNames(); 260 261 268 public IPropertySpecification getPropertySpecification(String name); 269 270 275 276 public void addInjectSpecification(InjectSpecification spec); 277 278 284 285 public List getInjectSpecifications(); 286 287 293 294 public boolean isDeprecated(); 295 296 299 300 public void setDeprecated(boolean deprecated); 301 } | Popular Tags |