]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added getType() to interface and implementations.
authorPeter Bernard West <pbwest@apache.org>
Sun, 15 Sep 2002 05:30:17 +0000 (05:30 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 15 Sep 2002 05:30:17 +0000 (05:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195185 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/expr/AbstractPropertyValue.java
src/org/apache/fop/fo/expr/PropertyValue.java
src/org/apache/fop/fo/expr/PropertyValueList.java

index 78afadc1c18b589d7ced7d6e4d0649bad4cca78c..cdeee1b8ad7daaa3e970729aa156c4ee9380f2fe 100644 (file)
@@ -76,6 +76,13 @@ public abstract class AbstractPropertyValue
         property = index;
     }
 
+    /**
+     * @return type field of the <tt>PropertyValue</tt>.
+     */
+    public int getType() {
+        return type;
+    }
+
     /**
      * In some circumstances, the property against which a type is to be
      * validated may not be the same as the property against which this
index 6a0232a094579680376bd1a04546db844581a3a5..cca3bf7b43f1332be435095354d8f08c6bff83df 100644 (file)
@@ -14,7 +14,7 @@ import org.apache.fop.fo.expr.PropertyException;
  * @version $Revision$ $Name$
  */
 /**
- * Base class for all property value types.
+ * Base interface for all property value types.
  */
 
 public interface PropertyValue {
@@ -57,6 +57,11 @@ public interface PropertyValue {
     public int getProperty();
     public void setProperty(int index) throws PropertyException;
 
+    /**
+     * @return type field of the <tt>PropertyValue</tt>.
+     */
+    public int getType();
+
     /**
      * In some circumstances, the property against which a type is to be
      * validated may not be the same as the property against which this
index bde2674a0291f29ccf3c09ca5510a342c3bd69ae..b733741a2e6924fc15149369ed03c6d230dcb741 100644 (file)
@@ -170,6 +170,13 @@ public class PropertyValueList extends LinkedList implements PropertyValue {
         property = index;
     }
 
+    /**
+     * @return type field of the <tt>PropertyValue</tt>.
+     */
+    public int getType() {
+        return type;
+    }
+
     /**
      * In some circumstances, the property against which a type is to be
      * validated may not be the same as the property against which this