Package com.arconsis.android.datarobot.builder.provider

Examples of com.arconsis.android.datarobot.builder.provider.ContentProviderBuilder


  private void generateContentProviderIfRequested(final String packageName, final Set<? extends Element> entityAnnotated) throws Exception {
    List<ContentProviderData> providers = new LinkedList<ContentProviderData>();
    for (Element entity : entityAnnotated) {
      Entity entityAnnotation = entity.getAnnotation(Entity.class);
      if (entityAnnotation.contentProvider()) {
        ContentProviderBuilder providerBuilder = new ContentProviderBuilder(packageName, entity, messager);
        SourceContentProviderData providerData = providerBuilder.build();
        JavaFileWriter javaFileWriter = new JavaFileWriter(packageName, providerData.getSimpleName(), processingEnv);
        javaFileWriter.write(providerData.getSource());
        providers.add(providerData);
      }
    }
View Full Code Here


  private void generateContentProviderIfRequested(final String packageName, final Set<? extends Element> entityAnnotated) throws Exception {
    List<ContentProviderData> providers = new LinkedList<ContentProviderData>();
    for (Element entity : entityAnnotated) {
      Entity entityAnnotation = entity.getAnnotation(Entity.class);
      if (entityAnnotation.contentProvider()) {
        ContentProviderBuilder providerBuilder = new ContentProviderBuilder(packageName, entity, messager);
        SourceContentProviderData providerData = providerBuilder.build();
        JavaFileWriter javaFileWriter = new JavaFileWriter(packageName, providerData.getSimpleName(), processingEnv);
        javaFileWriter.write(providerData.getSource());
        providers.add(providerData);
      }
    }
View Full Code Here

TOP

Related Classes of com.arconsis.android.datarobot.builder.provider.ContentProviderBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.