|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.schema.SchemaCompiler
public class SchemaCompiler
Schema compiler for ADB. Based on WS-Commons schema object model.
Field Summary | |
---|---|
static java.lang.String |
ANY_ELEMENT_FIELD_NAME
|
static int |
COMPONENT_ATTRIBUTE
|
static int |
COMPONENT_ATTRIBUTE_GROUP
|
static int |
COMPONENT_ELEMENT
|
static int |
COMPONENT_GROUP
|
static int |
COMPONENT_TYPE
|
static java.lang.String |
EXTRA_ATTRIBUTE_FIELD_NAME
|
static java.lang.String |
USE_NONE
|
static java.lang.String |
USE_OPTIONAL
|
static java.lang.String |
USE_REQUIRED
|
Constructor Summary | |
---|---|
SchemaCompiler(CompilerOptions options)
Constructor - Accepts a options bean |
Method Summary | |
---|---|
void |
compile(java.util.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 |
java.util.Properties |
getCompilerProperties()
|
java.util.HashMap |
getProcessedElementMap()
|
java.util.Map |
getProcessedModelMap()
|
static boolean |
isSOAP_ENC(java.lang.String s)
Returns true if SOAP_ENC Namespace. |
void |
processAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att,
BeanWriterMetaInfoHolder metainf,
org.apache.ws.commons.schema.XmlSchema parentSchema)
Process the attribute |
void |
processSimpleExtensionBaseType(QName extBaseType,
BeanWriterMetaInfoHolder metaInfHolder,
org.apache.ws.commons.schema.XmlSchema parentSchema)
Process Simple Extension Base Type. |
void |
processSimpleRestrictionBaseType(QName qName,
QName resBaseType,
BeanWriterMetaInfoHolder metaInfHolder,
org.apache.ws.commons.schema.XmlSchema parentSchema)
Process Simple Restriction Base Type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMPONENT_TYPE
public static final int COMPONENT_ELEMENT
public static final int COMPONENT_ATTRIBUTE
public static final int COMPONENT_ATTRIBUTE_GROUP
public static final int COMPONENT_GROUP
public static final java.lang.String ANY_ELEMENT_FIELD_NAME
public static final java.lang.String EXTRA_ATTRIBUTE_FIELD_NAME
public static final java.lang.String USE_OPTIONAL
public static final java.lang.String USE_REQUIRED
public static final java.lang.String USE_NONE
Constructor Detail |
---|
public SchemaCompiler(CompilerOptions options) throws SchemaCompilationException
options
-
SchemaCompilationException
Method Detail |
---|
public java.util.HashMap getProcessedElementMap()
public java.util.Map getProcessedModelMap()
public void compile(java.util.List schemalist) throws SchemaCompilationException
schemalist
-
SchemaCompilationException
compile(org.apache.ws.commons.schema.XmlSchema)
public void compile(org.apache.ws.commons.schema.XmlSchema schema) throws SchemaCompilationException
schema
-
SchemaCompilationException
public java.util.Properties getCompilerProperties()
public static boolean isSOAP_ENC(java.lang.String s)
s
- a string representing the URI to check
s
matches a SOAP ENCODING namespace URI,
false otherwisepublic void processSimpleExtensionBaseType(QName extBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException
extBaseType
- metaInfHolder
-
SchemaCompilationException
public void processSimpleRestrictionBaseType(QName qName, QName resBaseType, BeanWriterMetaInfoHolder metaInfHolder, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException
resBaseType
- metaInfHolder
-
SchemaCompilationException
public void processAttribute(org.apache.ws.commons.schema.XmlSchemaAttribute att, BeanWriterMetaInfoHolder metainf, org.apache.ws.commons.schema.XmlSchema parentSchema) throws SchemaCompilationException
att
- metainf
-
SchemaCompilationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |