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

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

First commit for jiwigo-ws-api

File size: 5.0 KB
Line 
1package fr.mael.jiwigo.om;
2
3import java.util.ArrayList;
4
5import org.jdom.Element;
6
7/*
8Copyright (c) 2010, Mael
9All rights reserved.
10
11Redistribution and use in source and binary forms, with or without
12modification, are permitted provided that the following conditions are met:
13 * Redistributions of source code must retain the above copyright
14   notice, this list of conditions and the following disclaimer.
15 * Redistributions in binary form must reproduce the above copyright
16   notice, this list of conditions and the following disclaimer in the
17   documentation and/or other materials provided with the distribution.
18 * Neither the name of jiwigo nor the
19   names of its contributors may be used to endorse or promote products
20   derived from this software without specific prior written permission.
21
22THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25DISCLAIMED. IN NO EVENT SHALL Mael BE LIABLE FOR ANY
26DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32*/
33/**
34
35 * @author mael
36 *
37 */
38public class Category {
39
40    private ArrayList<Integer> idCategoriesMeres;
41    private Integer identifiant;
42    private String urlCategory;
43    private Integer nbImages;
44    private Integer nbTotalImages;
45    private ArrayList<Category> categoriesFilles;
46    private ArrayList<Category> categoriesMeres;
47    private String nom;
48    private Element element;
49    private Integer parentDirect;
50    private Integer level;
51
52    public Category() {
53        categoriesFilles = new ArrayList<Category>();
54        categoriesMeres = new ArrayList<Category>();
55    }
56
57    @Override
58    public String toString() {
59        return nom;
60    }
61
62    /**
63     * @return the idCategoriesMeres
64     */
65    public ArrayList<Integer> getIdCategoriesMeres() {
66        return idCategoriesMeres;
67    }
68
69    /**
70     * @param idCategoriesMeres the idCategoriesMeres to set
71     */
72    public void setIdCategoriesMeres(ArrayList<Integer> idCategoriesMeres) {
73        this.idCategoriesMeres = idCategoriesMeres;
74    }
75
76    /**
77     * @return the identifiant
78     */
79    public Integer getIdentifiant() {
80        return identifiant;
81    }
82
83    /**
84     * @param identifiant the identifiant to set
85     */
86    public void setIdentifiant(Integer identifiant) {
87        this.identifiant = identifiant;
88    }
89
90    /**
91     * @return the urlCategory
92     */
93    public String getUrlCategory() {
94        return urlCategory;
95    }
96
97    /**
98     * @param urlCategory the urlCategory to set
99     */
100    public void setUrlCategory(String urlCategory) {
101        this.urlCategory = urlCategory;
102    }
103
104    /**
105     * @return the nbImages
106     */
107    public Integer getNbImages() {
108        return nbImages;
109    }
110
111    /**
112     * @param nbImages the nbImages to set
113     */
114    public void setNbImages(Integer nbImages) {
115        this.nbImages = nbImages;
116    }
117
118    /**
119     * @return the nbTotalImages
120     */
121    public Integer getNbTotalImages() {
122        return nbTotalImages;
123    }
124
125    /**
126     * @param nbTotalImages the nbTotalImages to set
127     */
128    public void setNbTotalImages(Integer nbTotalImages) {
129        this.nbTotalImages = nbTotalImages;
130    }
131
132    /**
133     * @return the categoriesFilles
134     */
135    public ArrayList<Category> getCategoriesFilles() {
136        return categoriesFilles;
137    }
138
139    /**
140     * @param categoriesFilles the categoriesFilles to set
141     */
142    public void setCategoriesFilles(ArrayList<Category> categoriesFilles) {
143        this.categoriesFilles = categoriesFilles;
144    }
145
146    /**
147     * @return the categoriesMeres
148     */
149    public ArrayList<Category> getCategoriesMeres() {
150        return categoriesMeres;
151    }
152
153    /**
154     * @param categoriesMeres the categoriesMeres to set
155     */
156    public void setCategoriesMeres(ArrayList<Category> categoriesMeres) {
157        this.categoriesMeres = categoriesMeres;
158    }
159
160    /**
161     * @return the nom
162     */
163    public String getNom() {
164        return nom;
165    }
166
167    /**
168     * @param nom the nom to set
169     */
170    public void setNom(String nom) {
171        this.nom = nom;
172    }
173
174    /**
175     * @return the element
176     */
177    public Element getElement() {
178        return element;
179    }
180
181    /**
182     * @param element the element to set
183     */
184    public void setElement(Element element) {
185        this.element = element;
186    }
187
188    /**
189     * @return the parentDirect
190     */
191    public Integer getParentDirect() {
192        return parentDirect;
193    }
194
195    /**
196     * @param parentDirect the parentDirect to set
197     */
198    public void setParentDirect(Integer parentDirect) {
199        this.parentDirect = parentDirect;
200    }
201
202    public Integer getLevel() {
203        return level;
204    }
205
206    public void setLevel(Integer level) {
207        this.level = level;
208    }
209
210}
Note: See TracBrowser for help on using the repository browser.