public class MutableEmbeddedComponentModelImpl extends BaseLocatable implements MutableEmbeddedComponentModel
| Constructor and Description |
|---|
MutableEmbeddedComponentModelImpl(String id,
String componentType,
String componentClassName,
String declaredClass,
boolean inheritInformalParameters,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMixin(String mixinClassName,
String... constraints)
Adds a mixin to the component in terms of its fully qualified class name, with optional ordering constraints.
|
void |
addParameter(String name,
String value) |
String |
getComponentClassName()
The class name of the component, as derived from the field to which the
Component annotation is applied. |
String |
getComponentType()
The type of the component, which may be blank.
|
String[] |
getConstraintsForMixin(String mixinClassName) |
String |
getId()
A unique id for the embedded component.
|
boolean |
getInheritInformalParameters()
If true, then the component should inherit informal parameters from its container.
|
List<String> |
getMixinClassNames()
Returns the fully qualified class names of all mixins added to this component, sorted alphabetically.
|
List<String> |
getParameterNames()
A sorted list of the names of all bound parameters.
|
String |
getParameterValue(String parameterName)
The value for each parameter, which will be interpreted as a binding expression.
|
List<String> |
getPublishedParameters()
Returns the list of published parameters of this component (usually an empty list).
|
void |
setPublishedParameters(List<String> parameterNames)
Sets the list of published parameters for this embedded component.
|
String |
toString() |
getLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocationpublic String getComponentClassName()
EmbeddedComponentModelComponent annotation is applied.
This value is only used when the componentType property is blank.getComponentClassName in interface EmbeddedComponentModelpublic void addParameter(String name, String value)
addParameter in interface MutableEmbeddedComponentModelpublic String getId()
EmbeddedComponentModelgetId in interface EmbeddedComponentModelpublic String getComponentType()
EmbeddedComponentModelgetComponentType in interface EmbeddedComponentModelpublic List<String> getParameterNames()
EmbeddedComponentModelgetParameterNames in interface EmbeddedComponentModelpublic String getParameterValue(String parameterName)
EmbeddedComponentModelgetParameterValue in interface EmbeddedComponentModelpublic List<String> getMixinClassNames()
EmbeddedComponentModelgetMixinClassNames in interface EmbeddedComponentModelpublic void addMixin(String mixinClassName, String... constraints)
MutableEmbeddedComponentModeladdMixin in interface MutableEmbeddedComponentModelpublic boolean getInheritInformalParameters()
EmbeddedComponentModelgetInheritInformalParameters in interface EmbeddedComponentModelpublic void setPublishedParameters(List<String> parameterNames)
MutableEmbeddedComponentModelsetPublishedParameters in interface MutableEmbeddedComponentModelparameterNames - list of namesComponent.publishParameters()public List<String> getPublishedParameters()
EmbeddedComponentModelgetPublishedParameters in interface EmbeddedComponentModelComponent.publishParameters()public String[] getConstraintsForMixin(String mixinClassName)
getConstraintsForMixin in interface EmbeddedComponentModel5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.