private Example mapExample()

in geronimo-openapi-impl/src/main/java/org/apache/geronimo/microprofile/openapi/impl/processor/AnnotationProcessor.java [1033:1048]


    private Example mapExample(final ExampleObject exampleObject) {
        final ExampleImpl impl = new ExampleImpl();
        if (!exampleObject.description().isEmpty()) {
            impl.description(exampleObject.description());
        }
        if (!exampleObject.externalValue().isEmpty()) {
            impl.externalValue(exampleObject.externalValue());
        }
        if (!exampleObject.value().isEmpty()) { // todo: type
            impl.value(exampleObject.value());
        }
        if (!exampleObject.summary().isEmpty()) {
            impl.summary(exampleObject.summary());
        }
        return impl;
    }