wt.inf.template
Interface ContainerDefaultValuesDelegate

All Known Implementing Classes:
AbstractDefaultTemplateValues

public interface ContainerDefaultValuesDelegate



Supported API: false

Extendable: false


Method Summary
 WTContainerTemplateRef assignProfile(String profileName, WTContainerTemplateRef tmplRef)
          

Supported API: false
 WTContainer populateDefaultValues(WTContainerTemplateRef tmplRef)
          Creates a WTContainer corresponding to the default values profile associated with the template.
 WTContainer populateDefaultValues(WTContainerTemplateRef tmplRef, WTContainer container)
          Applies the default values profile to a passed in non-persisted template.
 

Method Detail

assignProfile

public WTContainerTemplateRef assignProfile(String profileName,
                                            WTContainerTemplateRef tmplRef)
                                     throws WTException


Supported API: false

Parameters:
profileName -
tmplRef -
Returns:
WTContainerTemplateRef
Throws:
WTException

populateDefaultValues

public WTContainer populateDefaultValues(WTContainerTemplateRef tmplRef)
                                  throws WTException
Creates a WTContainer corresponding to the default values profile associated with the template. The default behavior if no profile is is associated with the template is to call the no-arg static initializer for the container type.

Supported API: false

Parameters:
tmplRef -
Returns:
WTContainer
Throws:
WTException

populateDefaultValues

public WTContainer populateDefaultValues(WTContainerTemplateRef tmplRef,
                                         WTContainer container)
                                  throws WTException
Applies the default values profile to a passed in non-persisted template. If a field is non-null, the value will not be changed, even if the default values profile would have changed it. If the template has no profile, the WTContainer is returned unchanged

Supported API: false

Parameters:
tmplRef -
container -
Returns:
WTContainer
Throws:
WTException