1 package org.jicengine.builder; 2 import java.util.*; 3 4 import org.jicengine.element.SimpleType; 5 import org.jicengine.element.Type; 6 import org.jicengine.element.impl.*; 7 19 20 public class DefaultJiceTypes { 21 22 private static Map types = new HashMap(); 23 static { 24 types.put("array", ArrayElementCompiler.class); 25 types.put("list", ListElementCompiler.class); 26 types.put("collection", CollectionElementCompiler.class); 27 types.put("map", MapCompiler.class); 28 29 types.put("bean", BeanElementCompiler.class); 30 types.put("container", ContainerElementCompiler.class); 31 types.put("switch", SwitchCompiler.class); 32 types.put("factory", FactoryElementCompiler.class); 33 types.put("constant-of", ConstantOfElementCompiler.class); 34 types.put("cdata-converter", CdataConverterElementCompiler.class); 35 36 types.put("cdata-conversion", CdataConverterElementCompiler.class); 38 } 39 40 private static Type defaultType = new SimpleType("bean",new String [0]); 41 42 public static Type getDefaultType() 43 { 44 return defaultType; 45 } 46 47 public static TypeManager getTypeManager() 48 { 49 return new TypeManagerImpl(Collections.unmodifiableMap(types)); 50 } 51 } 52 | Popular Tags |