this method cuts the current company , department or employee . concode_field_sep Company company concode_elem_sep Basic currentValue concode_field_sep void setName concode_elem_sep Company getCompany concode_elem_sep void setAddress concode_elem_sep Basic getCurrentValue concode_elem_sep String getTotal concode_elem_sep void setCurrentValue concode_elem_sep void setCompany concode_elem_sep void setSalary
void function ( ) { if ( currentValue != null ) { if ( currentValue . isCompany ( ) ) { Cut . cut ( ( Company ) currentValue ) ; } else if ( currentValue . isDepartment ( ) ) { Cut . cut ( ( Department ) currentValue ) ; } else if ( currentValue . isEmployee ( ) ) { Cut . cut ( ( Employee ) currentValue ) ; } } }