Subversion Repositories SmartDukaan

Rev

Rev 49 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 51
Line 48... Line 48...
48
 
48
 
49
import org.apache.commons.lang.ArrayUtils;
49
import org.apache.commons.lang.ArrayUtils;
50
import org.apache.commons.lang.StringUtils;
50
import org.apache.commons.lang.StringUtils;
51
 
51
 
52
/**
52
/**
-
 
53
 * Command line utility that imports model properties defined in XML
-
 
54
 * 
53
 * MM - Meta-Model Tool
55
 * MM - Meta-Model Tool
-
 
56
 * 
-
 
57
 * It can be used to do following things
-
 
58
 * 
-
 
59
 * - Import
-
 
60
 * 	 - Datatype definitions
-
 
61
 * 	 - Feature definitions
-
 
62
 * 	 - Slide definitions
-
 
63
 * 	 - Categories
-
 
64
 * 
-
 
65
 * - Show
-
 
66
 * 	 - Datatype definitions
-
 
67
 * 	 - Feature definitions
-
 
68
 * 	 - Slide definitions
-
 
69
 * 	 - Categories
-
 
70
 * 
54
 * Imports and exports model definitions. Validates against meta model
71
 * - Show all definition objects that define a category 
-
 
72
 * 
55
 * 
73
 * 
56
 * @author naveen
74
 * @author naveen
57
 *
75
 *
58
 */
76
 */
59
public class MM {
77
public class MM {
Line 104... Line 122...
104
	 * 
122
	 * 
105
	 */
123
	 */
106
	private String dbFile;
124
	private String dbFile;
107
	
125
	
108
	/**
126
	/**
-
 
127
	 * Usage: MM [show|import|showcategory] [units|datatypedefinitions|featuredefinitions|slidedefinitions|categories] {Category ID}
-
 
128
	 * 
109
	 * @param args
129
	 * @param args
110
	 */
130
	 */
111
	public static void main(String[] args) throws Exception {
131
	public static void main(String[] args) throws Exception {
112
		String[] definitionSetNames = new String[] {"units", 
132
		String[] definitionSetNames = new String[] {"units", 
113
				"datatypedefinitions", "featuredefinitions", "slidedefinitions", 
133
				"datatypedefinitions", "featuredefinitions", "slidedefinitions",