public class PropertyMapToPropertiesValueAdapter extends AbstractPropertyMapAdapter implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>
PropertyMap and a PropertiesMetaValue. A
PropertiesMetaValue extends java.util.Properties. Its associated PropertiesMetaType may or may not
define member property names; since the RHQ Configuration system assumes a PropertyDefinitionMap either defines none
of its member properties (i.e. an "open map") or defines all of them, we just ignore the PropertiesMetaType and
always map to an open map.| Constructor and Description |
|---|
PropertyMapToPropertiesValueAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.metatype.api.values.MetaValue |
convertToMetaValue(org.rhq.core.domain.configuration.PropertyMap propMap,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.jboss.metatype.api.types.MetaType metaType)
Given a
Property and its PropertyDefinition, create and return a corresponding MetaValue
with the specified 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. |
void |
populatePropertyFromMetaValue(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 the
Property so it corresponds to the MetaValue. |
convertToPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToPropertypublic 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>propMap - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropDefMap - the property's definitionpublic org.jboss.metatype.api.values.MetaValue convertToMetaValue(org.rhq.core.domain.configuration.PropertyMap propMap,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
org.jboss.metatype.api.types.MetaType metaType)
PropertyAdapterProperty and its PropertyDefinition, create and return a corresponding MetaValue
with the specified MetaType. If the Property is a list or a map, all descendant Property's should be
represented as descendants of the returned MetaValue. Generally this method can simply create an empty MetaValue
object and then delegate the population of the guts of the object to PropertyAdapter.populateMetaValueFromProperty(Property,
MetaValue, PropertyDefinition).convertToMetaValue in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>propMap - the property to be convertedpropDefMap - the property's definitionmetaType - the type of MetaValue that should be created and returnedpublic void populatePropertyFromMetaValue(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 the
Property so it corresponds to the MetaValue. If the MetaValue is a from of list or map, all descendant
MetaValue's should be added as descendants of the Property.populatePropertyFromMetaValue in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>propMap - the property to be populated; should not be nullmetaValue - the MetaValue to be copiedpropDefMap - the property's definitionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.