test_class.declarator: FILE = "c:\\localdata\\calendars.xml"
test_class.modifier: public static final
test_class.original_string: public static final String FILE = "c:\\localdata\\calendars.xml";
test_class.type: String
test_class.var_name: FILE
test_class.file: jtss/src/test/java/ec/demetra/xml/calendars/XmlCalendarsTest.java
test_class.identifier: XmlCalendarsTest
test_case.body: @Test
      public void testValidation() throws JAXBException, SAXException, IOException {
  
          XmlNationalCalendar xcal1 = new XmlNationalCalendar();
          xcal1.setName("calendar.test1");
          XmlFixedDay fday = new XmlFixedDay();
          fday.setMonth(Month.March);
          fday.setDay(21);
          XmlSpecialDayEvent sday = new XmlSpecialDayEvent();
          sday.setDay(fday);
          xcal1.getSpecialDayEvent().add(sday);
  
          XmlNationalCalendar xcal2 = new XmlNationalCalendar();
          xcal2.setName("calendar.test2");
          xcal2.getSpecialDayEvent().add(sday);
  
          XmlChainedCalendar xchained = new XmlChainedCalendar();
          xchained.setCalendarBreak(Day.toDay());
          xchained.setStartCalendar(xcal1.getName());
          xchained.setEndCalendar(xcal2.getName());
          xchained.setName("calendar.chained");
  
          XmlCompositeCalendar xcomposite = new XmlCompositeCalendar();
          xcomposite.getWeightedCalendar().add(new XmlWeightedItem(xcal1.getName()));
          xcomposite.getWeightedCalendar().add(new XmlWeightedItem(xcal2.getName()));
          xcomposite.getWeightedCalendar().add(new XmlWeightedItem(xchained.getName()));
          xcomposite.setName("calendar.composite");
  
          XmlCalendars xcals = new XmlCalendars();
          xcals.getCalendars().add(xcal1);
          xcals.getCalendars().add(xcal2);
          xcals.getCalendars().add(xchained);
          xcals.getCalendars().add(xcomposite);
  
          JAXBContext jaxb = JAXBContext.newInstance(xcals.getClass());
          JAXBSource source = new JAXBSource(jaxb, xcals);
          Validator validator = Schemas.Calendars.newValidator();
          //validator.setErrorHandler(new TestErrorHandler());
          validator.validate(source);
      }
test_case.class_method_signature: XmlCalendarsTest.testValidation()
test_case.full_signature: @Test public void testValidation()
test_case.identifier: testValidation
test_case.invocations: setName setMonth setDay setDay add getSpecialDayEvent setName add getSpecialDayEvent setCalendarBreak toDay setStartCalendar getName setEndCalendar getName setName add getWeightedCalendar getName add getWeightedCalendar getName add getWeightedCalendar getName setName add getCalendars add getCalendars add getCalendars add getCalendars newInstance getClass newValidator validate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidation()
focal_class.declarator: calendar
focal_class.modifier: @XmlElement(name = "Calendar")
      protected
focal_class.original_string: @XmlElement(name = "Calendar")
      protected List<XmlCalendar> calendar;
focal_class.type: List<XmlCalendar>
focal_class.var_name: calendar
focal_class.file: jtss/src/main/java/ec/demetra/xml/calendars/XmlCalendars.java
focal_class.identifier: XmlCalendars
focal_class.class_method_signature: XmlCalendars.getCalendars()
focal_class.full_signature: public List<XmlCalendar> getCalendars()
focal_class.identifier: getCalendars
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<XmlCalendar>
focal_class.signature: List<XmlCalendar> getCalendars()
focal_method.body: public List<XmlCalendar> getCalendars() {
          if (calendar == null) {
              calendar = new ArrayList<>();
          }
          return this.calendar;
      }
focal_method.class_method_signature: XmlCalendars.getCalendars()
focal_method.full_signature: public List<XmlCalendar> getCalendars()
focal_method.identifier: getCalendars
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<XmlCalendar>
focal_method.signature: List<XmlCalendar> getCalendars()