org.jasig.schedassist.model
Class Relationship

java.lang.Object
  extended by org.jasig.schedassist.model.Relationship
All Implemented Interfaces:
Serializable

public class Relationship
extends Object
implements Serializable

Bean to represent an association between an IScheduleOwner and an IScheduleVisitor along with a description.

Version:
$Id: Relationship.java 2335 2010-08-06 19:16:06Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu
See Also:
Serialized Form

Constructor Summary
Relationship()
           
 
Method Summary
 boolean equals(Object object)
          This implementation ignores the "description" field.
 boolean equalsIncludeDescription(Object object)
          Non-standard equals method includes the description field.
 String getDescription()
           
 IScheduleOwner getOwner()
           
 IScheduleVisitor getVisitor()
           
 int hashCode()
          Implementation ignores the "description" field.
 void setDescription(String description)
           
 void setOwner(IScheduleOwner owner)
           
 void setVisitor(IScheduleVisitor visitor)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship()
Method Detail

getOwner

public IScheduleOwner getOwner()
Returns:
the owner

setOwner

public void setOwner(IScheduleOwner owner)
Parameters:
owner - the owner to set

getVisitor

public IScheduleVisitor getVisitor()
Returns:
the visitor

setVisitor

public void setVisitor(IScheduleVisitor visitor)
Parameters:
visitor - the visitor to set

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object object)
This implementation ignores the "description" field.

Overrides:
equals in class Object
See Also:
Object.equals(Object)

equalsIncludeDescription

public boolean equalsIncludeDescription(Object object)
Non-standard equals method includes the description field.

See Also:
Object.equals(Object)

hashCode

public int hashCode()
Implementation ignores the "description" field.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2012 Jasig. All Rights Reserved.