All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Container.ContractEmployeeContainer

java.lang.Object
   |
   +----Container.Container
           |
           +----Container.ContractEmployeeContainer

public class ContractEmployeeContainer
extends Container
implements Serializable
DescriptionThis class is derived from Container class .This is Container
for the ContractEmployee Which stores the Refernce Of it in the private varible 
"value" 

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o value
private variable to hold the ContractEmployee Reference

Constructor Index

 o ContractEmployeeContainer()
default Constructor

Method Index

 o GetName()
It will return the "name" field of the Container
 o GetValue()
It will return the Reference Stored in the Container
 o readObject(ObjectInputStream)
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream
 o SetSalary(String)
It will Set the Salary/Wage of the Container
 o SetValue(Object)
It will Set the Container to the value passed as Object
 o writeObject(ObjectOutputStream)
These are the default function to be include to Implement Serialization This will call the DefalutWriteObject function for the ObjectOutputStream

Variables

 o value
 private ContractEmployee value
private variable to hold the ContractEmployee Reference

Constructors

 o ContractEmployeeContainer
 public ContractEmployeeContainer()
default Constructor

Methods

 o readObject
 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream

Overrides:
readObject in class Container
 o writeObject
 private void writeObject(ObjectOutputStream out) throws IOException
These are the default function to be include to Implement Serialization This will call the DefalutWriteObject function for the ObjectOutputStream

Overrides:
writeObject in class Container
 o GetValue
 public Object GetValue()
It will return the Reference Stored in the Container

Returns:
Object (Return the reference stored in the container)
Overrides:
GetValue in class Container
 o SetValue
 public Object SetValue(Object value)
It will Set the Container to the value passed as Object

Parameters:
Object - Reference to be Set to the Container value
Returns:
Object (Reference of the container)
Overrides:
SetValue in class Container
 o GetName
 public String GetName()
It will return the "name" field of the Container

Returns:
String (The name field associated with the derieved Class)
Overrides:
GetName in class Container
 o SetSalary
 public void SetSalary(String w) throws VolunteerSalaryException
It will Set the Salary/Wage of the Container

Parameters:
String - to be set as the salary/wage
Throws: VolunteerSalaryException
It will throws this exception if you want to set the salary of the Volunteer
Overrides:
SetSalary in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1