From: Peter Bernard West Date: Fri, 21 Jun 2002 15:44:02 +0000 (+0000) Subject: Type to accommodate slash in size/height pair of font shorthand. X-Git-Tag: Alt-Design_pre_Properties_split~196 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=17675e40948eee2a6dbdb21f85a667fb2820dee1;p=xmlgraphics-fop.git Type to accommodate slash in size/height pair of font shorthand. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@194909 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/datatypes/Slash.java b/src/org/apache/fop/datatypes/Slash.java new file mode 100644 index 000000000..6011ae988 --- /dev/null +++ b/src/org/apache/fop/datatypes/Slash.java @@ -0,0 +1,60 @@ + +package org.apache.fop.datatypes; + +import org.apache.fop.fo.expr.PropertyException; +import org.apache.fop.fo.expr.AbstractPropertyValue; +import org.apache.fop.fo.Properties; + +/* + * Slash.java + * $Id$ + * + * 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. + */ +/** + * A datatype representing an isolated forward slash character. + * The only known occurence of an isolated forward slash is as a separator + * between font-size and line-height specifiers in a + * font shorthand value. + * @author Peter B. West + * @version $Revision$ $Name$ + */ + +public class Slash extends AbstractPropertyValue { + + private static final String tag = "$Name$"; + private static final String revision = "$Revision$"; + + /** + * @param property the int index of the property on which + * this value is being defined. + * @exception PropertyException + */ + public Slash (int property) + throws PropertyException + { + super(property); + } + + /** + * @param propertyName the StringSlash. + */ + public void validate() throws PropertyException { + throw new PropertyException + ("Slash datatype should never be validated"); + } + +}