br.com.objectos.ui.html.ElementMethodBuilderPojo Maven / Gradle / Ivy
The newest version!
package br.com.objectos.ui.html;
import com.squareup.javapoet.ClassName;
import com.squareup.javapoet.TypeName;
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 ElementMethodBuilderPojo implements ElementMethodBuilder, ElementMethodBuilder.ElementMethodBuilderTagName, ElementMethodBuilder.ElementMethodBuilderClassName, ElementMethodBuilder.ElementMethodBuilderProtoTypeName, ElementMethodBuilder.ElementMethodBuilderChildList {
private String tagName;
private ClassName className;
private TypeName protoTypeName;
private List childList;
public ElementMethodBuilderPojo() {
}
@Override
public ElementMethod build() {
return new ElementMethodPojo(this);
}
@Override
public ElementMethodBuilder.ElementMethodBuilderTagName tagName(String tagName) {
if (tagName == null) {
throw new NullPointerException();
}
this.tagName = tagName;
return this;
}
String ___get___tagName() {
return tagName;
}
@Override
public ElementMethodBuilder.ElementMethodBuilderClassName className(ClassName className) {
if (className == null) {
throw new NullPointerException();
}
this.className = className;
return this;
}
ClassName ___get___className() {
return className;
}
@Override
public ElementMethodBuilder.ElementMethodBuilderProtoTypeName protoTypeName(TypeName protoTypeName) {
if (protoTypeName == null) {
throw new NullPointerException();
}
this.protoTypeName = protoTypeName;
return this;
}
TypeName ___get___protoTypeName() {
return protoTypeName;
}
@Override
public ElementMethodBuilder.ElementMethodBuilderChildList childList(List childList) {
if (childList == null) {
throw new NullPointerException();
}
this.childList = childList;
return this;
}
List ___get___childList() {
return childList;
}
@Override
public ElementMethodBuilder.ElementMethodBuilderChildList childList(Child... elements) {
if (elements == null) {
throw new NullPointerException();
}
List childList = new ArrayList<>(elements.length);
for (int i = 0; i < elements.length; i++) {
Child e = elements[i];
if (e == null) {
throw new NullPointerException();
}
childList.add(e);
}
this.childList = Collections.unmodifiableList(childList);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy