| org.netbeans.modules.schema2beansdev.CodeGeneratorClass
All known Subclasses: org.netbeans.modules.schema2beansdev.BeanClass, org.netbeans.modules.schema2beansdev.JavaBeanClass,
CodeGeneratorClass | public interface CodeGeneratorClass (Code) | | |
Method Summary | |
AbstractCodeGeneratorClass.Property | addProperty(String name, String dtdName, String namespace, GraphNode node, GraphLink l, String classType, int nestedLevel, int eltInstance, int groupInstance, int type, boolean ored, AttrProp[] propAttributes, String constName, String defaultValue, boolean directChild, List extraData, boolean isUnion) This method is called by the BeanBuilder to register a new property
on this bean class. | public void | dumpBeanTree(java.io.Writer out, String indent, String indentBy) Print out the bean graph. | void | generate(String filename, MetaDD mdd) Generate the java code in the out stream, using the optional
metaDD bean graph. | void | generate(OutputStream out, MetaDD mdd) Generate the java code in the out stream, using the optional
metaDD bean graph. | public void | generateDelegator(OutputStream out, MetaDD mdd, String delegatorClassName, String delegatorPackageName) | public Collection | getGeneratedMethods() | List | getPropertyList() | public void | setDefaultNamespace(String ns) Set the namespace that will be used by default in the documents. | void | setIndent(String indent) The string that is used for indentation. | public void | setInvalidPropertyNames(Map invalidNames) The generator should put in an entry for every name that is
invalid to use as a property name.
Parameters: invalidNames - is aMap where they key is the invalid name andthe value (BeanElement) is most likely null.For instance, anything that inherits from java.lang.Object willnot be able to generate a getClass method, so the propertynamed "Class" is invalid.Typically, the invalid method names are due to a parent classalready having a method of that name with the same parameters(overloading is okay though). | void | setPackageName(String n) | public void | setPrefixGuesser(PrefixGuesser guesser) | public void | setRootBeanElement(BeanBuilder.BeanElement element) |
addProperty | AbstractCodeGeneratorClass.Property addProperty(String name, String dtdName, String namespace, GraphNode node, GraphLink l, String classType, int nestedLevel, int eltInstance, int groupInstance, int type, boolean ored, AttrProp[] propAttributes, String constName, String defaultValue, boolean directChild, List extraData, boolean isUnion)(Code) | | This method is called by the BeanBuilder to register a new property
on this bean class.
|
generate | void generate(String filename, MetaDD mdd) throws IOException(Code) | | Generate the java code in the out stream, using the optional
metaDD bean graph.
|
setDefaultNamespace | public void setDefaultNamespace(String ns)(Code) | | Set the namespace that will be used by default in the documents.
|
setIndent | void setIndent(String indent)(Code) | | The string that is used for indentation.
|
setInvalidPropertyNames | public void setInvalidPropertyNames(Map invalidNames)(Code) | | The generator should put in an entry for every name that is
invalid to use as a property name.
Parameters: invalidNames - is aMap where they key is the invalid name andthe value (BeanElement) is most likely null.For instance, anything that inherits from java.lang.Object willnot be able to generate a getClass method, so the propertynamed "Class" is invalid.Typically, the invalid method names are due to a parent classalready having a method of that name with the same parameters(overloading is okay though). A property X is invalid if aparent class already has a getX(); and if X mightever be an array, then also getX(int) or sizeX(). |
|
|