vmm.core
Annotation Type VMMSave


@Retention(value=RUNTIME)
@Target(value={FIELD,TYPE})
public @interface VMMSave

The annotation "@VMMSave" can be added to a declaration of a property variable in Exhibit, View, Transform, or Declaration class to indicate that the value of the property is to be saved by SaveAndRestore when it outputs an object that belongs to the class to a file. Here, a "property" variable means an instance variable for which there exist getter and setter methods with the standard names ("getXxxx" and "setXxxx" the name of the vaiable is "xxxx"). (The alternative to doing this is to call SaveAndRestore.addProperty(Object, String, org.w3c.dom.Document, org.w3c.dom.Element) in an addExtraXML() method in the class. See Exhibit.addExtraXML(org.w3c.dom.Document, org.w3c.dom.Element).)

In addition, "@VMMSave" can be added to the declaration of a subclass of Decoration to indicate that all decorations of that type, when they have been added to a View or Exhibit, are to be saved automatically by SaveAndRestore when the View or Exhibit is saved.