Class BeansWrapper.MethodAppearanceDecision
java.lang.Object
freemarker.ext.beans.BeansWrapper.MethodAppearanceDecision
- Enclosing class:
BeansWrapper
Used for
MethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision)
to store the results; see there.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSee in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).booleanSee in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).booleanGetter pair ofsetReplaceExistingProperty(boolean).voidsetExposeAsProperty(PropertyDescriptor exposeAsProperty) See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).voidsetExposeMethodAs(String exposeAsMethod) See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).voidsetMethodShadowsProperty(boolean shadowEarlierProperty) See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).voidsetReplaceExistingProperty(boolean overrideExistingProperty) IfgetExposeAsProperty()is non-null, and aPropertyDescriptorwith the same property name was already added to the class introspection data, this decides if that will be replaced with thePropertyDescriptorreturned bygetExposeAsProperty().
-
Constructor Details
-
MethodAppearanceDecision
public MethodAppearanceDecision()
-
-
Method Details
-
getExposeAsProperty
See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision). -
setExposeAsProperty
See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision). Note that you may also want to callsetMethodShadowsProperty(false)when you call this. -
getReplaceExistingProperty
public boolean getReplaceExistingProperty()Getter pair ofsetReplaceExistingProperty(boolean).- Since:
- 2.3.28
-
setReplaceExistingProperty
public void setReplaceExistingProperty(boolean overrideExistingProperty) IfgetExposeAsProperty()is non-null, and aPropertyDescriptorwith the same property name was already added to the class introspection data, this decides if that will be replaced with thePropertyDescriptorreturned bygetExposeAsProperty(). The default isfalse, that is, the oldPropertyDescriptoris kept, and the new one is ignored. JavaBean properties discovered with the standard (non-MethodAppearanceFineTuner) mechanism are added before those created by theMethodAppearanceFineTuner, so with this you can decide if a real JavaBeans property can be replaced by the "fake" one created withsetExposeAsProperty(PropertyDescriptor).- Since:
- 2.3.28
-
getExposeMethodAs
See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision). -
setExposeMethodAs
See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision). -
getMethodShadowsProperty
public boolean getMethodShadowsProperty()See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision). -
setMethodShadowsProperty
public void setMethodShadowsProperty(boolean shadowEarlierProperty) See in the documentation ofMethodAppearanceFineTuner.process(BeansWrapper.MethodAppearanceDecisionInput, BeansWrapper.MethodAppearanceDecision).
-