Package com.holidaywebservice.holidayservice_v2

Examples of com.holidaywebservice.holidayservice_v2.GetHolidaysForDateRange


     * @exception   displays an error box containing the exception error message
     */
    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
       
        try {
            ArrayOfCountryCode countries = new ArrayOfCountryCode();
            countries = getCountriesAvailable();
       
            int listSize = countries.getCountryCode().size();
       
            System.out.println("Country codes: ");
       
            for (int i = 0; i < listSize; i++) {
                System.out.println(countries.getCountryCode().get(i).getCode());
            }
         
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Exception: " + e
                , "ERROR", JOptionPane.ERROR_MESSAGE);
View Full Code Here


           
            GregorianCalendar eD = new GregorianCalendar();
            eD.setTime(endDate);
            XMLGregorianCalendar endGC = DatatypeFactory.newInstance().newXMLGregorianCalendar(eD);
           
            ArrayOfHoliday holidayRange = getHolidaysForDateRange(coCode, startGC, endGC);
            int rangeSize = holidayRange.getHoliday().size();
       
            System.out.println("Holidays for " + coCode + ", " + startGC + " to " + endGC + ":");
           
            for (int i = 0; i < rangeSize; i++) {
                      
                System.out.println(holidayRange.getHoliday().get(i).getHolidayCode());
                System.out.println(holidayRange.getHoliday().get(i).getDescriptor());
                System.out.println(holidayRange.getHoliday().get(i).getHolidayType());
                System.out.println(holidayRange.getHoliday().get(i).getDateType());
                System.out.println(holidayRange.getHoliday().get(i).getBankHoliday());
                System.out.println(holidayRange.getHoliday().get(i).getDate());
                System.out.println(holidayRange.getHoliday().get(i).getRelatedHolidayCode());
                System.out.println(holidayRange.getHoliday().get(i).getApplicableRegions());
                System.out.println();
            }
           
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Exception: " + e
View Full Code Here

       
        try {
            Country cCode = Country.fromValue(jTextField8.getText());
            holidayYear = Integer.parseInt(jTextField9.getText());
       
            ArrayOfHoliday holidays = getHolidaysForYear(cCode, holidayYear);
            int holidaySize = holidays.getHoliday().size();
       
            System.out.println("The Holiday dates for " + cCode + ":" + holidayYear + " are: ");
       
            for (int i = 0; i < holidaySize; i++) {
           
                System.out.println(holidays.getHoliday().get(i).getHolidayCode());
                System.out.println(holidays.getHoliday().get(i).getDescriptor());
                System.out.println(holidays.getHoliday().get(i).getHolidayType());
                System.out.println(holidays.getHoliday().get(i).getDateType());
                System.out.println(holidays.getHoliday().get(i).getBankHoliday());
                System.out.println(holidays.getHoliday().get(i).getDate());
                System.out.println(holidays.getHoliday().get(i).getRelatedHolidayCode());
                System.out.println(holidays.getHoliday().get(i).getApplicableRegions());
                System.out.println();
            }
           
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Exception: " + e
View Full Code Here

        try {
            Country cCode = Country.fromValue(jTextField10.getText());
            holiYear = Integer.parseInt(jTextField11.getText());
            holiMonth = Integer.parseInt(jTextField12.getText());
       
            ArrayOfHoliday holidayByMonth = getHolidaysForMonth(cCode, holiYear, holiMonth);
            int holiSize = holidayByMonth.getHoliday().size();
       
            System.out.println("The Holiday dates for " + cCode + ":" + holiYear + ":" + holiMonth + " are: ");
       
            for (int i = 0; i < holiSize; i++) {
           
                System.out.println(holidayByMonth.getHoliday().get(i).getHolidayCode());
                System.out.println(holidayByMonth.getHoliday().get(i).getDescriptor());
                System.out.println(holidayByMonth.getHoliday().get(i).getHolidayType());
                System.out.println(holidayByMonth.getHoliday().get(i).getDateType());
                System.out.println(holidayByMonth.getHoliday().get(i).getBankHoliday());
                System.out.println(holidayByMonth.getHoliday().get(i).getDate());
                System.out.println(holidayByMonth.getHoliday().get(i).getRelatedHolidayCode());
                System.out.println(holidayByMonth.getHoliday().get(i).getApplicableRegions());
                System.out.println();           
            }
       
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Exception: " + e
View Full Code Here

     */
    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
             
        try {
            Country country = Country.fromValue(jTextField1.getText());
            ArrayOfHolidayCode dates = getHolidaysAvailable(country);
           
            int dateSize = dates.getHolidayCode().size();
       
            System.out.println("Holidays for " + country + ":");
       
            for (int i = 0; i < dateSize; i++) {
           
                System.out.println(dates.getHolidayCode().get(i).getCode());
                System.out.println(dates.getHolidayCode().get(i).getDescription());
           
            }
      
        } catch (Exception e) {
            JOptionPane.showMessageDialog(this, "Exception: " + e
View Full Code Here

     * @exception   displays an error box containing the exception error message
     */
    private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed
             
        try {
            Country country = Country.fromValue(jTextField1.getText());
            ArrayOfHolidayCode dates = getHolidaysAvailable(country);
           
            int dateSize = dates.getHolidayCode().size();
       
            System.out.println("Holidays for " + country + ":");
View Full Code Here

       
        String holiday;
        int year;
       
        try {
            Country countryCode = Country.fromValue(jTextField2.getText());
            holiday = jTextField3.getText();
            year = Integer.parseInt(jTextField4.getText());
       
            XMLGregorianCalendar date = getHolidayDate(countryCode, holiday, year);
        
View Full Code Here

       
        String start, end;
        Date startDate, endDate;
       
        try {
            Country coCode = Country.fromValue(jTextField5.getText());
            start = jTextField6.getText();
            end = jTextField7.getText();
            startDate = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH) {}.parse(start);
            endDate = new SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH).parse(end);
           
View Full Code Here

    private void jCheckBox5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox5ActionPerformed
       
        int holidayYear;
       
        try {
            Country cCode = Country.fromValue(jTextField8.getText());
            holidayYear = Integer.parseInt(jTextField9.getText());
       
            ArrayOfHoliday holidays = getHolidaysForYear(cCode, holidayYear);
            int holidaySize = holidays.getHoliday().size();
       
View Full Code Here

    private void jCheckBox6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox6ActionPerformed
       
        int holiYear, holiMonth;
       
        try {
            Country cCode = Country.fromValue(jTextField10.getText());
            holiYear = Integer.parseInt(jTextField11.getText());
            holiMonth = Integer.parseInt(jTextField12.getText());
       
            ArrayOfHoliday holidayByMonth = getHolidaysForMonth(cCode, holiYear, holiMonth);
            int holiSize = holidayByMonth.getHoliday().size();
View Full Code Here

TOP

Related Classes of com.holidaywebservice.holidayservice_v2.GetHolidaysForDateRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.