Changeset 4334
- Timestamp:
- 05/22/08 07:52:30 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/groovyforms/src/org/openmrs/module/groovyforms/metadata/model/GroovyForm.java
r4333 r4334 14 14 package org.openmrs.module.groovyforms.metadata.model; 15 15 16 import java.util.Date; 17 16 18 /** 17 19 * The model class representing a GroovyForm in the system. It is serialized to/from XML for persistence. … … 22 24 private String name; 23 25 private String description; 26 private Date dateCreated; 24 27 private double version; 25 28 private boolean published; 26 29 27 30 /** 28 * Construct a GroovyForm object. 29 * @param name the name of the form 30 * @param description the description of the form 31 * @param version the version of the form 32 * @param published whether or not it is published 31 * Construct a new groovyform 32 * @param name the name of the groovyform 33 * @param description the description 34 * @param dateCreated when it was created 35 * @param version the version 36 * @param published whether or not its published. 33 37 */ 34 public GroovyForm(String name, String description, double version, boolean published) {38 public GroovyForm(String name, String description, Date dateCreated, double version, boolean published) { 35 39 this.name = name; 36 40 this.description = description; 41 this.dateCreated = dateCreated; 37 42 this.version = version; 38 43 this.published = published; … … 76 81 77 82 /** 83 * Getter for property 'dateCreated'. 84 * 85 * @return Value for property 'dateCreated'. 86 */ 87 public Date getDateCreated() { 88 return dateCreated; 89 } 90 91 /** 92 * Setter for property 'dateCreated'. 93 * 94 * @param dateCreated Value to set for property 'dateCreated'. 95 */ 96 public void setDateCreated(Date dateCreated) { 97 this.dateCreated = dateCreated; 98 } 99 100 /** 78 101 * Getter for property 'version'. 79 102 * openmrs-modules/groovyforms/web/module/resources/groovyform.dtd
r4315 r4334 6 6 <name>MyForm</name> 7 7 <description>My First Form!!</description> 8 <date>Thu May 22 03:50:58 EDT 2008</date> 8 9 <version>1.0</version> 9 10 <published>true</published> … … 18 19 <name>MyForm</name> 19 20 <description>My First Form!!</description> 21 <date>Thu May 22 03:50:58 EDT 2008</date> 20 22 <version>1.0</version> 21 23 <published>true</published> … … 25 27 26 28 <!ELEMENT groovyforms (groovyform*)> <!-- optional --> 27 <!ELEMENT groovyform (name+,description+, version+,published+)> <!-- required -->29 <!ELEMENT groovyform (name+,description+,date+,version+,published+)> <!-- required --> 28 30 <!-- the children of the groovyform element --> 29 31 <!ELEMENT name (#PCDATA)> 30 32 <!ELEMENT description (#PCDATA)> 33 <!ELEMENT date (#PCDATA)> 31 34 <!ELEMENT version (#PCDATA)> 32 35 <!ELEMENT published (#PCDATA)>