Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

datas
Class Reservation  view Reservation download Reservation.java

java.lang.Object
  extended bydatas.Reservation

public class Reservation
extends java.lang.Object

Class reservation


Field Summary
private  java.lang.String SEPARATOR
           
private  java.util.Vector theBorrowers
           
private  Title theTitle
           
 
Constructor Summary
Reservation(java.lang.String data)
          Method Reservation create a Reservation object.
Reservation(Title theTitle)
          Method Reservation create a Reservation object.
 
Method Summary
 boolean addNewBorrowerToReservation(Borrower borrower)
          Method addNewBorrowerToReservation add a new borrower to the reservation
 boolean deleteTheBorrowerFromReservation(Borrower borrower)
          Method deleteTheBorrowerFromReservation remove a borrower of a reservation.
 boolean equals(java.lang.Object o)
          Compares this Reservation to the specified object.
 java.util.Vector getTheBorrowers()
          Method getTheBorrowers return a vector of all the borrower
 Title getTitle()
          Method getTitle get the title of the reservation.
private  void parseData(java.lang.String data)
          Method parseData parse the data of a string.
 boolean setBorrower(Borrower oldBorrower, Borrower newBorrower)
          Method setBorrower change a borrower in a reservation
 boolean setTitle(Title theTitle)
          Method setTitle change the title of the reservation.
 java.lang.String toString()
          Return the reservation in the String format
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

private final java.lang.String SEPARATOR
See Also:
Constant Field Values

theTitle

private Title theTitle

theBorrowers

private java.util.Vector theBorrowers
Constructor Detail

Reservation

public Reservation(Title theTitle)
Method Reservation create a Reservation object.


Reservation

public Reservation(java.lang.String data)
            throws java.util.NoSuchElementException
Method Reservation create a Reservation object.

Method Detail

setTitle

public boolean setTitle(Title theTitle)
Method setTitle change the title of the reservation.


getTitle

public Title getTitle()
Method getTitle get the title of the reservation.


setBorrower

public boolean setBorrower(Borrower oldBorrower,
                           Borrower newBorrower)
Method setBorrower change a borrower in a reservation


addNewBorrowerToReservation

public boolean addNewBorrowerToReservation(Borrower borrower)
Method addNewBorrowerToReservation add a new borrower to the reservation


deleteTheBorrowerFromReservation

public boolean deleteTheBorrowerFromReservation(Borrower borrower)
Method deleteTheBorrowerFromReservation remove a borrower of a reservation.


getTheBorrowers

public java.util.Vector getTheBorrowers()
Method getTheBorrowers return a vector of all the borrower


equals

public boolean equals(java.lang.Object o)
Compares this Reservation to the specified object. The result is true if and only if the argument is not null and is a Reservation object that represents the same Reservation as this object.


toString

public java.lang.String toString()
Return the reservation in the String format


parseData

private void parseData(java.lang.String data)
                throws java.util.NoSuchElementException
Method parseData parse the data of a string.