# Direction.java

    package org.apache.fop.fo.properties;

    import org.apache.fop.datastructs.ROStringArray;
    import org.apache.fop.fo.expr.PropertyException;
    import org.apache.fop.datatypes.PropertyValue;
    import org.apache.fop.datatypes.EnumType;
    import org.apache.fop.fo.PropNames;
    import org.apache.fop.fo.properties.Property;

    public class Direction extends Property  {
        public static final int dataTypes = ENUM | INHERIT;
        public static final int traitMapping = NEW_TRAIT;
        public static final int initialValueType = ENUM_IT;
        public static final int LTR = 1;
        public static final int RTL = 2;
        public PropertyValue getInitialValue(int property)
            throws PropertyException
        {
            return new EnumType(PropNames.DIRECTION, LTR);
        }
        public static final int inherited = COMPUTED;

        private static final String[] rwEnums = {
            null
            ,"ltr"
            ,"rtl"
        };
        public int getEnumIndex(String enum) throws PropertyException {
            return enumValueToIndex(enum, rwEnums);
        }
        public String getEnumText(int index) {
            return rwEnums[index];
        }
    }