Examples of QuantityValue


Examples of com.volantis.shared.metadata.value.QuantityValue

    // javadoc inherited
    protected Collection verify(final MetaDataValue value, final String path) {
        final Collection errors = super.verify(value, path);
        if (value instanceof QuantityValue) {
            final QuantityValue quantityValue = (QuantityValue) value;
            // check magnitude
            if (magnitudeType != null) {
                errors.addAll(((MetaDataTypeImpl) magnitudeType).verify(
                    quantityValue.getMagnitudeValue(), path + "[@magnitude]"));
            }
            // check unit
            if (unitType != null) {
                errors.addAll(((MetaDataTypeImpl) unitType).verify(
                    quantityValue.getUnitValue(), path + "[@unit]"));
            }
        }
        return errors;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.