]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
New property in Errata.
authorPeter Bernard West <pbwest@apache.org>
Thu, 31 Oct 2002 01:53:40 +0000 (01:53 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 31 Oct 2002 01:53:40 +0000 (01:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195389 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/properties/UsageContextOfSuppressAtLineBreak.java [new file with mode: 0644]

diff --git a/src/org/apache/fop/fo/properties/UsageContextOfSuppressAtLineBreak.java b/src/org/apache/fop/fo/properties/UsageContextOfSuppressAtLineBreak.java
new file mode 100644 (file)
index 0000000..c422ab8
--- /dev/null
@@ -0,0 +1,27 @@
+package org.apache.fop.fo.properties;
+
+import org.apache.fop.fo.expr.PropertyException;
+import org.apache.fop.datastructs.ROStringArray;
+import org.apache.fop.fo.properties.Property;
+
+public class UsageContextOfSuppressAtLineBreak extends Property  {
+    public static final int dataTypes = AUTO | ENUM | INHERIT;
+    public static final int traitMapping = FORMATTING;
+    public static final int initialValueType = AUTO_IT;
+    public static final int OBSERVE = 1;
+    public static final int IGNORE = 2;
+    public static final int inherited = COMPUTED;
+
+    private static final String[] rwEnums = {
+        null
+        ,"observe"
+        ,"ignore"
+    };
+    public int getEnumIndex(String enum) throws PropertyException {
+        return enumValueToIndex(enum, rwEnums);
+    }
+    public String getEnumText(int index) {
+        return rwEnums[index];
+    }
+}
+