KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > jdnc > markup > VocabularyUnitTest


1 /*
2  * $Id: VocabularyUnitTest.java,v 1.1 2004/07/31 00:26:12 davidson1 Exp $
3  *
4  * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5  * Santa Clara, California 95054, U.S.A. All rights reserved.
6  */

7
8 package org.jdesktop.jdnc.markup;
9
10 import java.util.List JavaDoc;
11
12 import junit.framework.Test;
13 import junit.framework.TestCase;
14 import junit.framework.TestSuite;
15
16 import org.jdesktop.jdnc.markup.ElementTypes;
17 import net.openmarkup.ElementType;
18
19 public class VocabularyUnitTest extends TestCase {
20
21     public VocabularyUnitTest() {
22     super("Vocabulary Unit Test");
23     }
24
25     // Dummmy test
26
public void testDummy() {
27     }
28
29     public static void main(String JavaDoc[] args) {
30         listVocabulary(ElementTypes.get().family());
31     }
32
33     private static void listVocabulary(List JavaDoc types) {
34         System.out.println("**** BEGIN VOCABULARY ****");
35         for (int i = 0; i < types.size(); i++) {
36             ElementType elemType = (ElementType) types.get(i);
37             System.out.println(elemType.getFullName());
38             System.out.println("\timplemented by: " + elemType.getImplementationClass());
39             System.out.println("\trealized as: " + elemType.getObjectClassName());
40         }
41         System.out.println("**** END VOCABULARY ****");
42     }
43 }
44
Popular Tags