Search in sources :

Example 1 with PresentationModelInfoBuilder

use of org.robobinding.codegen.presentationmodel.processor.PresentationModelInfoBuilder in project RoboBinding by RoboBinding.

the class ItemPresentationModelObjectClassGenTest method createPresentationModelInfoFor.

private PresentationModelInfo createPresentationModelInfoFor(Class<?> type) {
    WrappedTypeElement typeElement = new AptTestHelper(compilation).typeElementOf(type);
    PresentationModelInfoBuilder builder = new PresentationModelInfoBuilder(typeElement, type.getName() + "_IPM", false);
    return new OrderedPresentationModelInfo(builder.build());
}
Also used : PresentationModelInfoBuilder(org.robobinding.codegen.presentationmodel.processor.PresentationModelInfoBuilder) WrappedTypeElement(org.robobinding.codegen.apt.element.WrappedTypeElement) AptTestHelper(org.robobinding.codegen.apt.element.AptTestHelper)

Example 2 with PresentationModelInfoBuilder

use of org.robobinding.codegen.presentationmodel.processor.PresentationModelInfoBuilder in project RoboBinding by RoboBinding.

the class PresentationModelObjectClassGenTest method createPresentationModelInfoFor.

private PresentationModelInfo createPresentationModelInfoFor(Class<?> type) {
    WrappedTypeElement typeElement = new AptTestHelper(compilation).typeElementOf(type);
    PresentationModelInfoBuilder builder = new PresentationModelInfoBuilder(typeElement, type.getName() + "_PM", true);
    return new OrderedPresentationModelInfo(builder.build());
}
Also used : PresentationModelInfoBuilder(org.robobinding.codegen.presentationmodel.processor.PresentationModelInfoBuilder) WrappedTypeElement(org.robobinding.codegen.apt.element.WrappedTypeElement) AptTestHelper(org.robobinding.codegen.apt.element.AptTestHelper)

Aggregations

AptTestHelper (org.robobinding.codegen.apt.element.AptTestHelper)2 WrappedTypeElement (org.robobinding.codegen.apt.element.WrappedTypeElement)2 PresentationModelInfoBuilder (org.robobinding.codegen.presentationmodel.processor.PresentationModelInfoBuilder)2