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

java.lang.Object
  extended by org.teiid.rhq.plugin.adapter.api.AbstractPropertyListAdapter
All Implemented Interfaces:
PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
Direct Known Subclasses:
PropertyListToCollectionValueAdapter

public abstract class AbstractPropertyListAdapter
extends java.lang.Object
implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>

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


Constructor Summary
AbstractPropertyListAdapter()
           
 
Method Summary
 org.rhq.core.domain.configuration.PropertyList convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue, org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList)
          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

AbstractPropertyListAdapter

public AbstractPropertyListAdapter()
Method Detail

convertToProperty

public org.rhq.core.domain.configuration.PropertyList convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
                                                                        org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList)
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.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
Parameters:
metaValue - the metaValue to be converted
propDefList - the definition of the property to be created and returned
Returns:
the Property representation of the given MetaValue


Copyright © 2011. All Rights Reserved.