org.apache.axis2.schema.writer
Interface BeanWriter

All Known Implementing Classes:
CStructWriter, JavaBeanWriter

public interface BeanWriter

The bean writer interface. The schema compiler expects one of these to be presented to it and calls the appropriate methods


Method Summary
 java.lang.String getDefaultAttribArrayClassName()
           
 java.lang.String getDefaultAttribClassName()
           
 java.lang.String getDefaultClassArrayName()
           
 java.lang.String getDefaultClassName()
           
 java.lang.String getExtensionMapperPackageName()
          Find whether the mapper class name is present
 java.util.Map getModelMap()
          Gets a map of models.
 void init(CompilerOptions options)
          Initializes the writer with compiler options.
 java.lang.String makeFullyQualifiedClassName(QName qName)
          Make the fully qualified class name for an element or named type
 void registerExtensionMapperPackageName(java.lang.String mapperPackageName)
          Registers the mapper package name - this is relevant to languages that enforce packaging such as Java or C#.
 java.lang.String write(QName qname, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf, boolean isAbstract)
          Write a complex type
 java.lang.String write(org.apache.ws.commons.schema.XmlSchemaElement element, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf)
          Write a element
 java.lang.String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType, java.util.Map typeMap, java.util.Map groupTypeMap, BeanWriterMetaInfoHolder metainf)
          Write a simple type
 void writeBatch()
          Writes a wrapped class.
 void writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray)
          Write the extensions mapper component - this is relevant to only the OOP languages and a particular implementation may ignore this
 

Method Detail

init

void init(CompilerOptions options)
          throws SchemaCompilationException
Initializes the writer with compiler options.

Parameters:
options -
Throws:
java.io.IOException
SchemaCompilationException

writeBatch

void writeBatch()
                throws SchemaCompilationException
Writes a wrapped class. This will have effect only if the CompilerOptions wrapclassses returns true.

Throws:
SchemaCompilationException

getModelMap

java.util.Map getModelMap()
Gets a map of models. This is useful for tight integrations where the internal workings of the schema compiler may be exposed.


makeFullyQualifiedClassName

java.lang.String makeFullyQualifiedClassName(QName qName)
Make the fully qualified class name for an element or named type

Parameters:
qName - the qualified Name for this element or type in the schema
Returns:
the appropriate fully qualified class name to use in generated code

write

java.lang.String write(QName qname,
                       java.util.Map typeMap,
                       java.util.Map groupTypeMap,
                       BeanWriterMetaInfoHolder metainf,
                       boolean isAbstract)
                       throws SchemaCompilationException
Write a complex type

Parameters:
complexType -
typeMap -
metainf -
fullyQualifiedClassName - the name returned by makeFullyQualifiedClassName() or null if it wasn't called
Returns:
Returns String.
Throws:
SchemaCompilationException

write

java.lang.String write(org.apache.ws.commons.schema.XmlSchemaElement element,
                       java.util.Map typeMap,
                       java.util.Map groupTypeMap,
                       BeanWriterMetaInfoHolder metainf)
                       throws SchemaCompilationException
Write a element

Parameters:
element -
typeMap -
metainf -
Returns:
Returns String.
Throws:
SchemaCompilationException

write

java.lang.String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType,
                       java.util.Map typeMap,
                       java.util.Map groupTypeMap,
                       BeanWriterMetaInfoHolder metainf)
                       throws SchemaCompilationException
Write a simple type

Parameters:
simpleType -
typeMap -
metainf -
Returns:
Returns String.
Throws:
SchemaCompilationException

getExtensionMapperPackageName

java.lang.String getExtensionMapperPackageName()
Find whether the mapper class name is present

Parameters:
mapperPackageName -

registerExtensionMapperPackageName

void registerExtensionMapperPackageName(java.lang.String mapperPackageName)
Registers the mapper package name - this is relevant to languages that enforce packaging such as Java or C#. May be ignored in other languages

Parameters:
mapperPackageName -

writeExtensionMapper

void writeExtensionMapper(BeanWriterMetaInfoHolder[] metainfArray)
                          throws SchemaCompilationException
Write the extensions mapper component - this is relevant to only the OOP languages and a particular implementation may ignore this

Parameters:
metainfArray -
namespaceToUse -
Throws:
SchemaCompilationException

getDefaultClassName

java.lang.String getDefaultClassName()

getDefaultClassArrayName

java.lang.String getDefaultClassArrayName()

getDefaultAttribClassName

java.lang.String getDefaultAttribClassName()

getDefaultAttribArrayClassName

java.lang.String getDefaultAttribArrayClassName()


Copyright © 2007 Apache Web Services Project. All Rights Reserved.