public interface CodeGeneratorClass
| Modifier and Type | Method and Description |
|---|---|
org.netbeans.modules.schema2beansdev.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.
|
void |
dumpBeanTree(Writer out,
String indent,
String indentBy)
Print out the bean graph.
|
void |
generate(OutputStream out,
MetaDD mdd)
Generate the java code in the out stream, using the optional
metaDD bean graph.
|
void |
generate(String filename,
MetaDD mdd)
Generate the java code in the out stream, using the optional
metaDD bean graph.
|
void |
generateDelegator(OutputStream out,
MetaDD mdd,
String delegatorClassName,
String delegatorPackageName) |
Collection |
getGeneratedMethods() |
List |
getPropertyList() |
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.
|
void |
setInvalidPropertyNames(Map invalidNames)
The generator should put in an entry for every name that is
invalid to use as a property name.
|
void |
setPackageName(String n) |
void |
setPrefixGuesser(PrefixGuesser guesser) |
void |
setRootBeanElement(org.netbeans.modules.schema2beansdev.BeanBuilder.BeanElement element) |
org.netbeans.modules.schema2beansdev.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)
List getPropertyList()
void setPackageName(String n)
void setIndent(String indent)
void generate(String filename, MetaDD mdd) throws IOException
IOExceptionvoid generate(OutputStream out, MetaDD mdd) throws IOException
IOExceptionvoid generateDelegator(OutputStream out, MetaDD mdd, String delegatorClassName, String delegatorPackageName) throws IOException
IOExceptionvoid setInvalidPropertyNames(Map invalidNames)
invalidNames - is a
Mapvoid setRootBeanElement(org.netbeans.modules.schema2beansdev.BeanBuilder.BeanElement element)
void setDefaultNamespace(String ns)
Collection getGeneratedMethods()
void dumpBeanTree(Writer out, String indent, String indentBy) throws IOException
IOExceptionvoid setPrefixGuesser(PrefixGuesser guesser)
Copyright © 2017. All Rights Reserved.