All Packages Class Hierarchy This Package Previous Next Index
Class Container.Implementation
java.lang.Object
|
+----Container.Implementation
- public abstract class Implementation
- extends Object
- implements Serializable
DescriptionThis class is derived from Object class .This is basically a
super class for the ContainerList and ContainerArray.In our main program we
create an instance of ContainerList or ContainerArray and stores there reference
in the Implementation Class Varaible.All the function will be operated on it,
which calls the appropriate function of the class whose reference is stored in it
- Version:
- 1.0
- Author:
- Vicky Shiv
-
Implementation()
-
-
Append(Object)
- This is the default Append function which will append the new container in the
ListContainer.It will dynamically create an instance of the Container class
-
AppendImpl(Object)
- This function is called when we change the implementation at run time.
-
Member(String)
- This function tells that Employee with the "name" field is in the
ContianerList or not
-
PrintList()
- PrintList will print the Whole ContainerArray
-
readObject(ObjectInputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
-
SetSalary(String, String)
- SetSalary function set the Salary of the Employee (Searched by name ) by the
String passed as Salary
-
writeObject(ObjectOutputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
Implementation
public Implementation()
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
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
Append
public abstract void Append(Object Obj)
- This is the default Append function which will append the new container in the
ListContainer.It will dynamically create an instance of the Container class
- Parameters:
- Object - This is the reference of the Container to be added
Member
public abstract void Member(String name) throws EmployeePresentException, EmployeeNotPresentException
- This function tells that Employee with the "name" field is in the
ContianerList or not
- Parameters:
- String - the name which has to be match with the Employee "name"
- Throws: EmployeePresentException
- If Employee is Present with the same name
- Throws: EmployeeNotPresentException
- If Employee is not Present with the same name
AppendImpl
private abstract void AppendImpl(Object Obj)
- This function is called when we change the implementation at run time.
This will be called by the Constructor while changing the implementation at run time
- Parameters:
- Object - This is the reference of the Container to be added
SetSalary
public abstract void SetSalary(String name,
String salary) throws VolunteerSalaryException
- SetSalary function set the Salary of the Employee (Searched by name ) by the
String passed as Salary
- Parameters:
- String - The name of the Employee whose salary is to be changed
- String - The salary to be set as new salary
- Throws: VolunteerSalaryException
- throws this exception if the Employee is a volunter as you cannot set the salry of the Employee
PrintList
public abstract void PrintList() throws ListEmptyException
- PrintList will print the Whole ContainerArray
- Throws: ListEmptyException
- if the Array is Empty
All Packages Class Hierarchy This Package Previous Next Index