protected CharSequence _accessMethods(final ValueListTypeDef p) {
StringConcatenation _builder = new StringConcatenation();
_builder.append("// -------------------------------");
_builder.newLine();
_builder.append("// Property: ");
BeanPropertyDecl _property = this.property(p);
String _name = _property.getName();
_builder.append(_name, "");
_builder.append("; lazy: ");
BeanPropertyDecl _property_1 = this.property(p);
boolean _isLazy = _property_1.isLazy();
_builder.append(_isLazy, "");
_builder.append("; readonly: ");
BeanPropertyDecl _property_2 = this.property(p);
boolean _isReadonly = _property_2.isReadonly();
_builder.append(_isReadonly, "");
_builder.newLineIfNotEmpty();
_builder.append("// -------------------------------");
_builder.newLine();
_builder.append("public ");
String _apiPropertyDefinition = this.apiPropertyDefinition(p);
_builder.append(_apiPropertyDefinition, "");
_builder.append(" ");
BeanPropertyDecl _property_3 = this.property(p);
String _name_1 = _property_3.getName();
_builder.append(_name_1, "");
_builder.append("Property() {");
_builder.newLineIfNotEmpty();
{
BeanPropertyDecl _property_4 = this.property(p);
boolean _isLazy_1 = _property_4.isLazy();
if (_isLazy_1) {
_builder.append("\t");
_builder.append("if( this.");
BeanPropertyDecl _property_5 = this.property(p);
String _name_2 = _property_5.getName();
_builder.append(_name_2, " ");
_builder.append("Property == null ) {");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("\t");
_builder.append("this.");
BeanPropertyDecl _property_6 = this.property(p);
String _name_3 = _property_6.getName();
_builder.append(_name_3, " ");
_builder.append("Property = ");
String _propertyCreate = this.propertyCreate(p);
_builder.append(_propertyCreate, " ");
_builder.append(";");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
}
}
_builder.append("\t");
_builder.append("return this.");
BeanPropertyDecl _property_7 = this.property(p);
String _name_4 = _property_7.getName();
_builder.append(_name_4, " ");
_builder.append("Property;");
_builder.newLineIfNotEmpty();
_builder.append("}");
_builder.newLine();
_builder.newLine();
{
BeanPropertyDecl _property_8 = this.property(p);
boolean _isReadonly_1 = _property_8.isReadonly();
boolean _not = (!_isReadonly_1);
if (_not) {
_builder.append("public void set");
BeanPropertyDecl _property_9 = this.property(p);
String _name_5 = _property_9.getName();
String _camelCase = this.camelCase(_name_5);
_builder.append(_camelCase, "");
_builder.append("(");
{
Multiplicity _multi = p.getMulti();
boolean _notEquals = (!Objects.equal(_multi, null));
if (_notEquals) {
_builder.append("ObservableList<");
}
}
JvmTypeReference _singleType = p.getSingleType();
String _shortName = this.shortName(_singleType);
_builder.append(_shortName, "");
{
Multiplicity _multi_1 = p.getMulti();
boolean _notEquals_1 = (!Objects.equal(_multi_1, null));
if (_notEquals_1) {
_builder.append(">");
}
}
_builder.append(" ");
BeanPropertyDecl _property_10 = this.property(p);
String _name_6 = _property_10.getName();
_builder.append(_name_6, "");
_builder.append(") {");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("this.");
BeanPropertyDecl _property_11 = this.property(p);
String _name_7 = _property_11.getName();
_builder.append(_name_7, " ");
_builder.append("Property().set(");
BeanPropertyDecl _property_12 = this.property(p);
String _name_8 = _property_12.getName();
_builder.append(_name_8, " ");
_builder.append(");");
_builder.newLineIfNotEmpty();
_builder.append("}");
_builder.newLine();
}
}
_builder.newLine();
_builder.append("public ");
{
Multiplicity _multi_2 = p.getMulti();
boolean _notEquals_2 = (!Objects.equal(_multi_2, null));
if (_notEquals_2) {
_builder.append("ObservableList<");
}
}
JvmTypeReference _singleType_1 = p.getSingleType();
String _shortName_1 = this.shortName(_singleType_1);
_builder.append(_shortName_1, "");
{
Multiplicity _multi_3 = p.getMulti();
boolean _notEquals_3 = (!Objects.equal(_multi_3, null));
if (_notEquals_3) {
_builder.append(">");
}
}
_builder.append(" get");
BeanPropertyDecl _property_13 = this.property(p);
String _name_9 = _property_13.getName();
String _camelCase_1 = this.camelCase(_name_9);
_builder.append(_camelCase_1, "");
_builder.append("() {");
_builder.newLineIfNotEmpty();
{
BeanPropertyDecl _property_14 = this.property(p);
boolean _isLazy_2 = _property_14.isLazy();
if (_isLazy_2) {
_builder.append("\t");
_builder.append("if( this.");
BeanPropertyDecl _property_15 = this.property(p);
String _name_10 = _property_15.getName();
_builder.append(_name_10, " ");
_builder.append("Property == null ) {");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("\t");
_builder.append("return ");
String _defaultValue = this.defaultValue(p);
_builder.append(_defaultValue, " ");
_builder.append(";");
_builder.newLineIfNotEmpty();
_builder.append("\t");
_builder.append("}");
_builder.newLine();
}
}
_builder.append("\t");
_builder.append("return this.");
BeanPropertyDecl _property_16 = this.property(p);
String _name_11 = _property_16.getName();
_builder.append(_name_11, " ");
_builder.append("Property.get();");
_builder.newLineIfNotEmpty();
_builder.append("}");
_builder.newLine();