| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| EmbeddedComponentModel |
|
| 0.0;0 |
| 1 | // Copyright 2006, 2008, 2009 The Apache Software Foundation | |
| 2 | // | |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 | // you may not use this file except in compliance with the License. | |
| 5 | // You may obtain a copy of the License at | |
| 6 | // | |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 | // | |
| 9 | // Unless required by applicable law or agreed to in writing, software | |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 | // See the License for the specific language governing permissions and | |
| 13 | // limitations under the License. | |
| 14 | ||
| 15 | package org.apache.tapestry5.model; | |
| 16 | ||
| 17 | import org.apache.tapestry5.annotations.Component; | |
| 18 | import org.apache.tapestry5.ioc.Locatable; | |
| 19 | ||
| 20 | import java.util.List; | |
| 21 | ||
| 22 | /** | |
| 23 | * The model for a component embedded within another component, as defined by the {@link | |
| 24 | * org.apache.tapestry5.annotations.Component} annotation. | |
| 25 | */ | |
| 26 | public interface EmbeddedComponentModel extends Locatable | |
| 27 | { | |
| 28 | /** | |
| 29 | * A unique id for the embedded component. | |
| 30 | */ | |
| 31 | String getId(); | |
| 32 | ||
| 33 | /** | |
| 34 | * The type of the component, which may be blank. | |
| 35 | */ | |
| 36 | String getComponentType(); | |
| 37 | ||
| 38 | /** | |
| 39 | * The class name of the component, as derived from the field to which the {@link Component} annotation is applied. | |
| 40 | * This value is only used when the componentType property is blank. | |
| 41 | */ | |
| 42 | String getComponentClassName(); | |
| 43 | ||
| 44 | /** | |
| 45 | * A sorted list of the names of all bound parameters. | |
| 46 | */ | |
| 47 | List<String> getParameterNames(); | |
| 48 | ||
| 49 | /** | |
| 50 | * The value for each parameter, which will be interpreted as a binding expression. | |
| 51 | */ | |
| 52 | String getParameterValue(String parameterName); | |
| 53 | ||
| 54 | /** | |
| 55 | * Returns the fully qualified class names of all mixins added to this component, sorted alphabetically. | |
| 56 | */ | |
| 57 | List<String> getMixinClassNames(); | |
| 58 | ||
| 59 | /** | |
| 60 | * If true, then the component should inherit informal parameters from its container. | |
| 61 | */ | |
| 62 | boolean getInheritInformalParameters(); | |
| 63 | ||
| 64 | /** | |
| 65 | * Returns the list of published parameters of this component (usually an empty list). | |
| 66 | * | |
| 67 | * @return list of parameter names to publish | |
| 68 | * @see org.apache.tapestry5.annotations.Component#publishParameters() | |
| 69 | * @since 5.1.0.0 | |
| 70 | */ | |
| 71 | List<String> getPublishedParameters(); | |
| 72 | } |