]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Type to accommodate slash in size/height pair of font shorthand.
authorPeter Bernard West <pbwest@apache.org>
Fri, 21 Jun 2002 15:44:02 +0000 (15:44 +0000)
committerPeter Bernard West <pbwest@apache.org>
Fri, 21 Jun 2002 15:44:02 +0000 (15:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@194909 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/datatypes/Slash.java [new file with mode: 0644]

diff --git a/src/org/apache/fop/datatypes/Slash.java b/src/org/apache/fop/datatypes/Slash.java
new file mode 100644 (file)
index 0000000..6011ae9
--- /dev/null
@@ -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 <em>font-size</em> and <em>line-height</em> specifiers in a
+ * <em>font </em> shorthand value.
+ * @author <a href="mailto:pbwest@powerup.com.au">Peter B. West</a>
+ * @version $Revision$ $Name$
+ */
+
+public class Slash extends AbstractPropertyValue {
+
+    private static final String tag = "$Name$";
+    private static final String revision = "$Revision$";
+
+    /**
+     * @param property the <tt>int</tt> index of the property on which
+     * this value is being defined.
+     * @exception PropertyException
+     */
+    public Slash (int property)
+        throws PropertyException
+    {
+        super(property);
+    }
+
+    /**
+     * @param propertyName the <tt>String</tt< name of the property on which
+     * this value is being defined.
+     * @exception PropertyException
+     */
+    public Slash (String propertyName)
+        throws PropertyException
+    {
+        super(propertyName);
+    }
+
+    /**
+     * Validation not supported for <tt>Slash</tt>.
+     */
+    public void validate() throws PropertyException {
+        throw new PropertyException
+                ("Slash datatype should never be validated");
+    }
+
+}