@Override public void newLineIfNotEmpty() { target.newLineIfNotEmpty(); }
protected CharSequence _createContents(final EObject eObject) { StringConcatenation _builder = new StringConcatenation(); _builder.append("<!-- !!! No implementation for type \'"); EClass _eClass = eObject.eClass(); String _name = _eClass.getName(); _builder.append(_name, ""); _builder.append("\' !!! -->"); _builder.newLineIfNotEmpty(); return _builder; }
@Override public String getContent(final Entity entity, final InvocationContext invocationContext) { StringConcatenation _builder = new StringConcatenation(); EList<Property> _properties = entity.getProperties(); CharSequence _handleProperties = EntityValidationTemplate.handleProperties(_properties, invocationContext); String _string = _handleProperties.toString(); String _trim = _string.trim(); _builder.append(_trim, ""); _builder.newLineIfNotEmpty(); return _builder.toString(); }
@Override public String toString() { StringConcatenation _builder = new StringConcatenation(); _builder.append("rootIndentLenght="); _builder.append(this.rootIndentLenght); _builder.newLineIfNotEmpty(); _builder.append(this.leadingText); String _join = IterableExtensions.join(this.lines); _builder.append(_join); _builder.newLineIfNotEmpty(); return _builder.toString(); }
@Override public void acceptConstraint(final Constraint constraint) { StringConcatenation _builder = new StringConcatenation(); _builder.append("// "); String _serialize = BodyCodeGenerator.this.serializer.serialize(constraint); String _replaceAll = _serialize.replaceAll("\r\n?|\n", ""); _builder.append(_replaceAll, ""); _builder.newLineIfNotEmpty(); target.append(_builder); }
private void createBuildProperties(final IProject project, final IProgressMonitor monitor) { StringConcatenation _builder = new StringConcatenation(); _builder.append("bin.includes ="); _builder.append(FeatureProjectFactory.MANIFEST_FILENAME, ""); _builder.newLineIfNotEmpty(); this.writeToFile(_builder, FeatureProjectFactory.BUILD_PROPS_FILE_NAME, project, monitor); }
protected CharSequence _toJsfDataModel(final Content content) { StringConcatenation _builder = new StringConcatenation(); { EList<EObject> _eContents = content.eContents(); for(final EObject item : _eContents) { CharSequence _jsfDataModel = this.toJsfDataModel(item); _builder.append(_jsfDataModel, ""); _builder.newLineIfNotEmpty(); } } return _builder; }
public CharSequence generateInterfaces(final ZenModel zenModel) { StringConcatenation _builder = new StringConcatenation(); { EList<ResourceAPI> _resourceAPIs = zenModel.getResourceAPIs(); for(final ResourceAPI iface : _resourceAPIs) { CharSequence _generateInterface = this.generateInterface(iface, zenModel); _builder.append(_generateInterface); _builder.newLineIfNotEmpty(); } } return _builder; }
@Override public String getContent(final Param param, final InvocationContext invocationContext) { StringConcatenation _builder = new StringConcatenation(); CharSequence _handleParam = OperationSingleParameterValidationTemplate.handleParam(param, invocationContext, true); _builder.append(_handleParam, ""); _builder.newLineIfNotEmpty(); return _builder.toString(); }
protected CharSequence _toInitCode(final SetOfGuiElements composite) { StringConcatenation _builder = new StringConcatenation(); { EList<EObject> _eContents = composite.eContents(); for(final EObject item : _eContents) { CharSequence _initCode = this.toInitCode(item); _builder.append(_initCode, ""); _builder.newLineIfNotEmpty(); } } return _builder; }
protected CharSequence _toInitCode(final TabPage page) { StringConcatenation _builder = new StringConcatenation(); { EList<EObject> _eContents = page.eContents(); for(final EObject item : _eContents) { CharSequence _initCode = this.toInitCode(item); _builder.append(_initCode, ""); _builder.newLineIfNotEmpty(); } } return _builder; }
protected String _ebnf2(final Assignment it, final AntlrOptions options, final boolean supportActions) { StringConcatenation _builder = new StringConcatenation(); String _assignmentEbnf = this.assignmentEbnf(it.getTerminal(), it, options, supportActions); _builder.append(_assignmentEbnf); _builder.newLineIfNotEmpty(); return _builder.toString(); }
protected String _dataTypeEbnf2(final Group it, final boolean supportActions) { StringConcatenation _builder = new StringConcatenation(); { EList<AbstractElement> _elements = it.getElements(); for(final AbstractElement e : _elements) { String _dataTypeEbnf = this.dataTypeEbnf(e, supportActions); _builder.append(_dataTypeEbnf); } } _builder.newLineIfNotEmpty(); return _builder.toString(); }
public static CharSequence writeTypeDefinition(final TypeDefinition<?> typeDefinition) { StringConcatenation _builder = new StringConcatenation(); _builder.append("type "); QName _qName = typeDefinition.getQName(); String _localName = _qName.getLocalName(); _builder.append(_localName, ""); _builder.append(";"); _builder.newLineIfNotEmpty(); return _builder; }
public static CharSequence writeAnyXmlSchemaNode(final AnyXmlSchemaNode anyXmlSchemaNode) { StringConcatenation _builder = new StringConcatenation(); _builder.append("anyxml "); QName _qName = anyXmlSchemaNode.getQName(); String _localName = _qName.getLocalName(); _builder.append(_localName, ""); _builder.append(";"); _builder.newLineIfNotEmpty(); return _builder; }
protected CharSequence _createContents(final FieldReference field) { StringConcatenation _builder = new StringConcatenation(); _builder.append("<h:field attribute=\""); Attribute _attribute = field.getAttribute(); String _name = _attribute.getName(); _builder.append(_name, ""); _builder.append("\"/>"); _builder.newLineIfNotEmpty(); return _builder; }
@Override public String toString() { StringConcatenation _builder = new StringConcatenation(); _builder.append("Comment: \""); String _text = this.getNode().getText(); _builder.append(_text); _builder.append("\""); _builder.newLineIfNotEmpty(); return _builder.toString(); }
public CharSequence javadocGetAllValuesOfMethod(final Variable parameter) { StringConcatenation _builder = new StringConcatenation(); _builder.append("Retrieve the set of values that occur in matches for "); String _name = parameter.getName(); _builder.append(_name); _builder.append("."); _builder.newLineIfNotEmpty(); _builder.append("@return the Set of all values or empty set if there are no matches"); _builder.newLine(); return _builder; }
public CharSequence javadocGetAllValuesOfMethod(final Variable parameter) { StringConcatenation _builder = new StringConcatenation(); _builder.append("Retrieve the set of values that occur in matches for "); String _name = parameter.getName(); _builder.append(_name, ""); _builder.append("."); _builder.newLineIfNotEmpty(); _builder.append("@return the Set of all values, null if no parameter with the given name exists, empty set if there are no matches"); _builder.newLine(); return _builder; }
protected CharSequence _generateActionPart(final TemplateText constant, final int position) { StringConcatenation _builder = new StringConcatenation(); _builder.append("<actionPart position=\""); _builder.append(position); _builder.append("\" type=\"TEXT\" value=\""); String _value = constant.getValue(); _builder.append(_value); _builder.append("\" />"); _builder.newLineIfNotEmpty(); return _builder; }