private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException { EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}StreamSupport"); //$NON-NLS-1$ LOG.debug("Generating stream support for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); Generator.emit(next, model); LOG.debug("Generated stream support for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_JDBC, "{0}JdbcSupport"); //$NON-NLS-1$ LOG.debug("Generating JDBC support for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); SupportGenerator.emit(next, model); LOG.debug("Generated JDBC support for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}LineFormat"); //$NON-NLS-1$ LOG.debug("Generating line format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, model.getTrait(LineFormatTrait.class).getConfiguration()); LOG.debug("Generated line format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; CsvTextTrait trait = CsvTextTrait.get(model); EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, PACKAGE_SEGMENT, "{0}CsvTextFormat"); //$NON-NLS-1$ LOG.debug("Generating CSV format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, trait); LOG.debug("Generated CSV format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; TabularTextTrait trait = TabularTextTrait.get(model); EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, PACKAGE_SEGMENT, "{0}TabularTextFormat"); //$NON-NLS-1$ LOG.debug("Generating tabular text format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, trait); LOG.debug("Generated tabular text format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}TsvFormat"); //$NON-NLS-1$ LOG.debug("Generating TSV format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, model.getTrait(TsvFormatTrait.class).getConfiguration()); LOG.debug("Generated TSV format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}SequenceFileFormat"); //$NON-NLS-1$ LOG.debug("Generating SequenceFile format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, model.getTrait(SequenceFileFormatTrait.class).getConfiguration()); LOG.debug("Generated SequenceFile format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateSupport(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}CsvSupport"); //$NON-NLS-1$ LOG.debug("Generating CSV support for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); SupportGenerator.emit(next, model, model.getTrait(CsvSupportTrait.class).getConfiguration()); LOG.debug("Generated CSV support for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, CATEGORY_STREAM, "{0}CsvFormat"); //$NON-NLS-1$ LOG.debug("Generating CSV format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); FormatGenerator.emit(next, model, model.getTrait(CsvFormatTrait.class).getConfiguration()); LOG.debug("Generated CSV format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
private static Name generateFormat(EmitContext context, ModelDeclaration model) throws IOException { assert context != null; assert model != null; JsonFormatTrait trait = JsonFormatTrait.get(model); EmitContext next = new EmitContext( context.getSemantics(), context.getConfiguration(), model, PACKAGE_SEGMENT, "{0}JsonFormat"); //$NON-NLS-1$ LOG.debug("Generating JSON format for {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()); JsonStreamFormatGenerator generator = new JsonStreamFormatGenerator( next, model, trait.getStreamSettings(), trait.getFormatSettings(), trait.getPropertySettings()); generator.emit(); LOG.debug("Generated JSON format for {}: {}", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString(), next.getQualifiedTypeName().toNameString()); return next.getQualifiedTypeName(); }
.newObject(Models.toLiteral(f, MessageFormat.format( "{0} does not support fragmentation.", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()))) .toThrowStatement())));
.newObject(Models.toLiteral(f, MessageFormat.format( Messages.getString("CsvFormatEmitter.messageNotSupportFragmentation"), //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()))) .toThrowStatement())));
.newObject(Models.toLiteral(f, MessageFormat.format( "{0} does not support fragmentation.", //$NON-NLS-1$ context.getQualifiedTypeName().toNameString()))) .toThrowStatement())));