org.qsos.data
Class Sheet

java.lang.Object
  extended by org.qsos.data.Sheet
All Implemented Interfaces:
ISheet

public class Sheet
extends java.lang.Object
implements ISheet

A sheet is a class which represents an xml document. It contains an IElement which is the root of the xml document in the java modelisation.

It also contains a property id which is the id in data base and a name for clarity since we can find it in the IELements.

Author:
Arthur Clerfeuille

Constructor Summary
Sheet()
          Constructor which instanciate the name and the root element;
Sheet(IElement root)
          Constructor which instanciate the root element at the given value.
 
Method Summary
 long getId()
          Allow to get the id of the sheet.
 java.lang.String getName()
          Allow to get the name of the sheet.
 IElement getRoot()
          Allow to get the root element.
 void setId(long id)
          Allow to set the id.
 void setName(java.lang.String name)
          Allow to set the name of the sheet.
 void setRoot(IElement root)
          Allow to set the root element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sheet

public Sheet()
Constructor which instanciate the name and the root element;


Sheet

public Sheet(IElement root)
Constructor which instanciate the root element at the given value.

Parameters:
root - the root to set.
Method Detail

getRoot

public IElement getRoot()
Allow to get the root element.

Specified by:
getRoot in interface ISheet
Returns:
root the root element of the sheet.

setRoot

public void setRoot(IElement root)
Allow to set the root element

Specified by:
setRoot in interface ISheet
Parameters:
root - the root to set.

getId

public long getId()
Allow to get the id of the sheet.

Specified by:
getId in interface ISheet
Returns:
id a long which represents the id of the sheet.

setId

public void setId(long id)
Allow to set the id.

Specified by:
setId in interface ISheet
Parameters:
id - the id to set.

getName

public java.lang.String getName()
Allow to get the name of the sheet.

Specified by:
getName in interface ISheet
Returns:
name a string which represents the name of the sheet.

setName

public void setName(java.lang.String name)
Allow to set the name of the sheet.

Specified by:
setName in interface ISheet
Parameters:
name - a string which represents the name to set.