From d0865f0d80928013bc57bfea33cfccff54906f73 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Thu, 4 Jul 2002 00:42:28 +0000 Subject: [PATCH] Replaced by MappedNumeric.java git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@194950 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/datatypes/MappedEnumType.java | 86 ------------------- 1 file changed, 86 deletions(-) delete mode 100644 src/org/apache/fop/datatypes/MappedEnumType.java diff --git a/src/org/apache/fop/datatypes/MappedEnumType.java b/src/org/apache/fop/datatypes/MappedEnumType.java deleted file mode 100644 index d74c2712e..000000000 --- a/src/org/apache/fop/datatypes/MappedEnumType.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.apache.fop.datatypes; - -import org.apache.fop.datatypes.EnumType; -import org.apache.fop.fo.expr.PropertyException; -import org.apache.fop.fo.PropertyConsts; -import org.apache.fop.fo.Properties; - -/* - * MappedEnumType.java - * $Id$ - * - * Created: Tue Nov 20 22:18:11 2001 - * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. - * For details on use and redistribution please refer to the - * LICENSE file included with these sources. - * @author Peter B. West - * @version $Revision$ $Name$ - */ -/** - * Class to represent an enumerated type whose values map onto another - * String. - */ - -public class MappedEnumType extends EnumType { - - private static final String tag = "$Name$"; - private static final String revision = "$Revision$"; - - /** - * The String value to which the associated ENUM token maps. - * It expresses some underlying type other than an ENUM. - */ - private String mappedEnum; - - /** - * @param property the int index of the property on which - * this value is being defined. - * @param enumText the String containing the enumeration text. - * An NCName. - * @exception PropertyException - */ - public MappedEnumType(int property, String enumText) - throws PropertyException - { - // Set property index in AbstractPropertyValue - // and enumValue enum constant in EnumType - super(property, enumText); - mappedEnum = PropertyConsts.getMappedEnumValue(property, enumValue); - } - - /** - * @param propertyName the String name of the property on which - * this value is being defined. - * @param enumText the String containing the enumeration text. - * An NCName. - * @exception PropertyException - */ - public MappedEnumType(String propertyName, String enumText) - throws PropertyException - { - // Set property index in AbstractPropertyValue - // and enumValue enum constant in EnumType - super(propertyName, enumText); - mappedEnum = PropertyConsts.getMappedEnumValue(property, enumValue); - } - - /** - * @return a String containing the text of the value to which - * this ENUM token is mapped. - */ - public String getMappedEnumValue() { - return mappedEnum; - } - - /** - * validate the MappedEnumType against the associated property. - */ - public void validate() throws PropertyException { - super.validate(Properties.MAPPED_ENUM); - } - - public String toString() { - return mappedEnum + " " + super.toString(); - } - -} -- 2.39.5