public Number getValueAsNumber() { return getValue(); }
@Override public int compareTo(DecimalDt theObj) { if (getValue() == null && theObj.getValue() == null) { return 0; } if (getValue() != null && (theObj == null || theObj.getValue() == null)) { return 1; } if (getValue() == null && theObj.getValue() != null) { return -1; } return getValue().compareTo(theObj.getValue()); }
/** * Gets the value as an integer, using {@link BigDecimal#intValue()} */ public int getValueAsInteger() { return getValue().intValue(); }
@Override protected String encode(BigDecimal theValue) { return getValue().toPlainString(); }
/** * Rounds the value to the given prevision * * @see MathContext#getPrecision() * @see MathContext#getRoundingMode() */ public void round(int thePrecision, RoundingMode theRoundingMode) { if (getValue() != null) { BigDecimal newValue = getValue().round(new MathContext(thePrecision, theRoundingMode)); setValue(newValue); } }
/** * Gets the value(s) for <b>duration</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * How long this thing happens for when it happens * </p> */ public BigDecimal getDuration() { return getDurationElement().getValue(); }
/** * Gets the value(s) for <b>latitude</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) * </p> */ public BigDecimal getLatitude() { return getLatitudeElement().getValue(); }
/** * Gets the value(s) for <b>period</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The length of time between sampling times, measured in milliseconds * </p> */ public BigDecimal getPeriod() { return getPeriodElement().getValue(); }
/** * Gets the value(s) for <b>lowerLimit</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) * </p> */ public BigDecimal getLowerLimit() { return getLowerLimitElement().getValue(); }
/** * Gets the value(s) for <b>durationMax</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The upper limit of how long this thing happens for when it happens * </p> */ public BigDecimal getDurationMax() { return getDurationMaxElement().getValue(); }
/** * Gets the value(s) for <b>period</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period * </p> */ public BigDecimal getPeriod() { return getPeriodElement().getValue(); }
/** * Gets the value(s) for <b>value</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The value of the measured amount. The value includes an implicit precision in the presentation of the value * </p> */ public BigDecimal getValue() { return getValueElement().getValue(); }
/** * Gets the value(s) for <b>longitude</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) * </p> */ public BigDecimal getLongitude() { return getLongitudeElement().getValue(); }
/** * Gets the value(s) for <b>altitude</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) * </p> */ public BigDecimal getAltitude() { return getAltitudeElement().getValue(); }
/** * Gets the value(s) for <b>value</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The value of the measured amount. The value includes an implicit precision in the presentation of the value * </p> */ public BigDecimal getValue() { return getValueElement().getValue(); }
/** * Gets the value(s) for <b>factor</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * A correction factor that is applied to the sampled data points before they are added to the origin * </p> */ public BigDecimal getFactor() { return getFactorElement().getValue(); }
/** * Gets the value(s) for <b>upperLimit</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) * </p> */ public BigDecimal getUpperLimit() { return getUpperLimitElement().getValue(); }
/** * Gets the value(s) for <b>periodMax</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days * </p> */ public BigDecimal getPeriodMax() { return getPeriodMaxElement().getValue(); }
ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValue.getValueElement().getValue(), nextValue.getSystemElement().getValueAsString(), nextValue.getCode()); nextEntity.setResource(theEntity); retVal.add(nextEntity);