pbwest 2002/11/29 08:44:07 Modified: src/org/apache/fop/fo/properties Tag: FOP_0-20-0_Alt-Design LineHeight.java Log: Added getEnumIndex() and getEnumText(). Revision Changes Path No revision No revision 1.1.2.5 +10 -0 xml-fop/src/org/apache/fop/fo/properties/Attic/LineHeight.java Index: LineHeight.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/properties/Attic/LineHeight.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- LineHeight.java 12 Nov 2002 01:36:52 -0000 1.1.2.4 +++ LineHeight.java 29 Nov 2002 16:44:06 -0000 1.1.2.5 @@ -21,6 +21,16 @@ ,"normal" }; + public int getEnumIndex(String enum) throws PropertyException { + if (enum.equals("normal")) return 1; + throw new PropertyException("Invalid enumeration: " + enum); + } + + public String getEnumText(int index) throws PropertyException { + if (index == 1) return "normal"; + throw new PropertyException("Invalid enum index: " + index); + } + public Numeric getMappedLength(FONode node, int enum) throws PropertyException {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]