]> git.mxchange.org Git - jproduct-core.git/blobdiff - src/org/mxchange/jshopcore/model/category/Category.java
Updated copyright year
[jproduct-core.git] / src / org / mxchange / jshopcore / model / category / Category.java
index a1c49626e8989e3619e532e4ba63a960b6278f4a..64900bfdb98d356aba71c4a89a6fc9967e466df4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Haeder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,44 +20,57 @@ import java.io.Serializable;
 
 /**
  * An interface for categories
- *
+ * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
 public interface Category extends Serializable {
 
+       /**
+        * Copies all properties from other category to this
+        * <p>
+        * @param category Source category instance
+        */
+       void copyAll (final Category category);
+
        /**
         * Id number of category
+        * <p>
         * @return the id
         */
-       public Long getCategoryId ();
+       Long getCategoryId ();
 
        /**
         * Id number of category
+        * <p>
         * @param id the id to set
         */
-       public void setCategoryId (final Long id);
+       void setCategoryId (final Long id);
 
        /**
-        * Parent category id
-        * @return the parent
+        * Parent category
+        * <p>
+        * @return the parent category
         */
-       public Long getParentId ();
+       Category getParentCategory ();
 
        /**
-        * Parent category id
-        * @param parent the parent to set
+        * Parent category
+        * <p>
+        * @param parentCategory the parent category to set
         */
-       public void setParentId (final Long parent);
+       void setParentCategory (final Category parentCategory);
 
        /**
         * Title of category
+        * <p>
         * @return the title
         */
-       public String getTitle ();
+       String getCategoryTitle ();
 
        /**
         * Title of category
+        * <p>
         * @param title the title to set
         */
-       public void setTitle (final String title);
+       void setCategoryTitle (final String title);
 }