This project has retired. For details please refer to its
Attic page.
PropertyDecimalDefinitionImpl xref
1/*2 * Licensed to the Apache Software Foundation (ASF) under one3 * or more contributor license agreements. See the NOTICE file4 * distributed with this work for additional information5 * regarding copyright ownership. The ASF licenses this file6 * to you under the Apache License, Version 2.0 (the7 * "License"); you may not use this file except in compliance8 * with the License. You may obtain a copy of the License at9 *10 * http://www.apache.org/licenses/LICENSE-2.011 *12 * Unless required by applicable law or agreed to in writing,13 * software distributed under the License is distributed on an14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY15 * KIND, either express or implied. See the License for the16 * specific language governing permissions and limitations17 * under the License.18 */19package org.apache.chemistry.opencmis.commons.impl.dataobjects;
2021import java.math.BigDecimal;
2223import org.apache.chemistry.opencmis.commons.definitions.PropertyDecimalDefinition;
24import org.apache.chemistry.opencmis.commons.enums.DecimalPrecision;
2526/**27 * Decimal property definition data implementation.28 * 29 * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>30 * 31 */32publicclassPropertyDecimalDefinitionImplextends AbstractPropertyDefinition<BigDecimal> implements
33 PropertyDecimalDefinition {
3435privatestaticfinallong serialVersionUID = 1L;
3637private BigDecimal fMinValue;
38private BigDecimal fMaxValue;
39private DecimalPrecision fPrecision;
4041/*42 * (non-Javadoc)43 * 44 * @see45 * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMinValue46 * ()47 */48public BigDecimal getMinValue() {
49return fMinValue;
50 }
5152publicvoid setMinValue(BigDecimal minValue) {
53 fMinValue = minValue;
54 }
5556/*57 * (non-Javadoc)58 * 59 * @see60 * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMaxValue61 * ()62 */63public BigDecimal getMaxValue() {
64return fMaxValue;
65 }
6667publicvoid setMaxValue(BigDecimal maxValue) {
68 fMaxValue = maxValue;
69 }
7071/*72 * (non-Javadoc)73 * 74 * @seeorg.apache.opencmis.client.provider.PropertyDecimalDefinitionData#75 * getPrecision()76 */77public DecimalPrecision getPrecision() {
78return fPrecision;
79 }
8081publicvoid setPrecision(DecimalPrecision precision) {
82 fPrecision = precision;
83 }
84 }