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 SchemaBean {
17:
18: public String name = "";
19: public String description = "";
20: public String aliases = "";
21: public boolean editable = false;
22: public boolean indexable = false;
23: public String scoreMultiplier = "";
24: public String dataType = "";
25:
26: public void initialize(String name, Properties p) {
27: this .name = name;
28: description = p.getProperty("description");
29: aliases = p.getProperty("aliases");
30: editable = (p.getProperty("editable").equals("true")) ? true
31: : false;
32: indexable = (p.getProperty("indexable").equals("true")) ? true
33: : false;
34: scoreMultiplier = p.getProperty("score-multiplier");
35: dataType = p.getProperty("datatype");
36: }
37:
38: public String getName() {
39: return name;
40: }
41:
42: public void setName(String name) {
43: this .name = name;
44: }
45:
46: public String getDescription() {
47: return description;
48: }
49:
50: public void setDescription(String description) {
51: this .description = description;
52: }
53:
54: public String getAliases() {
55: return aliases;
56: }
57:
58: public void setAliases(String aliases) {
59: this .aliases = aliases;
60: }
61:
62: public boolean getEditable() {
63: return editable;
64: }
65:
66: public void setEditable(boolean editable) {
67: this .editable = editable;
68: }
69:
70: public boolean getIndexable() {
71: return indexable;
72: }
73:
74: public void setIndexable(boolean indexable) {
75: this .indexable = indexable;
76: }
77:
78: public String getScoreMultiplier() {
79: return scoreMultiplier;
80: }
81:
82: public void setScoreMultiplier(String scoreMultiplier) {
83: this .scoreMultiplier = scoreMultiplier;
84: }
85:
86: public String getDataType() {
87: return dataType;
88: }
89:
90: public void setDataType(String dataType) {
91: this.dataType = dataType;
92: }
93:
94: }
|