in impl/src/main/java/org/apache/tuscany/sdo/util/metadata/impl/MetadataFactoryImpl.java [261:365]
protected void createXSDMetaData(ModelFactoryImpl theModelPackageImpl)
{
super.initXSD();
Property property = null;
property = createGlobalProperty
("sdoMetaDataGroup",
this.getSDOMetaDataGroup(),
new String[]
{
"kind", "element",
"name", "sdoMetaDataGroup",
"namespace", "##targetNamespace"
});
addXSDMapping
(javaMetaDataType,
new String[]
{
"name", "JavaMetaData",
"kind", "empty"
});
addXSDMapping
((Property)javaMetaDataType.getProperties().get(JavaMetaDataImpl.FACTORY_INTERFACE),
new String[]
{
"kind", "attribute",
"name", "factoryInterface"
});
addXSDMapping
((Property)javaMetaDataType.getProperties().get(JavaMetaDataImpl.TYPE_INTERFACE),
new String[]
{
"kind", "attribute",
"name", "typeInterface"
});
addXSDMapping
(sdoMetaDataGroupType,
new String[]
{
"name", "SDOMetaDataGroup",
"kind", "elementOnly"
});
addXSDMapping
((Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.JAVA_META_DATA),
new String[]
{
"kind", "element",
"name", "javaMetaData"
});
addXSDMapping
((Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.XSD_META_DATA),
new String[]
{
"kind", "element",
"name", "xsdMetaData"
});
addXSDMapping
((Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.TYPE_META_DATA),
new String[]
{
"kind", "element",
"name", "typeMetaData"
});
addXSDMapping
(typeMetaDataType,
new String[]
{
"name", "TypeMetaData",
"kind", "empty"
});
addXSDMapping
((Property)typeMetaDataType.getProperties().get(TypeMetaDataImpl.LOCATION),
new String[]
{
"kind", "attribute",
"name", "location"
});
addXSDMapping
(xsdMetaDataType,
new String[]
{
"name", "XSDMetaData",
"kind", "empty"
});
addXSDMapping
((Property)xsdMetaDataType.getProperties().get(XSDMetaDataImpl.LOCATION),
new String[]
{
"kind", "attribute",
"name", "location"
});
}