/*
- * 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
/**
* 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);
}