Methods Summary |
---|
public void | addEmployee(Employee vEmployee)
_employeeList.addElement(vEmployee);
|
public void | addEmployee(int index, Employee vEmployee)
_employeeList.insertElementAt(vEmployee, index);
|
public java.util.Enumeration | enumerateEmployee()
return _employeeList.elements();
|
public Employee | getEmployee(int index)
//-- check bounds for index
if ((index < 0) || (index > _employeeList.size())) {
throw new IndexOutOfBoundsException();
}
return (Employee) _employeeList.elementAt(index);
|
public Employee[] | getEmployee()
int size = _employeeList.size();
Employee[] mArray = new Employee[size];
for (int index = 0; index < size; index++) {
mArray[index] = (Employee) _employeeList.elementAt(index);
}
return mArray;
|
public int | getEmployeeCount()
return _employeeList.size();
|
public boolean | isValid()
try {
validate();
}
catch (org.exolab.castor.xml.ValidationException vex) {
return false;
}
return true;
|
public void | marshal(org.xml.sax.DocumentHandler handler)
Marshaller.marshal(this, handler);
|
public void | marshal(java.io.Writer out)
Marshaller.marshal(this, out);
|
public void | removeAllEmployee()
_employeeList.removeAllElements();
|
public Employee | removeEmployee(int index)
Object obj = _employeeList.elementAt(index);
_employeeList.removeElementAt(index);
return (Employee) obj;
|
public void | setEmployee(int index, Employee vEmployee)
//-- check bounds for index
if ((index < 0) || (index > _employeeList.size())) {
throw new IndexOutOfBoundsException();
}
_employeeList.setElementAt(vEmployee, index);
|
public void | setEmployee(Employee[] employeeArray)
//-- copy array
_employeeList.removeAllElements();
for (int i = 0; i < employeeArray.length; i++) {
_employeeList.addElement(employeeArray[i]);
}
|
public static javajaxb.generated.hr.Employees | unmarshal(java.io.Reader reader)
return (javajaxb.generated.hr.Employees) Unmarshaller.unmarshal(javajaxb.generated.hr.Employees.class, reader);
|
public void | validate()
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
validator.validate(this);
|