aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/Property.java
diff options
context:
space:
mode:
authorDirk-Willem van Gulik <dirkx@apache.org>1999-11-08 19:12:49 +0000
committerDirk-Willem van Gulik <dirkx@apache.org>1999-11-08 19:12:49 +0000
commit10070e8383ff94f3f256e346b8c4a2a493533cfb (patch)
tree59080d7faae7c0bd9ff4e5a48f4df4394d468a02 /src/org/apache/fop/fo/Property.java
parentb510e7f15a798e944bb138993f2b586413adecbe (diff)
downloadxmlgraphics-fop-10070e8383ff94f3f256e346b8c4a2a493533cfb.tar.gz
xmlgraphics-fop-10070e8383ff94f3f256e346b8c4a2a493533cfb.zip
Initial revision
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/Property.java')
-rw-r--r--src/org/apache/fop/fo/Property.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/Property.java b/src/org/apache/fop/fo/Property.java
new file mode 100644
index 000000000..420bee8cb
--- /dev/null
+++ b/src/org/apache/fop/fo/Property.java
@@ -0,0 +1,41 @@
+package org.apache.xml.fop.fo;
+
+import org.apache.xml.fop.datatypes.*;
+import org.apache.xml.fop.apps.FOPException;
+
+public class Property {
+
+ public static class Maker {
+
+ public boolean isInherited() { return false; }
+
+ public Property make(PropertyList propertyList, String value) throws FOPException {
+ return null;
+ }
+
+ public Property make(PropertyList propertyList) throws FOPException { // default
+ return null;
+ }
+
+ public Property compute(PropertyList propertyList) { // compute
+ return null;
+ }
+ }
+ protected PropertyList propertyList;
+
+ public Length getLength() { return null; }
+ public String getString() { return null; }
+ public ColorType getColorType() { return null; }
+ public int getEnum() { return 0; }
+
+ public static double toDouble(String s) {
+ double d;
+ try {
+ d = Double.valueOf(s).doubleValue();
+ } catch (NumberFormatException e) {
+ d = Double.NaN;
+ }
+ return d;
+ }
+
+}