org.apache.axis2.databinding.schema.writer
Interface BeanWriter

All Known Implementing Classes:
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
 void init(CompilerOptions options)
          Init the write with compiler options
 void init(java.io.File rootDir)
          Initialize this writer
 java.lang.String write(org.apache.ws.commons.schema.XmlSchemaComplexType complexType, java.util.Map typeMap, BeanWriterMetaInfoHolder metainf)
          Write a complex type
 java.lang.String write(org.apache.ws.commons.schema.XmlSchemaElement element, java.util.Map typeMap, BeanWriterMetaInfoHolder metainf)
          Write a element
 java.lang.String write(org.apache.ws.commons.schema.XmlSchemaSimpleType simpleType, java.util.Map typeMap, BeanWriterMetaInfoHolder metainf)
          Write a simple type
 

Method Detail

init

public void init(java.io.File rootDir)
          throws java.io.IOException
Initialize this writer

Parameters:
rootDir - - The directory to be written into
Throws:
java.io.IOException

init

public void init(CompilerOptions options)
          throws java.io.IOException
Init the write with compiler options

Parameters:
options -
Throws:
java.io.IOException

write

public java.lang.String write(org.apache.ws.commons.schema.XmlSchemaComplexType complexType,
                              java.util.Map typeMap,
                              BeanWriterMetaInfoHolder metainf)
                       throws SchemaCompilationException
Write a complex type

Parameters:
complexType -
typeMap -
metainf -
Returns:
Throws:
SchemaCompilationException

write

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

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

write

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

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