1 15 package org.apache.tapestry; 16 17 import java.util.List ; 18 19 import org.apache.hivemind.ApplicationRuntimeException; 20 import org.apache.hivemind.Locatable; 21 import org.apache.hivemind.Resource; 22 import org.apache.tapestry.engine.IPropertySource; 23 import org.apache.tapestry.spec.IComponentSpecification; 24 import org.apache.tapestry.spec.ILibrarySpecification; 25 26 42 43 public interface INamespace extends Locatable, IPropertySource 44 { 45 48 49 public static final String FRAMEWORK_NAMESPACE = "framework"; 50 51 56 57 public static final char SEPARATOR = ':'; 58 59 66 67 public String getId(); 68 69 72 73 public String getExtendedId(); 74 75 82 83 public String getNamespaceId(); 84 85 90 91 public INamespace getParentNamespace(); 92 93 103 104 public INamespace getChildNamespace(String id); 105 106 110 111 public List getChildIds(); 112 113 122 123 public IComponentSpecification getPageSpecification(String name); 124 125 128 129 public boolean containsPage(String name); 130 131 135 136 public List getPageNames(); 137 138 147 148 public IComponentSpecification getComponentSpecification(String type); 149 150 156 157 public boolean containsComponentType(String type); 158 159 163 164 public ILibrarySpecification getSpecification(); 165 166 172 173 public String constructQualifiedName(String pageName); 174 175 179 180 public Resource getSpecificationLocation(); 181 182 188 189 public boolean isApplicationNamespace(); 190 191 197 198 public void installPageSpecification(String pageName, IComponentSpecification specification); 199 200 207 208 public void installComponentSpecification(String type, IComponentSpecification specification); 209 210 } | Popular Tags |