org.teiid.rhq.plugin.adapter.api
Class AbstractPropertyMapAdapter

java.lang.Object
  extended by org.teiid.rhq.plugin.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 java.lang.Object
implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>

A base class for PropertyMap <-> ???MetaValue adapters.


Constructor Summary
AbstractPropertyMapAdapter()
           
 
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
 
Methods inherited from interface org.teiid.rhq.plugin.adapter.api.PropertyAdapter
convertToMetaValue, populateMetaValueFromProperty, populatePropertyFromMetaValue
 

Constructor Detail

AbstractPropertyMapAdapter

public AbstractPropertyMapAdapter()
Method Detail

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 converted
propDefMap - the definition of the property to be created and returned
Returns:
the Property representation of the given MetaValue


Copyright © 2011. All Rights Reserved.