package myumltutorial;
import java.util.Collection;
import java.util.Iterator;
public class Company {
/*
* (non-javadoc)
*/
private LocationCompany locationcompany;
/**
* Getter of the property locationcompany
*
* @return Returns the locationcompany.
*
*/
public LocationCompany getLocationcompany()
{
return locationcompany;
}
/**
* Setter of the property locationcompany
*
* @param locationcompany The locationcompany to set.
*
*/
public void setLocationcompany(LocationCompany locationcompany ){
this.locationcompany = locationcompany;
}
/**
*
*/
private Collection employeeSalary;
/**
* Getter of the property employeeSalary
*
* @return Returns the employeeSalary.
*
*/
public Collection getEmployeeSalary()
{
return employeeSalary;
}
/**
* Returns an iterator over the elements in this collection.
*
* @return an Iterator over the elements in this collection
* @see java.util.Collection#iterator()
*
*/
public Iterator employeeSalaryIterator(){
return employeeSalary.iterator();
}
/**
* Returns true if this collection contains no elements.
*
* @return true if this collection contains no elements
* @see java.util.Collection#isEmpty()
*
*/
public boolean isEmployeeSalaryEmpty(){
return employeeSalary.isEmpty();
}
/**
* Returns true if this collection contains the specified element.
*
* @param element whose presence in this collection is to be tested.
* @see java.util.Collection#contains(Object)
*
*/
public boolean containsEmployeeSalary(EmployeeSalary employeeSalary){
return this.employeeSalary.contains(employeeSalary);
}
/**
* Returns true if this collection contains all of the elements
* in the specified collection.
*
* @param elements collection to be checked for containment in this collection.
* @see java.util.Collection#containsAll(Collection)
*
*/
public boolean containsAllEmployeeSalary(Collection employeeSalary){
return this.employeeSalary.containsAll(employeeSalary);
}
/**
* Returns the number of elements in this collection.
*
* @return the number of elements in this collection
* @see java.util.Collection#size()
*
*/
public int employeeSalarySize(){
return employeeSalary.size();
}
/**
* Returns all elements of this collection in an array.
*
* @return an array containing all of the elements in this collection
* @see java.util.Collection#toArray()
*
*/
public EmployeeSalary[] employeeSalaryToArray(){
return employeeSalary.toArray(new EmployeeSalary[employeeSalary.size()]);
}
/**
* Ensures that this collection contains the specified element (optional
* operation).
*
* @param element whose presence in this collection is to be ensured.
* @see java.util.Collection#add(Object)
*
*/
public boolean addEmployeeSalary(EmployeeSalary employeeSalary){
return this.employeeSalary.add(employeeSalary);
}
/**
* Setter of the property employeeSalary
*
* @param employeeSalary the employeeSalary to set.
*
*/
public void setEmployeeSalary(Collection employeeSalary){
this.employeeSalary = employeeSalary;
}
/**
* Removes a single instance of the specified element from this
* collection, if it is present (optional operation).
*
* @param element to be removed from this collection, if present.
* @see java.util.Collection#add(Object)
*
*/
public boolean removeEmployeeSalary(EmployeeSalary employeeSalary){
return this.employeeSalary.remove(employeeSalary);
}
/**
* Removes all of the elements from this collection (optional operation).
*
* @see java.util.Collection#clear()
*
*/
public void clearEmployeeSalary(){
this.employeeSalary.clear();
}
/**
*
*/
private Collection contractorHourly;
/**
* Getter of the property contractorHourly
*
* @return Returns the contractorHourly.
*
*/
public Collection getContractorHourly()
{
return contractorHourly;
}
/**
* Returns an iterator over the elements in this collection.
*
* @return an Iterator over the elements in this collection
* @see java.util.Collection#iterator()
*
*/
public Iterator contractorHourlyIterator(){
return contractorHourly.iterator();
}
/**
* Returns true if this collection contains no elements.
*
* @return true if this collection contains no elements
* @see java.util.Collection#isEmpty()
*
*/
public boolean isContractorHourlyEmpty(){
return contractorHourly.isEmpty();
}
/**
* Returns true if this collection contains the specified element.
*
* @param element whose presence in this collection is to be tested.
* @see java.util.Collection#contains(Object)
*
*/
public boolean containsContractorHourly(ContractorHourly contractorHourly){
return this.contractorHourly.contains(contractorHourly);
}
/**
* Returns true if this collection contains all of the elements
* in the specified collection.
*
* @param elements collection to be checked for containment in this collection.
* @see java.util.Collection#containsAll(Collection)
*
*/
public boolean containsAllContractorHourly(Collection contractorHourly){
return this.contractorHourly.containsAll(contractorHourly);
}
/**
* Returns the number of elements in this collection.
*
* @return the number of elements in this collection
* @see java.util.Collection#size()
*
*/
public int contractorHourlySize(){
return contractorHourly.size();
}
/**
* Returns all elements of this collection in an array.
*
* @return an array containing all of the elements in this collection
* @see java.util.Collection#toArray()
*
*/
public ContractorHourly[] contractorHourlyToArray(){
return contractorHourly.toArray(new ContractorHourly[contractorHourly.size()]);
}
/**
* Ensures that this collection contains the specified element (optional
* operation).
*
* @param element whose presence in this collection is to be ensured.
* @see java.util.Collection#add(Object)
*
*/
public boolean addContractorHourly(ContractorHourly contractorHourly){
return this.contractorHourly.add(contractorHourly);
}
/**
* Setter of the property contractorHourly
*
* @param contractorHourly the contractorHourly to set.
*
*/
public void setContractorHourly(Collection contractorHourly){
this.contractorHourly = contractorHourly;
}
/**
* Removes a single instance of the specified element from this
* collection, if it is present (optional operation).
*
* @param element to be removed from this collection, if present.
* @see java.util.Collection#add(Object)
*
*/
public boolean removeContractorHourly(ContractorHourly contractorHourly){
return this.contractorHourly.remove(contractorHourly);
}
/**
* Removes all of the elements from this collection (optional operation).
*
* @see java.util.Collection#clear()
*
*/
public void clearContractorHourly(){
this.contractorHourly.clear();
}
/*
* (non-javadoc)
*/
private String name;
/**
* Getter of the property name
*
* @return Returns the name.
*
*/
public String getName()
{
return name;
}
/**
* Setter of the property name
*
* @param name The name to set.
*
*/
public void setName(String name ){
this.name = name;
}
}
///**
// * Setter of the property locationCompany
// *
// * @param locationCompany The locationCompany to set.
// *
// */
//public void setLocationCompany(LocationCompany locationCompany ){
// this.locationCompany = locationCompany;
//}
///**
// * Getter of the property locationCompany
// *
// * @return Returns the locationCompany.
// *
// */
//public LocationCompany getLocationCompany()
//{
// return locationCompany;
//}
///**
// * Setter of the property locationcompany
// *
// * @param locationcompany The locationcompany to set.
// *
// */
//public void setLocationcompany(LocationCompany locationcompany ){
// this.locationcompany = locationcompany;
//}
///**
// * Getter of the property locationcompany
// *
// * @return Returns the locationcompany.
// *
// */
//public LocationCompany getLocationcompany()
//{
// return locationcompany;
//}