1 19 20 package org.netbeans.modules.schema2beansdev; 21 22 import java.io.*; 23 import java.util.*; 24 25 import org.netbeans.modules.schema2beans.*; 26 import org.netbeans.modules.schema2beansdev.metadd.*; 27 28 public interface CodeGeneratorClass { 29 33 AbstractCodeGeneratorClass.Property addProperty(String name, 34 String dtdName, String namespace, 35 GraphNode node, GraphLink l, String classType, int nestedLevel, 36 int eltInstance, int groupInstance, 37 int type, boolean ored, AttrProp[] propAttributes, 38 String constName, String defaultValue, 39 boolean directChild, List extraData, boolean isUnion); 40 List getPropertyList(); 41 42 void setPackageName(String n); 43 44 47 void setIndent(String indent); 48 49 53 void generate(String filename, MetaDD mdd) throws IOException; 54 55 59 void generate(OutputStream out, MetaDD mdd) throws IOException; 60 61 public void generateDelegator(OutputStream out, MetaDD mdd, 62 String delegatorClassName, 63 String delegatorPackageName) throws IOException; 64 65 81 public void setInvalidPropertyNames(Map invalidNames); 82 83 public void setRootBeanElement(BeanBuilder.BeanElement element); 84 85 88 public void setDefaultNamespace(String ns); 89 90 public Collection getGeneratedMethods(); 92 95 public void dumpBeanTree(java.io.Writer out, String indent, String indentBy) throws java.io.IOException ; 96 97 public void setPrefixGuesser(PrefixGuesser guesser); 98 } 99 | Popular Tags |