Class AnnotatedObject

java.lang.Object
org.springframework.webflow.core.AnnotatedObject
All Implemented Interfaces:
Annotated
Direct Known Subclasses:
AnnotatedAction, Flow, FlowVariable, State, Transition, ViewVariable

public abstract class AnnotatedObject extends Object implements Annotated
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 Details

    • CAPTION_PROPERTY

      public static final String 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

      public static final String 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

      public String 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 interface Annotated
      Returns:
      the caption
    • getDescription

      public String getDescription()
      Description copied from interface: Annotated
      Returns a longer, more detailed description of this object.
      Specified by:
      getDescription in interface Annotated
      Returns:
      the description
    • getAttributes

      public MutableAttributeMap<Object> 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 interface Annotated
      Returns:
      the attribute map
    • setCaption

      public void setCaption(String caption)
      Sets the short description (suitable for display in a tooltip).
      Parameters:
      caption - the caption
    • setDescription

      public void setDescription(String description)
      Sets the long description.
      Parameters:
      description - the long description