1 16 package org.springframework.webflow.engine; 17 18 import org.springframework.webflow.core.collection.AttributeMap; 19 import org.springframework.webflow.core.collection.LocalAttributeMap; 20 import org.springframework.webflow.core.collection.MutableAttributeMap; 21 import org.springframework.webflow.definition.Annotated; 22 23 31 public abstract class AnnotatedObject implements Annotated { 32 33 37 public static final String CAPTION_PROPERTY = "caption"; 38 39 44 public static final String DESCRIPTION_PROPERTY = "description"; 45 46 50 private LocalAttributeMap attributes = new LocalAttributeMap(); 51 52 54 public String getCaption() { 55 return attributes.getString(CAPTION_PROPERTY); 56 } 57 58 public String getDescription() { 59 return attributes.getString(DESCRIPTION_PROPERTY); 60 } 61 62 public AttributeMap getAttributes() { 63 return attributes; 64 } 65 66 68 72 public void setCaption(String caption) { 73 attributes.put(CAPTION_PROPERTY, caption); 74 } 75 76 80 public void setDescription(String description) { 81 attributes.put(DESCRIPTION_PROPERTY, description); 82 } 83 84 88 public MutableAttributeMap getAttributeMap() { 89 return attributes; 90 } 91 } | Popular Tags |