001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/wizard/api/src/java/org/theospi/portfolio/wizard/model/WizardPageSequence.java $
003: * $Id: WizardPageSequence.java 9134 2006-05-08 20:28:42Z 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.wizard.model;
021:
022: import org.sakaiproject.metaobj.shared.model.IdentifiableObject;
023: import org.theospi.portfolio.matrix.model.WizardPageDefinition;
024:
025: /**
026: * Created by IntelliJ IDEA.
027: * User: John Ellis
028: * Date: Jan 12, 2006
029: * Time: 4:38:47 PM
030: * To change this template use File | Settings | File Templates.
031: */
032: public class WizardPageSequence extends IdentifiableObject {
033:
034: private WizardPageDefinition wizardPageDefinition;
035: private int sequence;
036: private WizardCategory category;
037: private String title = null;
038:
039: public boolean equals(Object in) {
040: if (this == in) {
041: return true;
042: }
043: if (in == null && this == null) {
044: return true;
045: }
046: if (in == null && this != null) {
047: return false;
048: }
049: if (this == null && in != null) {
050: return false;
051: }
052: if (!this .getClass().isAssignableFrom(in.getClass())) {
053: return false;
054: }
055: if (this .getId() == null
056: && ((IdentifiableObject) in).getId() == null) {
057: return false;
058: }
059: if (this .getId() == null
060: || ((IdentifiableObject) in).getId() == null) {
061: return false;
062: }
063: return this .getId().equals(((IdentifiableObject) in).getId());
064: }
065:
066: public WizardPageSequence() {
067:
068: }
069:
070: public WizardPageSequence(WizardPageDefinition wizardPageDefinition) {
071: this .wizardPageDefinition = wizardPageDefinition;
072: }
073:
074: public WizardPageDefinition getWizardPageDefinition() {
075: return wizardPageDefinition;
076: }
077:
078: public void setWizardPageDefinition(
079: WizardPageDefinition wizardPageDefinition) {
080: this .wizardPageDefinition = wizardPageDefinition;
081: }
082:
083: public int getSequence() {
084: return sequence;
085: }
086:
087: public void setSequence(int sequence) {
088: this .sequence = sequence;
089: }
090:
091: public WizardCategory getCategory() {
092: return category;
093: }
094:
095: public void setCategory(WizardCategory category) {
096: this .category = category;
097: }
098:
099: public String getTitle() {
100: return title;
101: }
102:
103: public void setTitle(String title) {
104: this.title = title;
105: }
106: }
|