Package org.springframework.webflow.core
Class AnnotatedObject
java.lang.Object
org.springframework.webflow.core.AnnotatedObject
- All Implemented Interfaces:
Annotated
- Direct Known Subclasses:
AnnotatedAction
,Flow
,FlowVariable
,State
,Transition
,ViewVariable
A base class for all objects in the web flow system that support annotation using arbitrary properties. Mainly used
to ensure consistent configuration of properties for all annotated objects.
- Author:
- Erwin Vervaet, Keith Donald
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a attribute map containing the attributes annotating this object.Returns a short summary of this object, suitable for display as an icon caption or tool tip.Returns a longer, more detailed description of this object.void
setCaption
(String caption) Sets the short description (suitable for display in a tooltip).void
setDescription
(String description) Sets the long description.
-
Field Details
-
CAPTION_PROPERTY
The caption property name ("caption"). A caption is also known as a "short description" and may be used in a GUI tooltip.- See Also:
-
DESCRIPTION_PROPERTY
The long description property name ("description"). A description provides additional, free-form detail about this object and might be shown in a GUI text area.- See Also:
-
-
Constructor Details
-
AnnotatedObject
public AnnotatedObject()
-
-
Method Details
-
getCaption
Description copied from interface:Annotated
Returns a short summary of this object, suitable for display as an icon caption or tool tip.- Specified by:
getCaption
in interfaceAnnotated
- Returns:
- the caption
-
getDescription
Description copied from interface:Annotated
Returns a longer, more detailed description of this object.- Specified by:
getDescription
in interfaceAnnotated
- Returns:
- the description
-
getAttributes
Description copied from interface:Annotated
Returns a attribute map containing the attributes annotating this object. These attributes provide descriptive characteristics or properties that may affect object behavior.- Specified by:
getAttributes
in interfaceAnnotated
- Returns:
- the attribute map
-
setCaption
Sets the short description (suitable for display in a tooltip).- Parameters:
caption
- the caption
-
setDescription
Sets the long description.- Parameters:
description
- the long description
-