01: /**
02: * Copyright 2005 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */package com.sun.portal.admin.console.communities;
13:
14: import java.util.*;
15:
16: public class CategoryBean {
17:
18: public String nodeID = "";
19: public String category = "";
20: public boolean hasChildren = false;
21:
22: public void initialize(String nodeID, boolean hasChildren) {
23: this .nodeID = nodeID;
24: this .hasChildren = hasChildren;
25:
26: String[] strings = nodeID.split(":");
27: this .category = strings[strings.length - 1];
28: }
29:
30: public String getNodeID() {
31: return nodeID;
32: }
33:
34: public void setNodeID(String nodeID) {
35: this .nodeID = nodeID;
36: }
37:
38: public String getCategory() {
39: return category;
40: }
41:
42: public void setCategory(String category) {
43: this .category = category;
44: }
45:
46: public boolean getHasChildren() {
47: return hasChildren;
48: }
49:
50: public void setHasChildren(boolean hasChildren) {
51: this.hasChildren = hasChildren;
52: }
53:
54: }
|