KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > sg > impl > AtomicTypeSGImpl


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.generator.sg.impl;
18
19 import org.apache.ws.jaxme.generator.sg.AtomicTypeSG;
20 import org.apache.ws.jaxme.xs.XSAtomicType;
21
22 /**
23  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
24  */

25 public class AtomicTypeSGImpl implements AtomicTypeSG {
26   private final String JavaDoc maxExclusive, maxInclusive;
27   private final String JavaDoc minExclusive, minInclusive;
28   private final Long JavaDoc fractionDigits, totalDigits;
29   private final Long JavaDoc length, maxLength, minLength;
30
31   public AtomicTypeSGImpl(XSAtomicType xsAtomicType) {
32     maxExclusive = xsAtomicType.getMaxExclusive();
33     maxInclusive = xsAtomicType.getMaxInclusive();
34     minExclusive = xsAtomicType.getMinExclusive();
35     minInclusive = xsAtomicType.getMinInclusive();
36     fractionDigits = xsAtomicType.getFractionDigits();
37     totalDigits = xsAtomicType.getTotalDigits();
38     length = xsAtomicType.getLength();
39     maxLength = xsAtomicType.getMaxLength();
40     minLength = xsAtomicType.getMinLength();
41   }
42
43   public String JavaDoc getMaxExclusive() { return maxExclusive; }
44   public String JavaDoc getMaxInclusive() { return maxInclusive; }
45   public String JavaDoc getMinExclusive() { return minExclusive; }
46   public String JavaDoc getMinInclusive() { return minInclusive; }
47   public Long JavaDoc getFractionDigits() { return fractionDigits; }
48   public Long JavaDoc getTotalDigits() { return totalDigits; }
49   public Long JavaDoc getLength() { return length; }
50   public Long JavaDoc getMaxLength() { return maxLength; }
51   public Long JavaDoc getMinLength() { return minLength; }
52 }
Popular Tags