public class SchemaCompiler extends Object
Modifier and Type | Field and Description |
---|---|
static 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 String |
EXTRA_ATTRIBUTE_FIELD_NAME |
static String |
USE_NONE |
static String |
USE_OPTIONAL |
static String |
USE_REQUIRED |
Constructor and Description |
---|
SchemaCompiler(CompilerOptions options)
Constructor - Accepts a options bean
|
Modifier and Type | Method and Description |
---|---|
void |
compile(List<org.apache.ws.commons.schema.XmlSchema> 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<QName,String> |
getProcessedElementMap() |
Map |
getProcessedModelMap() |
static boolean |
isSOAP_ENC(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.
|
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 String ANY_ELEMENT_FIELD_NAME
public static final String EXTRA_ATTRIBUTE_FIELD_NAME
public static final String USE_OPTIONAL
public static final String USE_REQUIRED
public static final String USE_NONE
public SchemaCompiler(CompilerOptions options) throws SchemaCompilationException
options
- SchemaCompilationException
public HashMap<QName,String> getProcessedElementMap()
public Map getProcessedModelMap()
public void compile(List<org.apache.ws.commons.schema.XmlSchema> 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 Properties getCompilerProperties()
public static boolean isSOAP_ENC(String s)
s
- a string representing the URI to checks
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
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.