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
-
value
- private variable to hold the PermanentEmployee Reference
-
PermanentEmployeeContainer()
- default Constructor
-
GetName()
- It will return the "name" field of the Container
-
GetValue()
- It will return the Reference Stored in the Container
-
readObject(ObjectInputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
-
SetSalary(String)
- It will Set the Salary/Wage of the Container
-
SetValue(Object)
- It will Set the Container to the value passed as Object
-
writeObject(ObjectOutputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
value
private PermanentEmployee value
- private variable to hold the PermanentEmployee Reference
PermanentEmployeeContainer
public PermanentEmployeeContainer()
- default Constructor
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
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
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
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
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
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