All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jdplus.x13.base.xml.XmlAutoTransformationSpec Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
/*
 * Copyright 2016 National Bank of Belgium
 * 
 * Licensed under the EUPL, Version 1.1 or – as soon they will be approved 
 * by the European Commission - subsequent versions of the EUPL (the "Licence");
 * You may not use this work except in compliance with the Licence.
 * You may obtain a copy of the Licence at:
 * 
 * http://ec.europa.eu/idabc/eupl
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the Licence is distributed on an "AS IS" basis,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the Licence for the specific language governing permissions and 
 * limitations under the Licence.
 */
package jdplus.x13.base.xml;

import jdplus.toolkit.base.api.modelling.TransformationType;
import jdplus.x13.base.api.regarima.TransformSpec;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import lombok.NonNull;

/**
 * 

* Java class for AutoTransformationSpecType complex type. * *

* The following schema fragment specifies the expected content contained within * this class. * *

 * <complexType name="AutoTransformationSpecType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Fct" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *               <minInclusive value="0.5"/>
 *               <maxInclusive value="2.0"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AutoTransformationSpecType", propOrder = { "aicDiff" }) public class XmlAutoTransformationSpec { @XmlElement(name = "AicDiff", defaultValue = "-2.0") protected Double aicDiff; /** * Gets the value of the aicDiff property. * * @return possible object is {@link Double } * */ public double getAicDiff() { return aicDiff == null ? TransformSpec.DEF_AICDIFF : aicDiff; } /** * Sets the value of the aicDiff property. * * @param value allowed object is {@link Double } * */ public void setAicDiff(Double value) { if (value != null && value == TransformSpec.DEF_AICDIFF) { aicDiff = null; } else { aicDiff = value; } } public static final TransformSpec unmarshal(XmlAutoTransformationSpec xml) { return TransformSpec.builder() .function(TransformationType.Auto) .aicDiff(xml.getAicDiff()) .build(); } public static XmlAutoTransformationSpec marshal(@NonNull TransformSpec v) { if (v.getFunction() != TransformationType.Auto) { return null; } XmlAutoTransformationSpec xml = new XmlAutoTransformationSpec(); xml.setAicDiff(v.getAicDiff()); return xml; } ; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy