|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.schema.SchemaTranscriber
public class SchemaTranscriber
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.
Field Summary | |
---|---|
static java.lang.String |
W3C_SCHEMA_INSTANCE_URI
|
static java.lang.String |
W3C_SCHEMA_URI
|
Constructor Summary | |
---|---|
SchemaTranscriber()
|
Method Summary | |
---|---|
BindingConfiguration |
createSchemaBindingConfiguration()
Gets a BindingConfiguration that is suitable for mapping Schema . |
IntrospectionConfiguration |
createSchemaIntrospectionConfiguration()
Gets an IntrospectionConfiguration that is suitable
for introspecting Schema . |
Schema |
generate(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String W3C_SCHEMA_URI
public static final java.lang.String W3C_SCHEMA_INSTANCE_URI
Constructor Detail |
---|
public SchemaTranscriber()
Method Detail |
---|
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(java.lang.Class clazz) throws java.beans.IntrospectionException
clazz
- not null
java.beans.IntrospectionException
public Schema generate(XMLBeanInfo xmlBeanInfo) throws java.beans.IntrospectionException
xmlBeanInfo
- not null
java.beans.IntrospectionException
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |