graphql.language.EnumValue Maven / Gradle / Ivy
package graphql.language;
import graphql.util.TraversalControl;
import graphql.util.TraverserContext;
import java.util.ArrayList;
import java.util.List;
public class EnumValue extends AbstractNode implements Value, NamedNode {
private String name;
public EnumValue(String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public List getChildren() {
return new ArrayList<>();
}
@Override
public boolean isEqualTo(Node o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EnumValue that = (EnumValue) o;
return NodeUtil.isEqualTo(this.name, that.name);
}
@Override
public EnumValue deepCopy() {
return new EnumValue(name);
}
@Override
public String toString() {
return "EnumValue{" +
"name='" + name + '\'' +
'}';
}
@Override
public TraversalControl accept(TraverserContext context, NodeVisitor visitor) {
return visitor.visitEnumValue(this, context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy