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: public class ResourceDescriptionBean {
15:
16: public String url = "";
17: public String title = "";
18:
19: public void initialize(String url, String title) {
20: this .url = url;
21: this .title = title;
22: }
23:
24: public String getUrl() {
25: return url;
26: }
27:
28: public void setUrl(String url) {
29: this .url = url;
30: }
31:
32: public String getTitle() {
33: return title;
34: }
35:
36: public void setTitle(String title) {
37: this .title = title;
38: }
39:
40: public boolean getIsRelativeURL() {
41: if (url.startsWith("http://")) {
42: return false;
43: } else {
44: return true;
45: }
46: }
47:
48: }
|