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.search;
13:
14: import java.util.*;
15:
16: public class ExcludedURLBean {
17:
18: public String reasonSummary = "";
19: public ArrayList reasons = new ArrayList();
20: public int count = 0;
21:
22: public void initialize(String reasonSummary, ArrayList reasons) {
23: this .reasonSummary = reasonSummary;
24: this .reasons = reasons;
25: this .count = this .reasons.size();
26: }
27:
28: public String getCount() {
29: return Integer.toString(count);
30: }
31:
32: public String getReasonSummary() {
33: return reasonSummary;
34: }
35:
36: public String getReasons() {
37: StringBuffer sb = new StringBuffer();
38: for (int index = 0; index < count; index++) {
39: sb.append((String) reasons.get(index));
40: sb.append("<br>");
41: }
42: return sb.toString();
43: }
44:
45: }
|