org.apache.axis2.schema
Class SchemaCompiler

java.lang.Object
  extended byorg.apache.axis2.schema.SchemaCompiler

public class SchemaCompiler
extends Object

Schema compiler for ADB. Based on WS-Commons schema object model.


Field Summary
static String ANY_ELEMENT_FIELD_NAME
           
static String DEFAULT_ATTRIB_ARRAY_CLASS_NAME
           
static String DEFAULT_ATTRIB_CLASS_NAME
           
static String DEFAULT_CLASS_ARRAY_NAME
           
static String DEFAULT_CLASS_NAME
           
static String EXTRA_ATTRIBUTE_FIELD_NAME
           
 
Constructor Summary
SchemaCompiler(CompilerOptions options)
          Constructor - Accepts a options bean
 
Method Summary
 void compile(List schemalist)
          Compile a list of schemas This actually calls the compile (XmlSchema s) method repeatedly
 void compile(org.apache.ws.commons.schema.XmlSchema schema)
          Compile (rather codegen) a single schema element
 Properties getCompilerProperties()
           
 HashMap getProcessedElementMap()
           
 Map getProcessedModelMap()
           
 void processAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att, BeanWriterMetaInfoHolder metainf)
          Process the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY_ELEMENT_FIELD_NAME

public static final String ANY_ELEMENT_FIELD_NAME
See Also:
Constant Field Values

EXTRA_ATTRIBUTE_FIELD_NAME

public static final String EXTRA_ATTRIBUTE_FIELD_NAME
See Also:
Constant Field Values

DEFAULT_CLASS_NAME

public static final String DEFAULT_CLASS_NAME

DEFAULT_CLASS_ARRAY_NAME

public static final String DEFAULT_CLASS_ARRAY_NAME
See Also:
Constant Field Values

DEFAULT_ATTRIB_CLASS_NAME

public static final String DEFAULT_ATTRIB_CLASS_NAME

DEFAULT_ATTRIB_ARRAY_CLASS_NAME

public static final String DEFAULT_ATTRIB_ARRAY_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

SchemaCompiler

public SchemaCompiler(CompilerOptions options)
               throws SchemaCompilationException
Constructor - Accepts a options bean

Parameters:
options -
Method Detail

getProcessedElementMap

public HashMap getProcessedElementMap()
Returns:
the processes element map includes the Qname of the element as the key and a String representing the fully qualified class name

getProcessedModelMap

public Map getProcessedModelMap()
Returns:
a map of Qname vs models. A model can be anything, ranging from a DOM document to a stream. This is taken from the writer and the schema compiler has no control over it

compile

public void compile(List schemalist)
             throws SchemaCompilationException
Compile a list of schemas This actually calls the compile (XmlSchema s) method repeatedly

Parameters:
schemalist -
Throws:
SchemaCompilationException
See Also:
compile(org.apache.ws.commons.schema.XmlSchema)

compile

public void compile(org.apache.ws.commons.schema.XmlSchema schema)
             throws SchemaCompilationException
Compile (rather codegen) a single schema element

Parameters:
schema -
Throws:
SchemaCompilationException

getCompilerProperties

public Properties getCompilerProperties()
Returns:
the property map of the schemacompiler. In this case it would be the property map loaded from the configuration file

processAttribute

public void processAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att,
                             BeanWriterMetaInfoHolder metainf)
Process the attribute

Parameters:
att -
metainf -