Package com.cedarsoft.codegen.model

Examples of com.cedarsoft.codegen.model.DomainObjectDescriptorFactory


      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        if ( TypeUtils.isInner( classDeclaration ) ) {
          continue;
        }

        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
        generate( descriptor, configuration, statusPrinter );
      }
    }
View Full Code Here


  public abstract static class AbstractGeneratorRunner<T extends DecisionCallback> implements Runner {
    @Override
    public void generate( @NotNull GeneratorConfiguration configuration ) throws IOException, JClassAlreadyExistsException {
      Result result = Parser.parse( configuration.getDomainSourceFile() );

      DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( result.getClassDeclaration() ).create();

      T decisionCallback = createDecisionCallback();

      configuration.getLogOut().println( "Generating Serializer:" );
      CodeGenerator<T> serializerCodeGenerator = new CodeGenerator<T>( decisionCallback );
View Full Code Here

      Result result = Parser.parse( configuration.getClasspath(), configuration.getDomainSourceFiles() );

      PrintStream statusPrinter = new PrintStream( new WriterOutputStream( configuration.getLogOut() ) );

      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
        generate( descriptor, configuration, statusPrinter );
      }
    }
View Full Code Here

      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        if ( TypeUtils.isInner( classDeclaration ) ) {
          continue;
        }

        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
        generate( descriptor, configuration, statusPrinter );
      }
    }
View Full Code Here

      if ( result.getClassDeclarations().isEmpty() ) {
        throw new IllegalStateException( "No class declarations found" );
      }

      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
        generate( descriptor, configuration, statusPrinter );
      }
    }
View Full Code Here

      for ( ClassDeclaration classDeclaration : result.getClassDeclarations() ) {
        if ( TypeUtils.isInner( classDeclaration ) ) {
          continue;
        }

        DomainObjectDescriptor descriptor = new DomainObjectDescriptorFactory( classDeclaration ).create();
        generate( descriptor, configuration, statusPrinter );
      }
    }
View Full Code Here

TOP

Related Classes of com.cedarsoft.codegen.model.DomainObjectDescriptorFactory

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.