bckfnn 2004/09/07 03:25:28 Modified: src/java/org/apache/fop/fo/properties EnumProperty.java Log: Added support for a debug string value to enum properties. Revision Changes Path 1.3 +6 -5 xml-fop/src/java/org/apache/fop/fo/properties/EnumProperty.java Index: EnumProperty.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/EnumProperty.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- EnumProperty.java 27 Feb 2004 17:45:45 -0000 1.2 +++ EnumProperty.java 7 Sep 2004 10:25:28 -0000 1.3 @@ -66,12 +66,15 @@ } private int value; + private String text; /** * @param explicitValue enumerated value to be set for this property + * @param text the string value of the enum. */ - public EnumProperty(int explicitValue) { + public EnumProperty(int explicitValue, String text) { this.value = explicitValue; + this.text = text; } /** @@ -85,9 +88,7 @@ * @return this.value cast as an Object */ public Object getObject() { - // TODO return String value: property must reference maker - // return maker.getEnumValue(this.value); - return new Integer(this.value); + return text; } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]