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

br.com.objectos.ui.html.ProtoMethodBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.ui.html;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.way.pojo.compiler.PojoCompiler",
    "br.com.objectos.way.pojo.plugin.ListPlugin",
    "br.com.objectos.way.pojo.plugin.StandardBuilderPropertyAction"
})
final class ProtoMethodBuilderPojo implements ProtoMethodBuilder, ProtoMethodBuilder.ProtoMethodBuilderNaming, ProtoMethodBuilder.ProtoMethodBuilderTagName, ProtoMethodBuilder.ProtoMethodBuilderClassSimpleName, ProtoMethodBuilder.ProtoMethodBuilderContentModel, ProtoMethodBuilder.ProtoMethodBuilderAttributeAnnotationList {
  private ProtoNaming naming;

  private String tagName;

  private String classSimpleName;

  private ContentModel contentModel;

  private List attributeAnnotationList;

  public ProtoMethodBuilderPojo() {
  }

  @Override
  public ProtoMethod build() {
    return new ProtoMethodPojo(this);
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderNaming naming(ProtoNaming naming) {
    if (naming == null) {
      throw new NullPointerException();
    }
    this.naming = naming;
    return this;
  }

  ProtoNaming ___get___naming() {
    return naming;
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderTagName tagName(String tagName) {
    if (tagName == null) {
      throw new NullPointerException();
    }
    this.tagName = tagName;
    return this;
  }

  String ___get___tagName() {
    return tagName;
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderClassSimpleName classSimpleName(String classSimpleName) {
    if (classSimpleName == null) {
      throw new NullPointerException();
    }
    this.classSimpleName = classSimpleName;
    return this;
  }

  String ___get___classSimpleName() {
    return classSimpleName;
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderContentModel contentModel(ContentModel contentModel) {
    if (contentModel == null) {
      throw new NullPointerException();
    }
    this.contentModel = contentModel;
    return this;
  }

  ContentModel ___get___contentModel() {
    return contentModel;
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderAttributeAnnotationList attributeAnnotationList(List attributeAnnotationList) {
    if (attributeAnnotationList == null) {
      throw new NullPointerException();
    }
    this.attributeAnnotationList = attributeAnnotationList;
    return this;
  }

  List ___get___attributeAnnotationList() {
    return attributeAnnotationList;
  }

  @Override
  public ProtoMethodBuilder.ProtoMethodBuilderAttributeAnnotationList attributeAnnotationList(AttributeAnnotation... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }
    List attributeAnnotationList = new ArrayList<>(elements.length);
    for (int i = 0; i < elements.length; i++) {
      AttributeAnnotation e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      attributeAnnotationList.add(e);
    }
    this.attributeAnnotationList = Collections.unmodifiableList(attributeAnnotationList);
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy