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() |
getLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation
public String getComponentClassName()
EmbeddedComponentModel
Component
annotation is applied.
This value is only used when the componentType property is blank.getComponentClassName
in interface EmbeddedComponentModel
public void addParameter(String name, String value)
addParameter
in interface MutableEmbeddedComponentModel
public String getId()
EmbeddedComponentModel
getId
in interface EmbeddedComponentModel
public String getComponentType()
EmbeddedComponentModel
getComponentType
in interface EmbeddedComponentModel
public List<String> getParameterNames()
EmbeddedComponentModel
getParameterNames
in interface EmbeddedComponentModel
public String getParameterValue(String parameterName)
EmbeddedComponentModel
getParameterValue
in interface EmbeddedComponentModel
public List<String> getMixinClassNames()
EmbeddedComponentModel
getMixinClassNames
in interface EmbeddedComponentModel
public void addMixin(String mixinClassName, String... constraints)
MutableEmbeddedComponentModel
addMixin
in interface MutableEmbeddedComponentModel
public boolean getInheritInformalParameters()
EmbeddedComponentModel
getInheritInformalParameters
in interface EmbeddedComponentModel
public void setPublishedParameters(List<String> parameterNames)
MutableEmbeddedComponentModel
setPublishedParameters
in interface MutableEmbeddedComponentModel
parameterNames
- list of namesComponent.publishParameters()
public List<String> getPublishedParameters()
EmbeddedComponentModel
getPublishedParameters
in interface EmbeddedComponentModel
Component.publishParameters()
public String[] getConstraintsForMixin(String mixinClassName)
getConstraintsForMixin
in interface EmbeddedComponentModel
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.