pl.mn.communicator
Class AbstractStatus

java.lang.Object
  extended by pl.mn.communicator.AbstractStatus
All Implemented Interfaces:
IStatus
Direct Known Subclasses:
LocalStatus, RemoteStatus

public abstract class AbstractStatus
extends java.lang.Object
implements IStatus

The abstact status implementation that is common for LocalStatus and RemoteStatus.

Created on 2004-12-21

Version:
$Id: AbstractStatus.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Constructor Summary
protected AbstractStatus(StatusType statusType)
           
protected AbstractStatus(StatusType statusType, java.lang.String description)
           
protected AbstractStatus(StatusType statusType, java.lang.String description, java.util.Date returnDate)
           
 
Method Summary
 java.lang.String getDescription()
          Returns the description.
 java.util.Date getReturnDate()
          Get the return date.
 StatusType getStatusType()
          Get the StatusType.
 boolean isDescriptionSet()
          Tells if the description has been set on this status.
 boolean isReturnDateSet()
          Tells if the return date has been set on this status instance.
 void setDescription(java.lang.String description)
           
 void setReturnDate(java.util.Date returnTime)
           
 void setStatusType(StatusType status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStatus

protected AbstractStatus(StatusType statusType,
                         java.lang.String description,
                         java.util.Date returnDate)

AbstractStatus

protected AbstractStatus(StatusType statusType,
                         java.lang.String description)

AbstractStatus

protected AbstractStatus(StatusType statusType)
Method Detail

getStatusType

public StatusType getStatusType()
Description copied from interface: IStatus
Get the StatusType.

Specified by:
getStatusType in interface IStatus
Returns:
StatusType
See Also:
IStatus.getStatusType()

setStatusType

public void setStatusType(StatusType status)
Specified by:
setStatusType in interface IStatus

getDescription

public java.lang.String getDescription()
Returns the description.

Specified by:
getDescription in interface IStatus
Returns:
String description as string.

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface IStatus
Parameters:
description - the description to set.

getReturnDate

public java.util.Date getReturnDate()
Description copied from interface: IStatus
Get the return date.

Specified by:
getReturnDate in interface IStatus
Returns:
Date the return time.

setReturnDate

public void setReturnDate(java.util.Date returnTime)
Specified by:
setReturnDate in interface IStatus
Parameters:
returnTime - The return time to set.

isDescriptionSet

public boolean isDescriptionSet()
Description copied from interface: IStatus
Tells if the description has been set on this status.

Specified by:
isDescriptionSet in interface IStatus
Returns:
true if the description has been set, false otherwise.
See Also:
IStatus.isDescriptionSet()

isReturnDateSet

public boolean isReturnDateSet()
Description copied from interface: IStatus
Tells if the return date has been set on this status instance.

Specified by:
isReturnDateSet in interface IStatus
Returns:
true if the return date has been set, false otherwise.
See Also:
IStatus.isReturnDateSet()


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.