graphql.language.SchemaDefinition Maven / Gradle / Ivy
The newest version!
package graphql.language;
import java.util.ArrayList;
import java.util.List;
public class SchemaDefinition extends AbstractNode implements Definition {
private List directives = new ArrayList<>();
private List operationTypeDefinitions = new ArrayList<>();
public SchemaDefinition() {
}
public List getDirectives() {
return directives;
}
public List getOperationTypeDefinitions() {
return operationTypeDefinitions;
}
@Override
public List getChildren() {
List result = new ArrayList<>();
result.addAll(directives);
result.addAll(operationTypeDefinitions);
return result;
}
@Override
public boolean isEqualTo(Node o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SchemaDefinition that = (SchemaDefinition) o;
return true;
}
@Override
public String toString() {
return "SchemaDefinition{" +
"directives=" + directives +
", operationTypeDefinitions=" + operationTypeDefinitions +
"}";
}
}