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  "License");
7 * you may not use this file except in compliance with the License.
8 * 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, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/*
19 * $Id: DecimalToRoman.java 468645 2006-10-28 06:57:24Z minchau $
20 */
21package org.apache.xalan.transformer;
22
23/**
24 * Structure to help in converting integers to roman numerals
25 * @xsl.usage internal
26 */
27public class DecimalToRoman
28{
29
30  /**
31   * Constructor DecimalToRoman
32   *
33   *
34   * @param postValue Minimum value for a given range of
35   * roman numbers
36   * @param postLetter Correspoding letter (roman) to postValue
37   * @param preValue Value of last prefixed number within
38   * that same range (i.e. IV if postval is 5 (V))
39   * @param preLetter Correspoding letter(roman) to preValue
40   */
41  public DecimalToRoman(long postValue, String postLetter, long preValue,
42                        String preLetter)
43  {
44
45    this.m_postValue = postValue;
46    this.m_postLetter = postLetter;
47    this.m_preValue = preValue;
48    this.m_preLetter = preLetter;
49  }
50
51  /** Minimum value for a given range of roman numbers          */
52  public long m_postValue;
53
54  /** Correspoding letter (roman) to m_postValue          */
55  public String m_postLetter;
56
57  /** Value of last prefixed number within that same range  */
58  public long m_preValue;
59
60  /** Correspoding letter (roman) to m_preValue          */
61  public String m_preLetter;
62}
63