Search in sources :

Example 1 with Documentation

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

the class SchemaBuilder method createDocAnnotation.

Annotation createDocAnnotation(String content) {
    if (StringUtils.isBlank(content)) {
        return null;
    }
    Annotation annotation = new Annotation();
    Documentation doc = new Documentation();
    doc.getContent().add(content);
    annotation.getAppinfoOrDocumentation().add(doc);
    return annotation;
}
Also used : Documentation(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Documentation) EnumAnnotation(org.mule.metadata.api.annotation.EnumAnnotation) Annotation(org.mule.runtime.module.extension.internal.capability.xml.schema.model.Annotation)

Aggregations

EnumAnnotation (org.mule.metadata.api.annotation.EnumAnnotation)1 Annotation (org.mule.runtime.module.extension.internal.capability.xml.schema.model.Annotation)1 Documentation (org.mule.runtime.module.extension.internal.capability.xml.schema.model.Documentation)1