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

com.nedap.archie.adl14.aom14.CDVQuantityItem Maven / Gradle / Ivy

There is a newer version: 3.12.0
Show newest version
package com.nedap.archie.adl14.aom14;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nedap.archie.aom.primitives.CInteger;
import com.nedap.archie.aom.primitives.CReal;
import com.nedap.archie.aom.primitives.CString;
import com.nedap.archie.base.Interval;

public class CDVQuantityItem {

    private String units;
    private Interval magnitude;
    private Interval precision;

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public Interval getMagnitude() {
        return magnitude;
    }

    public void setMagnitude(Interval magnitude) {
        this.magnitude = magnitude;
    }

    public Interval getPrecision() {
        return precision;
    }

    public void setPrecision(Interval precision) {
        this.precision = precision;
    }

    @JsonIgnore
    public CString getUnitsAdl2() {
        if(units == null) {
            return null;
        }
        CString result = new CString();
        result.addConstraint(units);
        return result;
    }

    @JsonIgnore
    public CReal getMagnitudeAdl2() {
        if(magnitude == null) {
            return null;
        }
        CReal result = new CReal();
        result.addConstraint(magnitude);
        return result;
    }

    @JsonIgnore
    public CInteger getPrecisionAdl2() {
        if(precision == null) {
            return null;
        }
        CInteger result = new CInteger();
        result.addConstraint(precision);
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy