Search in sources :

Example 1 with Import

use of org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import in project mule by mulesoft.

the class SchemaBuilder method createMuleImport.

private Import createMuleImport() {
    Import muleSchemaImport = new Import();
    muleSchemaImport.setNamespace(CORE_NAMESPACE);
    muleSchemaImport.setSchemaLocation(MULE_SCHEMA_LOCATION);
    return muleSchemaImport;
}
Also used : Import(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)

Example 2 with Import

use of org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import in project mule by mulesoft.

the class SchemaBuilder method importXmlNamespace.

private SchemaBuilder importXmlNamespace() {
    Import xmlImport = new Import();
    xmlImport.setNamespace(XML_NAMESPACE);
    schema.getIncludeOrImportOrRedefine().add(xmlImport);
    return this;
}
Also used : Import(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)

Example 3 with Import

use of org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import in project mule by mulesoft.

the class SchemaBuilder method importTlsNamespace.

private SchemaBuilder importTlsNamespace() {
    Import tlsImport = new Import();
    tlsImport.setNamespace(MULE_TLS_NAMESPACE);
    tlsImport.setSchemaLocation(MULE_TLS_SCHEMA_LOCATION);
    schema.getIncludeOrImportOrRedefine().add(tlsImport);
    return this;
}
Also used : Import(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)

Example 4 with Import

use of org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import in project mule by mulesoft.

the class SchemaBuilder method createMuleEEImport.

private Import createMuleEEImport() {
    Import muleSchemaImport = new Import();
    muleSchemaImport.setNamespace(EE_NAMESPACE);
    muleSchemaImport.setSchemaLocation(EE_SCHEMA_LOCATION);
    return muleSchemaImport;
}
Also used : Import(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)

Example 5 with Import

use of org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import in project mule by mulesoft.

the class SchemaBuilder method importMuleNamespace.

private SchemaBuilder importMuleNamespace() {
    Import muleSchemaImport = createMuleImport();
    schema.getIncludeOrImportOrRedefine().add(muleSchemaImport);
    return this;
}
Also used : Import(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)

Aggregations

Import (org.mule.runtime.module.extension.internal.capability.xml.schema.model.Import)7 XmlDslModel (org.mule.runtime.api.meta.model.XmlDslModel)1