source: extensions/jiwigo-ws-api/src/main/java/fr/mael/jiwigo/om/Category.java @ 9879

Last change on this file since 9879 was 9879, checked in by mlg, 13 years ago

Changed the licence
to a funniest one.

File size: 3.6 KB
Line 
1package fr.mael.jiwigo.om;
2
3import java.util.ArrayList;
4
5import org.jdom.Element;
6
7/*
8DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
9        Version 2, December 2004
10
11Copyright (C) 2011 Mael <mael@le-guevel.com>
12
13Everyone is permitted to copy and distribute verbatim or modified
14copies of this license document, and changing it is allowed as long
15as the name is changed.
16
17DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
18TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
19
200. You just DO WHAT THE FUCK YOU WANT TO.
21
22*/
23/**
24
25 * @author mael
26 *
27 */
28public class Category {
29
30    private ArrayList<Integer> idParentCategories;
31    private String idParentCategoriesString;
32    private Integer identifier;
33    private String urlCategory;
34    private Integer nbImages;
35    private Integer nbTotalImages;
36    private ArrayList<Category> childCategories;
37    private ArrayList<Category> parentCategories;
38    private String name;
39    private Element element;
40    private Integer directParent;
41    private Integer level;
42
43    public Category() {
44        childCategories = new ArrayList<Category>();
45        parentCategories = new ArrayList<Category>();
46    }
47
48    @Override
49    public String toString() {
50        return name;
51    }
52
53    /**
54     * @return the urlCategory
55     */
56    public String getUrlCategory() {
57        return urlCategory;
58    }
59
60    /**
61     * @param urlCategory the urlCategory to set
62     */
63    public void setUrlCategory(String urlCategory) {
64        this.urlCategory = urlCategory;
65    }
66
67    /**
68     * @return the nbImages
69     */
70    public Integer getNbImages() {
71        return nbImages;
72    }
73
74    /**
75     * @param nbImages the nbImages to set
76     */
77    public void setNbImages(Integer nbImages) {
78        this.nbImages = nbImages;
79    }
80
81    /**
82     * @return the nbTotalImages
83     */
84    public Integer getNbTotalImages() {
85        return nbTotalImages;
86    }
87
88    /**
89     * @param nbTotalImages the nbTotalImages to set
90     */
91    public void setNbTotalImages(Integer nbTotalImages) {
92        this.nbTotalImages = nbTotalImages;
93    }
94
95    /**
96     * @return the element
97     */
98    public Element getElement() {
99        return element;
100    }
101
102    /**
103     * @param element the element to set
104     */
105    public void setElement(Element element) {
106        this.element = element;
107    }
108
109    public Integer getLevel() {
110        return level;
111    }
112
113    public void setLevel(Integer level) {
114        this.level = level;
115    }
116
117    public ArrayList<Integer> getIdParentCategories() {
118        return idParentCategories;
119    }
120
121    public void setIdParentCategories(ArrayList<Integer> idParentCategories) {
122        this.idParentCategories = idParentCategories;
123    }
124
125    public Integer getIdentifier() {
126        return identifier;
127    }
128
129    public void setIdentifier(Integer identifier) {
130        this.identifier = identifier;
131    }
132
133    public ArrayList<Category> getChildCategories() {
134        return childCategories;
135    }
136
137    public void setChildCategories(ArrayList<Category> childCategories) {
138        this.childCategories = childCategories;
139    }
140
141    public ArrayList<Category> getParentCategories() {
142        return parentCategories;
143    }
144
145    public void setParentCategories(ArrayList<Category> parentCategories) {
146        this.parentCategories = parentCategories;
147    }
148
149    public String getName() {
150        return name;
151    }
152
153    public void setName(String name) {
154        this.name = name;
155    }
156
157    public Integer getDirectParent() {
158        return directParent;
159    }
160
161    public void setDirectParent(Integer directParent) {
162        this.directParent = directParent;
163    }
164
165    public String getIdParentCategoriesString() {
166        return idParentCategoriesString;
167    }
168
169    public void setIdParentCategoriesString(String idParentCategoriesString) {
170        this.idParentCategoriesString = idParentCategoriesString;
171    }
172
173}
Note: See TracBrowser for help on using the repository browser.