vmm3d.core
Annotation Type VMMSave
-
@Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface VMMSaveThe 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 bySaveAndRestorewhen 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 callSaveAndRestore.addProperty(Object, String, org.w3c.dom.Document, org.w3c.dom.Element)in anaddExtraXML()method in the class. SeeExhibit.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.
DMelt 3.0 © DataMelt by jWork.ORG