public interface PropertyAdapter<P extends org.rhq.core.domain.configuration.Property,D extends org.rhq.core.domain.configuration.definition.PropertyDefinition>
MetaValue and a specific type of Property.| Modifier and Type | Method and Description |
|---|---|
org.jboss.metatype.api.values.MetaValue |
convertToMetaValue(P property,
D propertyDefinition,
org.jboss.metatype.api.types.MetaType metaType)
Given a
Property and its PropertyDefinition, create and return a corresponding MetaValue
with the specified MetaType. |
P |
convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
D propertyDefinition)
Given a
MetaValue, create and return a corresponding Property with the specified PropertyDefinition. |
void |
populateMetaValueFromProperty(P property,
org.jboss.metatype.api.values.MetaValue metaValue,
D propertyDefinition)
Given a
Property and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. |
void |
populatePropertyFromMetaValue(P property,
org.jboss.metatype.api.values.MetaValue metaValue,
D propertyDefinition)
Given a
Property and its PropertyDefinition, as well as a MetaValue, populate the
Property so it corresponds to the MetaValue. |
void populateMetaValueFromProperty(P property, org.jboss.metatype.api.values.MetaValue metaValue, D propertyDefinition)
Property 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.property - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropertyDefinition - the property's definitionorg.jboss.metatype.api.values.MetaValue convertToMetaValue(P property, D propertyDefinition, org.jboss.metatype.api.types.MetaType metaType)
Property 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 populateMetaValueFromProperty(Property,
MetaValue, PropertyDefinition).property - the property to be convertedpropertyDefinition - the property's definitionmetaType - the type of MetaValue that should be created and returnedvoid populatePropertyFromMetaValue(P property, org.jboss.metatype.api.values.MetaValue metaValue, D propertyDefinition)
Property 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.property - the property to be populated; should not be nullmetaValue - the MetaValue to be copiedpropertyDefinition - the property's definitionP convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue, D propertyDefinition)
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 populatePropertyFromMetaValue(Property,
MetaValue, PropertyDefinition).metaValue - the metaValue to be convertedpropertyDefinition - the definition of the property to be created and returnedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.