public abstract class AbstractPropertySimpleAdapter extends Object implements PropertyAdapter<org.rhq.core.domain.configuration.PropertySimple,org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple>
PropertySimple <-> ???MetaValue adapters.| Constructor and Description |
|---|
AbstractPropertySimpleAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.configuration.PropertySimple |
convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple)
Given a
MetaValue, create and return a corresponding Property with the specified PropertyDefinition. |
void |
populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertySimple propSimple,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple)
Given a
Property and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. |
protected abstract void |
setInnerValue(String propSimpleValue,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToMetaValue, populatePropertyFromMetaValuepublic org.rhq.core.domain.configuration.PropertySimple convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple)
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.PropertySimple,org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple>metaValue - the metaValue to be convertedpropDefSimple - the definition of the property to be created and returnedpublic void populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertySimple propSimple,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple)
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.PropertySimple,org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple>propSimple - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropDefSimple - the property's definitionprotected abstract void setInnerValue(String propSimpleValue, org.jboss.metatype.api.values.MetaValue metaValue, org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propDefSimple)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.