1 17 18 19 20 package org.apache.fop.datatypes; 21 22 import org.apache.fop.fo.FObj; 23 24 32 public final class ValidationPercentBaseContext implements PercentBaseContext { 33 34 37 private ValidationPercentBaseContext() { 38 } 39 40 44 public int getBaseLength(int lengthBase, FObj fobj) { 45 return 100000; 48 } 49 50 private static PercentBaseContext pseudoContextForValidation = null; 51 52 53 public static PercentBaseContext getPseudoContextForValidationPurposes() { 54 if (pseudoContextForValidation == null) { 55 pseudoContextForValidation = new ValidationPercentBaseContext(); 56 } 57 return pseudoContextForValidation; 58 } 59 60 } 61 | Popular Tags |