public final class ConfigurationPointImpl extends AbstractExtensionPoint implements ConfigurationPoint
ConfigurationPoint interface; a
container for Contributions.| Constructor and Description |
|---|
ConfigurationPointImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContribution(Contribution c) |
boolean |
areElementsMappable()
Returns true if the elements contributed to this configuration point can be
retrieved as a Map. |
protected void |
extendDescription(ToStringBuilder builder)
Implemented in subclasses to provide details about subclass properties.
|
int |
getContributionCount()
Returns the number of contributions; it is expected that each top-level
Element in each Contribution will convert to one element
instance; the value returned is the total number of top-level elements in all contributed
Extensions. |
Schema |
getContributionsSchema()
Returns the Schema for contributions to the configuration point (which may be null if the
point does not define a schema for contributions).
|
java.util.List |
getElements()
Returns the contributed elements as an unmodifiable
List. |
java.util.Map |
getElementsAsMap()
Returns the contributed elements as an unmodifiable
Map. |
Occurances |
getExpectedCount() |
Schema |
getSchema() |
void |
setContributionsSchema(Schema schema) |
void |
setExpectedCount(Occurances occurances) |
void |
setShutdownCoordinator(ShutdownCoordinator coordinator) |
getErrorLog, getExtensionPointId, getLog, getModule, setExtensionPointId, setModule, setVisibility, toString, visibleToModulegetLocation, setLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorLog, getExtensionPointId, getLog, getModule, visibleToModulegetLocationpublic ConfigurationPointImpl()
protected void extendDescription(ToStringBuilder builder)
AbstractExtensionPointextendDescription in class AbstractExtensionPointpublic int getContributionCount()
Element in each Contribution will convert to one element
instance; the value returned is the total number of top-level elements in all contributed
Extensions.public void addContribution(Contribution c)
public Occurances getExpectedCount()
public void setExpectedCount(Occurances occurances)
public java.util.List getElements()
List. Internally, a proxy to the
real list is returned, such that the real list may not be constructed until actually needed.getElements in interface ConfigurationPointpublic boolean areElementsMappable()
ConfigurationPointretrieved as a Map. The contributions in the map are keyed on
an attribute as specified by the contributions schema. Thus, as a requirement, this
configuration point must have a defined schema, which in turn must support
keying of all valid instances.areElementsMappable in interface ConfigurationPointpublic java.util.Map getElementsAsMap()
Map. Internally, a proxy to the
real map is returned, such that the real map may not be constructed until actually needed.getElementsAsMap in interface ConfigurationPointpublic void setContributionsSchema(Schema schema)
public Schema getContributionsSchema()
ConfigurationPointgetContributionsSchema in interface ConfigurationPointpublic void setShutdownCoordinator(ShutdownCoordinator coordinator)