public class SchemaTranscriber extends Object
Generates XML Schemas for Betwixt mappings.
The basic idea is that an object model for the schema will be created and Betwixt can be used to output this to xml. This should allow both SAX and text.
Modifier and Type | Field and Description |
---|---|
static String |
W3C_SCHEMA_INSTANCE_URI |
static String |
W3C_SCHEMA_URI |
Constructor and Description |
---|
SchemaTranscriber() |
Modifier and Type | Method and Description |
---|---|
BindingConfiguration |
createSchemaBindingConfiguration()
Gets a
BindingConfiguration that is suitable for mapping Schema . |
IntrospectionConfiguration |
createSchemaIntrospectionConfiguration()
Gets an
IntrospectionConfiguration that is suitable
for introspecting Schema . |
Schema |
generate(Class clazz)
Generates an XML Schema model for the given class.
|
Schema |
generate(XMLBeanInfo xmlBeanInfo)
Generates an XML Schema model from the given XMLBeanInfo
|
TranscriptionConfiguration |
getConfiguration()
Gets the configuration for the XMLBeanInfo to XML schema transcription.
|
XMLIntrospector |
getXMLIntrospector()
Gets the XMLIntrospector used to create XMLInfoBean's.
|
void |
setConfiguration(TranscriptionConfiguration configuration)
Sets the configuration for the XMLBeanInfo to XML schema transcription.
|
void |
setXMLIntrospector(XMLIntrospector introspector)
Sets the XMLIntrospector used to create XMLInfoBeans.
|
public static final String W3C_SCHEMA_URI
public static final String W3C_SCHEMA_INSTANCE_URI
public TranscriptionConfiguration getConfiguration()
public void setConfiguration(TranscriptionConfiguration configuration)
configuration
- TranscriptionConfiguration, not nullpublic XMLIntrospector getXMLIntrospector()
public void setXMLIntrospector(XMLIntrospector introspector)
Sets the XMLIntrospector used to create XMLInfoBeans.
Note: certain properties will be reconfigured so that the introspection will produce correct results.introspector
- XMLIntrospector used to create XMLInfoBean's used to generate schema, not nullpublic Schema generate(Class clazz) throws IntrospectionException
clazz
- not nullIntrospectionException
public Schema generate(XMLBeanInfo xmlBeanInfo) throws IntrospectionException
xmlBeanInfo
- not nullIntrospectionException
public IntrospectionConfiguration createSchemaIntrospectionConfiguration()
Gets an IntrospectionConfiguration
that is suitable
for introspecting Schema
.
Note: A new instance is created each time this method is called. It can therefore be safely be modified.
public BindingConfiguration createSchemaBindingConfiguration()
Gets a BindingConfiguration
that is suitable for mapping Schema
.
Note: A new instance is created each time this method is called. It can therefore be safely be modified.
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.