1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19 package org.apache.chemistry.opencmis.commons.impl.dataobjects;
20
21 import java.math.BigDecimal;
22
23 import org.apache.chemistry.opencmis.commons.definitions.PropertyDecimalDefinition;
24 import org.apache.chemistry.opencmis.commons.enums.DecimalPrecision;
25
26 /**
27 * Decimal property definition data implementation.
28 *
29 * @author <a href="mailto:fmueller@opentext.com">Florian Müller</a>
30 *
31 */
32 public class PropertyDecimalDefinitionImpl extends AbstractPropertyDefinition<BigDecimal> implements
33 PropertyDecimalDefinition {
34
35 private static final long serialVersionUID = 1L;
36
37 private BigDecimal fMinValue;
38 private BigDecimal fMaxValue;
39 private DecimalPrecision fPrecision;
40
41 /*
42 * (non-Javadoc)
43 *
44 * @see
45 * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMinValue
46 * ()
47 */
48 public BigDecimal getMinValue() {
49 return fMinValue;
50 }
51
52 public void setMinValue(BigDecimal minValue) {
53 fMinValue = minValue;
54 }
55
56 /*
57 * (non-Javadoc)
58 *
59 * @see
60 * org.apache.opencmis.client.provider.PropertyDecimalDefinitionData#getMaxValue
61 * ()
62 */
63 public BigDecimal getMaxValue() {
64 return fMaxValue;
65 }
66
67 public void setMaxValue(BigDecimal maxValue) {
68 fMaxValue = maxValue;
69 }
70
71 /*
72 * (non-Javadoc)
73 *
74 * @seeorg.apache.opencmis.client.provider.PropertyDecimalDefinitionData#
75 * getPrecision()
76 */
77 public DecimalPrecision getPrecision() {
78 return fPrecision;
79 }
80
81 public void setPrecision(DecimalPrecision precision) {
82 fPrecision = precision;
83 }
84 }