All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Container.PermanentEmployeeContainer

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

public class PermanentEmployeeContainer
extends Container
implements Serializable
DescriptionThis class is derived from Container class .This is Container
for the PeermanentEmployee 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 PermanentEmployee Reference

Constructor Index

 o PermanentEmployeeContainer()
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 PermanentEmployee value
private variable to hold the PermanentEmployee Reference

Constructors

 o PermanentEmployeeContainer
 public PermanentEmployeeContainer()
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 s) 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