Package org.apache.axis2.schema
Class SchemaCompiler
java.lang.Object
org.apache.axis2.schema.SchemaCompiler
Schema compiler for ADB. Based on WS-Commons schema object model.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchemaCompiler(CompilerOptions options) Constructor - Accepts a options bean -
Method Summary
Modifier and TypeMethodDescriptionvoidCompile a list of schemas This actually calls the compile (XmlSchema s) method repeatedlyvoidcompile(org.apache.ws.commons.schema.XmlSchema schema) Compile (rather codegen) a single schema elementstatic booleanisSOAP_ENC(String s) Returns true if SOAP_ENC Namespace.voidprocessAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att, BeanWriterMetaInfoHolder metainf, org.apache.ws.commons.schema.XmlSchema parentSchema) Process the attributevoidprocessSimpleExtensionBaseType(QName extBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) Process Simple Extension Base Type.voidprocessSimpleRestrictionBaseType(QName qName, QName resBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) Process Simple Restriction Base Type.
-
Field Details
-
COMPONENT_TYPE
public static final int COMPONENT_TYPE- See Also:
-
COMPONENT_ELEMENT
public static final int COMPONENT_ELEMENT- See Also:
-
COMPONENT_ATTRIBUTE
public static final int COMPONENT_ATTRIBUTE- See Also:
-
COMPONENT_ATTRIBUTE_GROUP
public static final int COMPONENT_ATTRIBUTE_GROUP- See Also:
-
COMPONENT_GROUP
public static final int COMPONENT_GROUP- See Also:
-
ANY_ELEMENT_FIELD_NAME
- See Also:
-
EXTRA_ATTRIBUTE_FIELD_NAME
- See Also:
-
USE_OPTIONAL
- See Also:
-
USE_REQUIRED
- See Also:
-
USE_NONE
- See Also:
-
-
Constructor Details
-
SchemaCompiler
Constructor - Accepts a options bean- Parameters:
options-- Throws:
SchemaCompilationException
-
-
Method Details
-
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
- 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<org.apache.ws.commons.schema.XmlSchema> schemalist) throws SchemaCompilationException Compile a list of schemas This actually calls the compile (XmlSchema s) method repeatedly- Parameters:
schemalist-- Throws:
SchemaCompilationException- See Also:
-
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
- Returns:
- the property map of the schemacompiler. In this case it would be the property map loaded from the configuration file
-
isSOAP_ENC
Returns true if SOAP_ENC Namespace.- Parameters:
s- a string representing the URI to check- Returns:
- true if
smatches a SOAP ENCODING namespace URI, false otherwise
-
processSimpleExtensionBaseType
public void processSimpleExtensionBaseType(QName extBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException Process Simple Extension Base Type.- Parameters:
extBaseType-metaInfHolder-- Throws:
SchemaCompilationException
-
processSimpleRestrictionBaseType
public void processSimpleRestrictionBaseType(QName qName, QName resBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException Process Simple Restriction Base Type.- Parameters:
resBaseType-metaInfHolder-- Throws:
SchemaCompilationException
-
processAttribute
public void processAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att, BeanWriterMetaInfoHolder metainf, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException Process the attribute- Parameters:
att-metainf-- Throws:
SchemaCompilationException
-
getLoadedSchemaMap
-