|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.rhq.plugin.adapter.api.AbstractPropertyMapAdapter
org.teiid.rhq.plugin.adapter.impl.PropertyMapToTableValueAdapter
public class PropertyMapToTableValueAdapter
| Constructor Summary | |
|---|---|
PropertyMapToTableValueAdapter()
|
|
| Method Summary | |
|---|---|
org.jboss.metatype.api.values.MetaValue |
convertToMetaValue(org.rhq.core.domain.configuration.PropertyMap property,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition,
org.jboss.metatype.api.types.MetaType type)
Given a Property and its PropertyDefinition, create and return a corresponding MetaValue
with the specified MetaType. |
org.rhq.core.domain.configuration.PropertyMap |
convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
Given a MetaValue, create and return a corresponding Property with the specified PropertyDefinition. |
void |
populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyMap property,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
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 property,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
Given a Property and its PropertyDefinition, as well as a MetaValue, populate the
Property so it corresponds to the MetaValue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyMapToTableValueAdapter()
| Method Detail |
|---|
public org.rhq.core.domain.configuration.PropertyMap convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
PropertyAdapterMetaValue, 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).
convertToProperty in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>convertToProperty in class AbstractPropertyMapAdaptermetaValue - the metaValue to be convertedpropertyDefinition - the definition of the property to be created and returned
public void populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyMap property,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
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>property - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropertyDefinition - the property's definition
public org.jboss.metatype.api.values.MetaValue convertToMetaValue(org.rhq.core.domain.configuration.PropertyMap property,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition,
org.jboss.metatype.api.types.MetaType type)
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>property - the property to be convertedpropertyDefinition - the property's definitiontype - the type of MetaValue that should be created and returned
public void populatePropertyFromMetaValue(org.rhq.core.domain.configuration.PropertyMap property,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propertyDefinition)
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>property - the property to be populated; should not be nullmetaValue - the MetaValue to be copiedpropertyDefinition - the property's definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||