All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.code.pojo.SimpleAttributeMethodBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.code.pojo;

import br.com.objectos.code.AccessInfo;
import com.squareup.javapoet.TypeName;
import javax.annotation.Generated;

@Generated("br.com.objectos.auto.pojo.AutoPojoProcessor")
final class SimpleAttributeMethodBuilderPojo implements SimpleAttributeMethodBuilder, SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderNaming, SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderAccessInfo, SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderName, SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderFieldName, SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderReturnTypeName {
  private Naming naming;

  private AccessInfo accessInfo;

  private String name;

  private String fieldName;

  private TypeName returnTypeName;

  public SimpleAttributeMethodBuilderPojo() {
  }

  @Override
  public SimpleAttributeMethod build() {
    return new SimpleAttributeMethodPojo(this);
  }

  @Override
  public SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderNaming naming(Naming naming) {
    if (naming == null) {
      throw new NullPointerException();
    }
    this.naming = naming;
    return this;
  }

  @Override
  public SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderAccessInfo accessInfo(AccessInfo accessInfo) {
    if (accessInfo == null) {
      throw new NullPointerException();
    }
    this.accessInfo = accessInfo;
    return this;
  }

  @Override
  public SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderName name(String name) {
    if (name == null) {
      throw new NullPointerException();
    }
    this.name = name;
    return this;
  }

  @Override
  public SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderFieldName fieldName(String fieldName) {
    if (fieldName == null) {
      throw new NullPointerException();
    }
    this.fieldName = fieldName;
    return this;
  }

  @Override
  public SimpleAttributeMethodBuilder.SimpleAttributeMethodBuilderReturnTypeName returnTypeName(TypeName returnTypeName) {
    if (returnTypeName == null) {
      throw new NullPointerException();
    }
    this.returnTypeName = returnTypeName;
    return this;
  }

  Naming ___get___naming() {
    return naming;
  }

  AccessInfo ___get___accessInfo() {
    return accessInfo;
  }

  String ___get___name() {
    return name;
  }

  String ___get___fieldName() {
    return fieldName;
  }

  TypeName ___get___returnTypeName() {
    return returnTypeName;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy