org.apache.fop.datatypes
Class ValidationPercentBaseContext
java.lang.Object
|
+--org.apache.fop.datatypes.ValidationPercentBaseContext
- All Implemented Interfaces:
- PercentBaseContext
- public final class ValidationPercentBaseContext
- extends java.lang.Object
- implements PercentBaseContext
This base context is used during validation when the actual base values are still unknown
but should still already be checked. The actual value returned is not so important in this
case. But it's important that zero and non-zero values can be distinguished.
Example: A table with collapsing border model has no padding. The Table FO should be able
to check if non-zero values (even percentages) have been specified.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBaseLength
public int getBaseLength(int lengthBase,
FObj fobj)
- Returns the value for the given lengthBase.
- Specified by:
getBaseLength
in interface PercentBaseContext
- See Also:
PercentBaseContext.getBaseLength(int, FObj)
getPseudoContextForValidationPurposes
public static PercentBaseContext getPseudoContextForValidationPurposes()
- Returns:
- a base context for validation purposes. See class description.
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.