test_class.declarator: FILE = "c:\\localdata\\trs_estimationspec.xml"
test_class.modifier: private static final
test_class.original_string: private static final String FILE = "c:\\localdata\\trs_estimationspec.xml";
test_class.type: String
test_class.var_name: FILE
test_class.file: jtss/src/test/java/ec/demetra/xml/sa/tramoseats/XmlEstimationSpecTest.java
test_class.identifier: XmlEstimationSpecTest
test_case.body: @Test
      @Ignore
      public void testValidation() throws FileNotFoundException, JAXBException, IOException, SAXException, Exception {
  
          TramoSpecification spec = TramoSpecification.TRfull;
          EstimateSpec espec = spec.getEstimate().clone();
          espec.setUbp(1);
          TsPeriodSelector sel = new TsPeriodSelector();
          sel.last(120);
          espec.setSpan(sel);
          XmlEstimationSpec xspec = XmlEstimationSpec.MARSHALLER.marshal(espec);
          JAXBContext jaxb = JAXBContext.newInstance(xspec.getClass());
          JAXBSource source = new JAXBSource(jaxb, xspec);
          Validator validator = Schemas.TramoSeats.newValidator();
          //validator.setErrorHandler(new TestErrorHandler());
          validator.validate(source);
      }
test_case.class_method_signature: XmlEstimationSpecTest.testValidation()
test_case.full_signature: @Test @Ignore public void testValidation()
test_case.identifier: testValidation
test_case.invocations: clone getEstimate setUbp last setSpan marshal newInstance getClass newValidator validate
test_case.modifiers: @Test @Ignore public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidation()
focal_class.declarator: precision
focal_class.modifier: @XmlElement(name = "Precision", defaultValue = "0.0000001")
      protected
focal_class.original_string: @XmlElement(name = "Precision", defaultValue = "0.0000001")
      protected Double precision;
focal_class.type: Double
focal_class.var_name: precision
focal_class.declarator: eml
focal_class.modifier: @XmlElement(name = "EML", defaultValue = "true")
      protected
focal_class.original_string: @XmlElement(name = "EML", defaultValue = "true")
      protected Boolean eml;
focal_class.type: Boolean
focal_class.var_name: eml
focal_class.declarator: ubp
focal_class.modifier: @XmlElement(name = "UBP", defaultValue = "0.96")
      protected
focal_class.original_string: @XmlElement(name = "UBP", defaultValue = "0.96")
      protected Double ubp;
focal_class.type: Double
focal_class.var_name: ubp
focal_class.declarator: UNMARSHALLER = (XmlEstimationSpec xml, EstimateSpec v) -> {
          if (xml.span != null) {
              XmlPeriodSelection.UNMARSHALLER.unmarshal(xml.span, v.getSpan());
          } else {
              v.getSpan().all();
          }
          if (xml.eml != null) {
              v.setEML(xml.eml);
          }
          if (xml.precision != null) {
              v.setTol(xml.precision);
          }
          if (xml.ubp != null) {
              v.setUbp(xml.ubp);
          }
          return true;
      }
focal_class.modifier: public static final
focal_class.original_string: public static final InPlaceXmlUnmarshaller<XmlEstimationSpec, EstimateSpec> UNMARSHALLER = (XmlEstimationSpec xml, EstimateSpec v) -> {
          if (xml.span != null) {
              XmlPeriodSelection.UNMARSHALLER.unmarshal(xml.span, v.getSpan());
          } else {
              v.getSpan().all();
          }
          if (xml.eml != null) {
              v.setEML(xml.eml);
          }
          if (xml.precision != null) {
              v.setTol(xml.precision);
          }
          if (xml.ubp != null) {
              v.setUbp(xml.ubp);
          }
          return true;
      };
focal_class.type: InPlaceXmlUnmarshaller<XmlEstimationSpec, EstimateSpec>
focal_class.var_name: UNMARSHALLER
focal_class.declarator: MARSHALLER = (EstimateSpec v) -> {
          if (v.isDefault()) {
              return null;
          }
          XmlEstimationSpec xml=new XmlEstimationSpec();
          if (!v.getSpan().isAll()) {
              xml.span = new XmlPeriodSelection();
              XmlPeriodSelection.MARSHALLER.marshal(v.getSpan(), xml.span);
          }
          xml.setEML(v.isEML());
          xml.setPrecision(v.getTol());
          xml.setUBP(v.getUbp());
          return xml;
      }
focal_class.modifier: public static final
focal_class.original_string: public static final IXmlMarshaller<XmlEstimationSpec, EstimateSpec> MARSHALLER = (EstimateSpec v) -> {
          if (v.isDefault()) {
              return null;
          }
          XmlEstimationSpec xml=new XmlEstimationSpec();
          if (!v.getSpan().isAll()) {
              xml.span = new XmlPeriodSelection();
              XmlPeriodSelection.MARSHALLER.marshal(v.getSpan(), xml.span);
          }
          xml.setEML(v.isEML());
          xml.setPrecision(v.getTol());
          xml.setUBP(v.getUbp());
          return xml;
      };
focal_class.type: IXmlMarshaller<XmlEstimationSpec, EstimateSpec>
focal_class.var_name: MARSHALLER
focal_class.file: jtss/src/main/java/ec/demetra/xml/sa/tramoseats/XmlEstimationSpec.java
focal_class.identifier: XmlEstimationSpec
focal_class.class_method_signature: XmlEstimationSpec.getPrecision()
focal_class.full_signature: public Double getPrecision()
focal_class.identifier: getPrecision
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Double
focal_class.signature: Double getPrecision()
focal_class.class_method_signature: XmlEstimationSpec.setPrecision(Double value)
focal_class.full_signature: public void setPrecision(Double value)
focal_class.identifier: setPrecision
focal_class.modifiers: public
focal_class.parameters: (Double value)
focal_class.return: void
focal_class.signature: void setPrecision(Double value)
focal_class.class_method_signature: XmlEstimationSpec.isEML()
focal_class.full_signature: public boolean isEML()
focal_class.identifier: isEML
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEML()
focal_class.class_method_signature: XmlEstimationSpec.setEML(Boolean value)
focal_class.full_signature: public void setEML(Boolean value)
focal_class.identifier: setEML
focal_class.modifiers: public
focal_class.parameters: (Boolean value)
focal_class.return: void
focal_class.signature: void setEML(Boolean value)
focal_class.class_method_signature: XmlEstimationSpec.getUBP()
focal_class.full_signature: public Double getUBP()
focal_class.identifier: getUBP
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Double
focal_class.signature: Double getUBP()
focal_class.class_method_signature: XmlEstimationSpec.setUBP(Double value)
focal_class.full_signature: public void setUBP(Double value)
focal_class.identifier: setUBP
focal_class.modifiers: public
focal_class.parameters: (Double value)
focal_class.return: void
focal_class.signature: void setUBP(Double value)
focal_class.superclass: extends ec.demetra.xml.modelling.XmlEstimationSpec
focal_method.body: public void setUBP(Double value) {
          if (value != null && value == EstimateSpec.DEF_UBP) {
              ubp = null;
          } else {
              ubp = value;
          }
      }
focal_method.class_method_signature: XmlEstimationSpec.setUBP(Double value)
focal_method.full_signature: public void setUBP(Double value)
focal_method.identifier: setUBP
focal_method.modifiers: public
focal_method.parameters: (Double value)
focal_method.return: void
focal_method.signature: void setUBP(Double value)