From 4b782886f8291997172ebbcfefb9638eb4f81bb1 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sun, 15 Sep 2002 05:30:17 +0000 Subject: [PATCH] Added getType() to interface and implementations. 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 | 7 +++++++ src/org/apache/fop/fo/expr/PropertyValue.java | 7 ++++++- src/org/apache/fop/fo/expr/PropertyValueList.java | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/fo/expr/AbstractPropertyValue.java b/src/org/apache/fop/fo/expr/AbstractPropertyValue.java index 78afadc1c..cdeee1b8a 100644 --- a/src/org/apache/fop/fo/expr/AbstractPropertyValue.java +++ b/src/org/apache/fop/fo/expr/AbstractPropertyValue.java @@ -76,6 +76,13 @@ public abstract class AbstractPropertyValue property = index; } + /** + * @return type field of the PropertyValue. + */ + 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 diff --git a/src/org/apache/fop/fo/expr/PropertyValue.java b/src/org/apache/fop/fo/expr/PropertyValue.java index 6a0232a09..cca3bf7b4 100644 --- a/src/org/apache/fop/fo/expr/PropertyValue.java +++ b/src/org/apache/fop/fo/expr/PropertyValue.java @@ -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 PropertyValue. + */ + 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 diff --git a/src/org/apache/fop/fo/expr/PropertyValueList.java b/src/org/apache/fop/fo/expr/PropertyValueList.java index bde2674a0..b733741a2 100644 --- a/src/org/apache/fop/fo/expr/PropertyValueList.java +++ b/src/org/apache/fop/fo/expr/PropertyValueList.java @@ -170,6 +170,13 @@ public class PropertyValueList extends LinkedList implements PropertyValue { property = index; } + /** + * @return type field of the PropertyValue. + */ + 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 -- 2.39.5