Methods Summary |
---|
public void | addAddress(Address vAddress)
if (!(_addressList.size() < 2)) {
throw new IndexOutOfBoundsException();
}
_addressList.addElement(vAddress);
|
public void | addAddress(int index, Address vAddress)
if (!(_addressList.size() < 2)) {
throw new IndexOutOfBoundsException();
}
_addressList.insertElementAt(vAddress, index);
|
public void | deleteId()
this._has_id= false;
|
public java.util.Enumeration | enumerateAddress()
return _addressList.elements();
|
public Address | getAddress(int index)
//-- check bounds for index
if ((index < 0) || (index > _addressList.size())) {
throw new IndexOutOfBoundsException();
}
return (Address) _addressList.elementAt(index);
|
public Address[] | getAddress()
int size = _addressList.size();
Address[] mArray = new Address[size];
for (int index = 0; index < size; index++) {
mArray[index] = (Address) _addressList.elementAt(index);
}
return mArray;
|
public int | getAddressCount()
return _addressList.size();
|
public int | getId()
return this._id;
|
public java.lang.String | getName()
return this._name;
|
public Office | getOffice()
return this._office;
|
public Organization | getOrganization()
return this._organization;
|
public boolean | hasId()
return this._has_id;
|
public boolean | isValid()
try {
validate();
}
catch (org.exolab.castor.xml.ValidationException vex) {
return false;
}
return true;
|
public void | marshal(java.io.Writer out)
Marshaller.marshal(this, out);
|
public void | marshal(org.xml.sax.DocumentHandler handler)
Marshaller.marshal(this, handler);
|
public Address | removeAddress(int index)
Object obj = _addressList.elementAt(index);
_addressList.removeElementAt(index);
return (Address) obj;
|
public void | removeAllAddress()
_addressList.removeAllElements();
|
public void | setAddress(int index, Address vAddress)
//-- check bounds for index
if ((index < 0) || (index > _addressList.size())) {
throw new IndexOutOfBoundsException();
}
if (!(index < 2)) {
throw new IndexOutOfBoundsException();
}
_addressList.setElementAt(vAddress, index);
|
public void | setAddress(Address[] addressArray)
//-- copy array
_addressList.removeAllElements();
for (int i = 0; i < addressArray.length; i++) {
_addressList.addElement(addressArray[i]);
}
|
public void | setId(int id)
this._id = id;
this._has_id = true;
|
public void | setName(java.lang.String name)
this._name = name;
|
public void | setOffice(Office office)
this._office = office;
|
public void | setOrganization(Organization organization)
this._organization = organization;
|
public static javajaxb.generated.hr.Employee | unmarshal(java.io.Reader reader)
return (javajaxb.generated.hr.Employee) Unmarshaller.unmarshal(javajaxb.generated.hr.Employee.class, reader);
|
public void | validate()
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
validator.validate(this);
|