public class PropertyMapToMapCompositeValueSupportAdapter extends AbstractPropertyMapToCompositeValueAdapter implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>
PropertyMap and a MapCompositeValueSupport. A MapCompositeValueSupport is a CompositeValue implementation that
contains items that are all of the same type; there is no predefined list of valid keys, so it maps nicely to an
"open" PropertyMap.| Constructor and Description |
|---|
PropertyMapToMapCompositeValueSupportAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.metatype.api.values.CompositeValue |
createCompositeValue(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.jboss.metatype.api.types.MetaType metaType) |
void |
populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyMap propMap,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap)
Given a
Property and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. |
protected void |
putValue(org.jboss.metatype.api.values.CompositeValue compositeValue,
String key,
org.jboss.metatype.api.values.MetaValue value) |
convertToMetaValue, populatePropertyFromMetaValueconvertToPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToMetaValue, convertToProperty, populatePropertyFromMetaValuepublic PropertyMapToMapCompositeValueSupportAdapter()
public void populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyMap propMap,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap)
PropertyAdapterProperty and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. If the Property is a list or a map, all descendant Property's should
be added as descendants of the MetaValue.populateMetaValueFromProperty in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>populateMetaValueFromProperty in class AbstractPropertyMapToCompositeValueAdapterpropMap - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropDefMap - the property's definitionprotected void putValue(org.jboss.metatype.api.values.CompositeValue compositeValue,
String key,
org.jboss.metatype.api.values.MetaValue value)
putValue in class AbstractPropertyMapToCompositeValueAdapterprotected org.jboss.metatype.api.values.CompositeValue createCompositeValue(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.jboss.metatype.api.types.MetaType metaType)
createCompositeValue in class AbstractPropertyMapToCompositeValueAdapterCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.