protected CharSequence _generateFieldForType(final GenericListType type) { StringConcatenation _builder = new StringConcatenation(); { Type _elementType = type.getElementType(); if ((_elementType instanceof IntrinsicType)) { _builder.append("private "); String _signature = ModelExtensions.signature(type); _builder.append(_signature, ""); _builder.append(" values;"); _builder.newLineIfNotEmpty(); } else { _builder.append("private "); String _signature_1 = ModelExtensions.signature(type); _builder.append(_signature_1, ""); _builder.append(" "); String _innerSignature = ModelExtensions.innerSignature(type); String _camelize = Strings.camelize(_innerSignature); String _pluralize = Strings.pluralize(_camelize); _builder.append(_pluralize, ""); _builder.append(";"); _builder.newLineIfNotEmpty(); } } return _builder; }
protected CharSequence _generateGetterForType(final GenericListType type) { StringConcatenation _builder = new StringConcatenation(); { Type _elementType = type.getElementType(); if ((_elementType instanceof IntrinsicType)) { _builder.append("public "); String _signature = ModelExtensions.signature(type); _builder.append(_signature, ""); _builder.append(" getValues(){"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("return this.values;"); _builder.newLine(); _builder.append("}"); _builder.newLine(); } else { _builder.append("public "); String _signature_1 = ModelExtensions.signature(type); _builder.append(_signature_1, ""); _builder.append(" get"); String _innerSignature = ModelExtensions.innerSignature(type); String _pascalize = Strings.pascalize(_innerSignature); String _pluralize = Strings.pluralize(_pascalize); _builder.append(_pluralize, ""); _builder.append("(){"); _builder.newLineIfNotEmpty(); _builder.append("\t"); _builder.append("return this."); String _innerSignature_1 = ModelExtensions.innerSignature(type); String _camelize = Strings.camelize(_innerSignature_1); String _pluralize_1 = Strings.pluralize(_camelize); _builder.append(_pluralize_1, "\t"); _builder.append(";"); _builder.newLineIfNotEmpty(); _builder.append("}"); _builder.newLine(); } } return _builder; }
protected CharSequence _generateDeserializationStatementForType( final ResponseBlock response, final GenericListType type) { Type _elementType = type.getElementType(); return this.generateDeserializationStatementForGenericListType(response, type, _elementType); }