org.hippoecm.hst.core.parameters
Annotation Type Parameter


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Parameter

Annotation indicating that a getter method returns the value of an HST parameter.

See Also:
ParametersInfo}

Required Element Summary
 String name
           
 
Optional Element Summary
 Class<? extends PropertyEditor> customEditor
          This is still experimental.
 String defaultValue
           
 String description
           
 String displayName
           
 boolean required
           
 

Element Detail

name

public abstract String name
Returns:
the name of the parameter used, also see HstComponentConfiguration.getParameter(String) . This element is mandatory.

required

public abstract boolean required
Returns:
true if this is a required parameter for the HstComponent to work
Default:
false

defaultValue

public abstract String defaultValue
Returns:
the default value of this parameter when it is not present in the backing HstComponentConfiguration.getParameters(). If there is no defaultValue defined, it is an empty String ""
Default:
""

displayName

public abstract String displayName
Returns:
the displayName of this parameter. This can be the 'pretty' name for name(). If missing, implementations can do a fallback to name()
Default:
""

description

public abstract String description
Returns:
the description for this Parameter
Default:
""

customEditor

public abstract Class<? extends PropertyEditor> customEditor
This is still experimental.

Returns:
a PropertyEditor
Default:
org.hippoecm.hst.core.parameters.EmptyPropertyEditor.class


Copyright © 2008-2012 Hippo. All Rights Reserved.