001: /*
002: * Copyright 2006 Dan Shellman
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.iscreen.impl.xml;
017:
018: /**
019: * A label represents the "name" of a particular validator. This label can
020: * be used to identify the particular validator. The validator may or
021: * may not be associated with a particular validation set.
022: *
023: * @author Shellman, Dan
024: */
025: public class XmlConfigLabel {
026: private String resourceId;
027: private String resourceKey;
028: private String value;
029: private String id;
030:
031: /**
032: * Default constructor.
033: */
034: public XmlConfigLabel() {
035: } //end XmlConfigLabel()
036:
037: /**
038: * Sets the resource id.
039: *
040: * @param id The resource id.
041: */
042: public void setResourceId(String id) {
043: resourceId = id;
044: } //end setResourceId()
045:
046: /**
047: * Retrieves the resource id.
048: *
049: * @return Returns the resource id.
050: */
051: public String getResourceId() {
052: return resourceId;
053: } //end getResourceId()
054:
055: /**
056: * Sets the resource key.
057: *
058: * @param key The resource key.
059: */
060: public void setResourceKey(String key) {
061: resourceKey = key;
062: } //end setResourceKey()
063:
064: /**
065: * Retrieves the resource key.
066: *
067: * @return Returns the resource key.
068: */
069: public String getResourceKey() {
070: return resourceKey;
071: } //end getResourceKey()
072:
073: /**
074: * Sets the value of the label.
075: *
076: * @param theValue The value of the label.
077: */
078: public void setValue(String theValue) {
079: value = theValue;
080: } //end setValue()
081:
082: /**
083: * Retrieves the value of the label.
084: *
085: * @return Returns the value of the label.
086: */
087: public String getValue() {
088: return value;
089: } //end getValue()
090:
091: /**
092: * Sets the id of the label.
093: *
094: * @param theId The id of the label.
095: */
096: public void setId(String theId) {
097: id = theId;
098: } //end setId()
099:
100: /**
101: * Retrieves the id of the label.
102: *
103: * @return Returns the label's id.
104: */
105: public String getId() {
106: return id;
107: } //end getId()
108: } //end XmlConfigLabel
|