2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jshopcore.model.category;
19 import java.io.Serializable;
22 * An interface for categories
24 * @author Roland Haeder<roland@mxchange.org>
26 public interface Category extends Serializable {
29 * Copies all properties from other category to this
31 * @param category Source category instance
33 void copyAll (final Category category);
36 * Id number of category
40 Long getCategoryId ();
43 * Id number of category
45 * @param id the id to set
47 void setCategoryId (final Long id);
52 * @return the parent category
54 Category getParentCategory ();
59 * @param parentCategory the parent category to set
61 void setParentCategory (final Category parentCategory);
68 String getCategoryTitle ();
73 * @param title the title to set
75 void setCategoryTitle (final String title);