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

Quick Search    Search Deep

datas
Class Item  view Item download Item.java

java.lang.Object
  extended bydatas.Item

public class Item
extends java.lang.Object

Class Item


Field Summary
private  boolean borrowed
           
private  int itemId
           
private static int lastItemId
           
private  java.lang.String SEPARATEUR
           
private  Title theTitle
           
 
Constructor Summary
Item(java.lang.String data)
          Method Item construct an item.
Item(Title theTitle)
          Method Item create an item of a title.
 
Method Summary
 void becomeBorrowed(boolean borrowed)
          Method becomeBorrowed set if the item is borrowed.
 boolean equals(java.lang.Object o)
          Compares this Item to the specified object.
 int getItemId()
          Method getItemId get the id of the item.
 Title getTitle()
          Method getTitle get the title of the item.
 boolean isBorrowed()
          Method isBorrowed the item is borrowed or not.
private  void parseData(java.lang.String data)
          Method parseData.
 void setItemId(int itemId)
          Method setItemId modify the itemId.
 boolean setTitle(Title title)
          Method setTitle modify the title of an item.
 java.lang.String toString()
          Put the item data in a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATEUR

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

lastItemId

private static int lastItemId

itemId

private int itemId

theTitle

private Title theTitle

borrowed

private boolean borrowed
Constructor Detail

Item

public Item(java.lang.String data)
     throws java.util.NoSuchElementException
Method Item construct an item.


Item

public Item(Title theTitle)
Method Item create an item of a title.

Method Detail

getItemId

public int getItemId()
Method getItemId get the id of the item.


getTitle

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


isBorrowed

public boolean isBorrowed()
Method isBorrowed the item is borrowed or not.


setItemId

public void setItemId(int itemId)
Method setItemId modify the itemId.


setTitle

public boolean setTitle(Title title)
Method setTitle modify the title of an item.


becomeBorrowed

public void becomeBorrowed(boolean borrowed)
Method becomeBorrowed set if the item is borrowed.


toString

public java.lang.String toString()
Put the item data in a string


equals

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


parseData

private void parseData(java.lang.String data)
                throws java.util.NoSuchElementException
Method parseData.