001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/matrix/api/src/java/org/theospi/portfolio/matrix/model/AbstractLabel.java $
003: * $Id: AbstractLabel.java 22527 2007-03-13 13:45:54Z chmaurer@iupui.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.theospi.portfolio.matrix.model;
021:
022: import java.io.Serializable;
023:
024: import org.sakaiproject.metaobj.shared.model.Id;
025: import org.sakaiproject.metaobj.shared.model.IdentifiableObject;
026:
027: /**
028: * @author apple
029: */
030: public abstract class AbstractLabel extends IdentifiableObject
031: implements Serializable, Label {
032: Id id;
033: String description;
034: String color;
035: String textColor;
036: private int sequenceNumber = 0;
037: private Scaffolding scaffolding;
038:
039: /**
040: * @return Returns the description.
041: */
042: public String getDescription() {
043: return description;
044: }
045:
046: /**
047: * @param description The description to set.
048: */
049: public void setDescription(String description) {
050: this .description = description;
051: }
052:
053: /**
054: * @return Returns the id.
055: */
056: public Id getId() {
057: return id;
058: }
059:
060: /**
061: * @param id The id to set.
062: */
063: public void setId(Id id) {
064: this .id = id;
065: }
066:
067: public String getColor() {
068: return color;
069: }
070:
071: public void setColor(String color) {
072: this .color = color;
073: }
074:
075: public String getTextColor() {
076: return textColor;
077: }
078:
079: public void setTextColor(String textColor) {
080: this .textColor = textColor;
081: }
082:
083: /**
084: * This property is unused except for in the data warehouse.
085: * it does NOT contain the sequence number of label. To access that property
086: * it is implicit in the list containing this instance.
087: * @return int
088: */
089: public int getSequenceNumber() {
090: return sequenceNumber;
091: }
092:
093: /**
094: * Only the datawarehouse is using this right now
095: * @param sequenceNumber int
096: */
097: public void setSequenceNumber(int sequenceNumber) {
098: this .sequenceNumber = sequenceNumber;
099: }
100:
101: /**
102: * This property is unused except for in the data warehouse.
103: * @return int
104: */
105: public Scaffolding getScaffolding() {
106: return scaffolding;
107: }
108:
109: /**
110: * Only the datawarehouse is using this right now
111: * @param sequenceNumber int
112: */
113: public void setScaffolding(Scaffolding scaffolding) {
114: this .scaffolding = scaffolding;
115: }
116:
117: public String toString() {
118: return "<(" + this .getClass().getName() + ") "
119: + this .getDescription() + " [" + this .getId() + "]>";
120: }
121: }
|