Apache CXF API

org.apache.cxf.sdo.tools
Class SDODatabinding

java.lang.Object
  extended by org.apache.tuscany.sdo.generate.JavaGenerator
      extended by org.apache.tuscany.sdo.generate.XSD2JavaGenerator
          extended by org.apache.cxf.sdo.tools.SDODatabinding
All Implemented Interfaces:
DataBindingProfile

public class SDODatabinding
extends org.apache.tuscany.sdo.generate.XSD2JavaGenerator
implements DataBindingProfile


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tuscany.sdo.generate.XSD2JavaGenerator
org.apache.tuscany.sdo.generate.XSD2JavaGenerator.GeneratedPackage, org.apache.tuscany.sdo.generate.XSD2JavaGenerator.GeneratedPackages
 
Nested classes/interfaces inherited from class org.apache.tuscany.sdo.generate.JavaGenerator
org.apache.tuscany.sdo.generate.JavaGenerator.PackageInfo
 
Field Summary
 
Fields inherited from class org.apache.tuscany.sdo.generate.XSD2JavaGenerator
allNamespaces, generateBuiltIn, generatedPackages, namespaceInfo, schemaNamespace
 
Fields inherited from class org.apache.tuscany.sdo.generate.JavaGenerator
genOptions, inputIndex, javaPackage, OPTION_ARRAY_ACCESSORS, OPTION_GENERATE_LOADER, OPTION_GENERATE_SWITCH, OPTION_INTERFACE_DO, OPTION_NO_CONTAINMENT, OPTION_NO_GENERATE, OPTION_NO_INTERFACES, OPTION_NO_NOTIFICATION, OPTION_NO_UNSETTABLE, OPTION_SPARSE_PATTERN, OPTION_STORE_PATTERN, prefix, targetDirectory, xsdFileName
 
Constructor Summary
SDODatabinding()
           
 
Method Summary
 DefaultValueWriter createDefaultValueWriter(QName qName, boolean b)
           
 DefaultValueWriter createDefaultValueWriterForWrappedElement(QName qName, QName qName1)
           
 void generate(ToolContext context)
           
 String getType(QName qName, boolean element)
           
 String getWrappedElementType(QName wrapperElement, QName item)
           
 void initialize(ToolContext context)
           
 
Methods inherited from class org.apache.tuscany.sdo.generate.XSD2JavaGenerator
generateFromXMLSchema, generateFromXMLSchema, generateFromXMLSchema, getGeneratedPackageInfo, getSchemaNamespace, handleArgument, main, printUsage, run
 
Methods inherited from class org.apache.tuscany.sdo.generate.JavaGenerator
createGenPackage, createGenPackages, ecore2GenModel, extractBasePackageName, generateFromEPackage, generateFromGenModel, generateFromXMLSchema, generatePackages, generatePackages, printDiagnostic, processArguments, safeQualifiedName, shortName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDODatabinding

public SDODatabinding()
Method Detail

initialize

public void initialize(ToolContext context)
                throws ToolException
Specified by:
initialize in interface DataBindingProfile
Throws:
ToolException

generate

public void generate(ToolContext context)
              throws ToolException
Specified by:
generate in interface DataBindingProfile
Throws:
ToolException

getType

public String getType(QName qName,
                      boolean element)
Specified by:
getType in interface DataBindingProfile

getWrappedElementType

public String getWrappedElementType(QName wrapperElement,
                                    QName item)
Specified by:
getWrappedElementType in interface DataBindingProfile

createDefaultValueWriter

public DefaultValueWriter createDefaultValueWriter(QName qName,
                                                   boolean b)
Specified by:
createDefaultValueWriter in interface DataBindingProfile

createDefaultValueWriterForWrappedElement

public DefaultValueWriter createDefaultValueWriterForWrappedElement(QName qName,
                                                                    QName qName1)
Specified by:
createDefaultValueWriterForWrappedElement in interface DataBindingProfile

Apache CXF API

Apache CXF