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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * $Id: DecimalToRoman.java 468645 2006-10-28 06:57:24Z minchau $
21 package org.apache.xalan.transformer;
24 * Structure to help in converting integers to roman numerals
27 public class DecimalToRoman
31 * Constructor DecimalToRoman
34 * @param postValue Minimum value for a given range of
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
41 public DecimalToRoman(long postValue, String postLetter, long preValue,
45 this.m_postValue = postValue;
46 this.m_postLetter = postLetter;
47 this.m_preValue = preValue;
48 this.m_preLetter = preLetter;
51 /** Minimum value for a given range of roman numbers */
52 public long m_postValue;
54 /** Correspoding letter (roman) to m_postValue */
55 public String m_postLetter;
57 /** Value of last prefixed number within that same range */
58 public long m_preValue;
60 /** Correspoding letter (roman) to m_preValue */
61 public String m_preLetter;