001: /******************************************************************************
002: * JBoss, a division of Red Hat *
003: * Copyright 2006, Red Hat Middleware, LLC, and individual *
004: * contributors as indicated by the @authors tag. See the *
005: * copyright.txt in the distribution for a full listing of *
006: * individual contributors. *
007: * *
008: * This is free software; you can redistribute it and/or modify it *
009: * under the terms of the GNU Lesser General Public License as *
010: * published by the Free Software Foundation; either version 2.1 of *
011: * the License, or (at your option) any later version. *
012: * *
013: * This software is distributed in the hope that it will be useful, *
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
016: * Lesser General Public License for more details. *
017: * *
018: * You should have received a copy of the GNU Lesser General Public *
019: * License along with this software; if not, write to the Free *
020: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
021: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
022: ******************************************************************************/package org.jboss.portal.core.admin.ui;
023:
024: import org.jboss.portal.common.i18n.LocalizedString;
025:
026: /**
027: * @author <a href="mailto:theute@jboss.org">Thomas Heute</a>
028: * @version $Revision: 8785 $
029: */
030: public class PropertyInfo {
031:
032: /** . */
033: public static final int PUBLIC_SCOPE = 0;
034:
035: /** . */
036: public static final int PRIVATE_SCOPE = 1;
037:
038: /** . */
039: public static final int EXPERIMENTAL_SCOPE = 2;
040:
041: /** . */
042: public static final int READ_ONLY_ACCESS_MODE = 0;
043:
044: /** . */
045: public static final int READ_WRITE_ACCESS_MODE = 1;
046:
047: /** . */
048: private final String name;
049:
050: /** . */
051: private final int accessMode;
052:
053: /** . */
054: private final String type;
055:
056: /** . */
057: private final LocalizedString displayName;
058:
059: /** . */
060: private final LocalizedString description;
061:
062: /** . */
063: private final int scope;
064:
065: public PropertyInfo(String name, LocalizedString displayName,
066: LocalizedString description, String type, int accessMode,
067: int scope) {
068: this .name = name;
069: this .accessMode = accessMode;
070: this .displayName = displayName;
071: this .description = description;
072: this .type = type;
073: this .scope = scope;
074: }
075:
076: public LocalizedString getDisplayName() {
077: return displayName;
078: }
079:
080: public LocalizedString getDescription() {
081: return description;
082: }
083:
084: public String getName() {
085: return name;
086: }
087:
088: public int getAccessMode() {
089: return accessMode;
090: }
091:
092: public String getType() {
093: return type;
094: }
095:
096: public int getScope() {
097: return scope;
098: }
099:
100: public String toString() {
101: return "PropertyInfo[" + name + "]";
102: }
103: }
|