* A length quantity in XSL which is specified as an enum, such as "auto"
*/
public class EnumLength extends LengthProperty {
- private Property enum;
+ private Property enumProperty;
- public EnumLength(Property enum) {
- this.enum = enum;
+ public EnumLength(Property enumProperty) {
+ this.enumProperty = enumProperty;
}
/**
* @see org.apache.fop.datatypes.Numeric#getEnum()
*/
public int getEnum() {
- return enum.getEnum();
+ return enumProperty.getEnum();
}
public boolean isAbsolute() {
* @return the length in millipoints
*/
public int getValue() {
- log.error("getValue() called on " + enum + " length");
+ log.error("getValue() called on " + enumProperty + " length");
return 0;
}
* @return the length in millipoints
*/
public double getNumericValue() {
- log.error("getNumericValue() called on " + enum + " number");
+ log.error("getNumericValue() called on " + enumProperty + " number");
return 0;
}
* @see org.apache.fop.fo.properties.Property#getString()
*/
public String getString() {
- return enum.toString();
+ return enumProperty.toString();
}
/**
* @see org.apache.fop.fo.properties.Property#getString()
*/
public Object getObject() {
- return enum.getObject();
+ return enumProperty.getObject();
}
* A number quantity in XSL which is specified as an enum, such as "no-limit".
*/
public class EnumNumber extends NumberProperty {
- private Property enum;
+ private Property enumProperty;
- public EnumNumber(Property enum) {
+ public EnumNumber(Property enumProperty) {
super(null);
- this.enum = enum;
+ this.enumProperty = enumProperty;
}
public int getEnum() {
- return enum.getEnum();
+ return enumProperty.getEnum();
}
/**
* @return the length in millipoints
*/
public int getValue() {
- log.error("getValue() called on " + enum + " number");
+ log.error("getValue() called on " + enumProperty + " number");
return 0;
}
* @return the length in millipoints
*/
public double getNumericValue() {
- log.error("getNumericValue() called on " + enum + " number");
+ log.error("getNumericValue() called on " + enumProperty + " number");
return 0;
}
* @see org.apache.fop.fo.properties.Property#getString()
*/
public String getString() {
- return enum.toString();
+ return enumProperty.toString();
}
/**
* @see org.apache.fop.fo.properties.Property#getString()
*/
public Object getObject() {
- return enum.getObject();
+ return enumProperty.getObject();
}
}
*/
- private static void attrBlockTextAlign(int enum, RtfAttributes rtfAttr) {
+ private static void attrBlockTextAlign(int alignment, RtfAttributes rtfAttr) {
String rtfValue = null;
- switch (enum) {
+ switch (alignment) {
case Constants.CENTER:
rtfValue = RtfText.ALIGN_CENTER;
break;