/** * This file is part of General Entity Annotator Benchmark. * * General Entity Annotator Benchmark is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * General Entity Annotator Benchmark is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with General Entity Annotator Benchmark. If not, see <http://www.gnu.org/licenses/>. */ package org.aksw.gerbil.dataset.datahub.model; /** * Represents a CKAN group * * @author Ross Jones (ross.jones@okfn.org) * @version 1.7 * @since 2012-05-01 */ public class Group { private String description; private String display_name; private String id; private String image_display_url; private String name; private String title; public Group() { } public Group(String description, String display_name, String id, String image_display_url, String name, String title) { super(); this.description = description; this.display_name = display_name; this.id = id; this.image_display_url = image_display_url; this.name = name; this.title = title; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getDisplay_name() { return display_name; } public void setDisplay_name(String display_name) { this.display_name = display_name; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getImage_display_url() { return image_display_url; } public void setImage_display_url(String image_display_url) { this.image_display_url = image_display_url; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((display_name == null) ? 0 : display_name.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((image_display_url == null) ? 0 : image_display_url.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Group other = (Group) obj; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; if (display_name == null) { if (other.display_name != null) return false; } else if (!display_name.equals(other.display_name)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (image_display_url == null) { if (other.image_display_url != null) return false; } else if (!image_display_url.equals(other.image_display_url)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (title == null) { if (other.title != null) return false; } else if (!title.equals(other.title)) return false; return true; } @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("Group [description="); builder.append(description); builder.append(", display_name="); builder.append(display_name); builder.append(", id="); builder.append(id); builder.append(", image_display_url="); builder.append(image_display_url); builder.append(", name="); builder.append(name); builder.append(", title="); builder.append(title); builder.append("]"); return builder.toString(); } }