org.rhq.plugins.jbossas5.adapter.api
Class AbstractPropertyMapAdapter
java.lang.Object
org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter
- All Implemented Interfaces:
- PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>
- Direct Known Subclasses:
- AbstractPropertyMapToCompositeValueAdapter, PropertyMapToGenericValueAdapter, PropertyMapToPropertiesValueAdapter, PropertyMapToTableValueAdapter
public abstract class AbstractPropertyMapAdapter
- extends Object
- implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>
A base class for PropertyMap <-> ???MetaValue adapters.
- Author:
- Mark Spritzler
|
Method Summary |
org.rhq.core.domain.configuration.PropertyMap |
convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap)
Given a MetaValue, create and return a corresponding Property with the specified PropertyDefinition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPropertyMapAdapter
public AbstractPropertyMapAdapter()
convertToProperty
public org.rhq.core.domain.configuration.PropertyMap convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap)
- Description copied from interface:
PropertyAdapter
- Given a
MetaValue, create and return a corresponding Property with the specified PropertyDefinition. If the MetaValue is a form of list or map, all descendant MetaValue's should be represented
as descendants of the returned Property. Generally this method can simply create an empty Property object and
then delegate the population of the guts of the object to PropertyAdapter.populatePropertyFromMetaValue(Property,
MetaValue, PropertyDefinition).
- Specified by:
convertToProperty in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>
- Parameters:
metaValue - the metaValue to be convertedpropDefMap - the definition of the property to be created and returned
- Returns:
- the Property representation of the given MetaValue
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.