FileDocCategorySizeDatePackage
Employees.javaAPI DocExample5663Thu Mar 07 09:58:26 GMT 2002javajaxb.generated.hr

Employees

public class Employees extends Object implements Serializable
version
$Revision$ $Date$

Fields Summary
private Vector
_employeeList
Employee representation
Constructors Summary
public Employees()

        super();
        _employeeList = new Vector();
    
Methods Summary
public voidaddEmployee(Employee vEmployee)

param
vEmployee

        _employeeList.addElement(vEmployee);
    
public voidaddEmployee(int index, Employee vEmployee)

param
index
param
vEmployee

        _employeeList.insertElementAt(vEmployee, index);
    
public java.util.EnumerationenumerateEmployee()

        return _employeeList.elements();
    
public EmployeegetEmployee(int index)

param
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 intgetEmployeeCount()

        return _employeeList.size();
    
public booleanisValid()

        try {
            validate();
        }
        catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    
public voidmarshal(org.xml.sax.DocumentHandler handler)

param
handler

        
        Marshaller.marshal(this, handler);
    
public voidmarshal(java.io.Writer out)

param
out

        
        Marshaller.marshal(this, out);
    
public voidremoveAllEmployee()

        _employeeList.removeAllElements();
    
public EmployeeremoveEmployee(int index)

param
index

        Object obj = _employeeList.elementAt(index);
        _employeeList.removeElementAt(index);
        return (Employee) obj;
    
public voidsetEmployee(int index, Employee vEmployee)

param
index
param
vEmployee

        //-- check bounds for index
        if ((index < 0) || (index > _employeeList.size())) {
            throw new IndexOutOfBoundsException();
        }
        _employeeList.setElementAt(vEmployee, index);
    
public voidsetEmployee(Employee[] employeeArray)

param
employeeArray

        //-- copy array
        _employeeList.removeAllElements();
        for (int i = 0; i < employeeArray.length; i++) {
            _employeeList.addElement(employeeArray[i]);
        }
    
public static javajaxb.generated.hr.Employeesunmarshal(java.io.Reader reader)

param
reader

        return (javajaxb.generated.hr.Employees) Unmarshaller.unmarshal(javajaxb.generated.hr.Employees.class, reader);
    
public voidvalidate()

        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);