Rev 51 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/****/package in.shop2020.metamodel.definitions;import java.util.ArrayList;import java.util.List;import in.shop2020.metamodel.util.ReusableMetaModelComponent;/**** @author naveen**/public class Category extends ReusableMetaModelComponent {/****/private static final long serialVersionUID = 1L;private String label;private String description;private List<CategorySlideDefinition> categorySlideDefintions;private Category parentCategory;private List<Category> childrenCategory;/**** @param newID*/public Category(long newID) {super(newID);}/**** @return label*/public String getLabel() {return this.label;}/**** @param value*/public void setLabel(String value) {this.label = value;}/**** @return description*/public String getDescription() {return this.description;}/**** @param value*/public void setDescription(String value) {this.description = value;}/*** @return the categorySlideDefintions*/public List<CategorySlideDefinition> getCategorySlideDefintions() {return categorySlideDefintions;}/*** @param categorySlideDefintions the categorySlideDefintions to set*/public void setCategorySlideDefintions(List<CategorySlideDefinition> categorySlideDefintions) {this.categorySlideDefintions = categorySlideDefintions;}/**** @param categoryDefinition*/public void addCategorySlideDefintion(CategorySlideDefinition categoryDefinition) {if(this.categorySlideDefintions == null) {this.categorySlideDefintions = new ArrayList<CategorySlideDefinition>();}this.categorySlideDefintions.add(categoryDefinition);}/*** @param parentCategory the parentCategory to set*/public void setParentCategory(Category parentCategory) {this.parentCategory = parentCategory;}/*** @return the parentCategory*/public Category getParentCategory() {return parentCategory;}/*** @param childrenCategory the childrenCategory to set*/public void setChildrenCategory(List<Category> childrenCategory) {this.childrenCategory = childrenCategory;}/*** @param childrenCategory the childrenCategory to set*/public void addChild(Category child) {if(this.childrenCategory == null) {this.childrenCategory = new ArrayList<Category>();}this.childrenCategory.add(child);}/*** @return the childrenCategory*/public List<Category> getChildrenCategory() {return childrenCategory;}/* (non-Javadoc)* @see java.lang.Object#toString()*/@Overridepublic String toString() {/*return "Category [categorySlideDefintions=" + categorySlideDefintions+ ", childrenCategory=" + childrenCategory + ", description="+ description + ", label=" + label + ", parentCategory="+ parentCategory + "]";*/return "Category [categorySlideDefintions=" + categorySlideDefintions+ ", id=" + id + ", description=" + description + ", label=" + label + "]";}}