diff options
author | Glen Mazza <gmazza@apache.org> | 2003-12-31 00:40:14 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2003-12-31 00:40:14 +0000 |
commit | be2193cb5bec0da86a3d2aa047196a2c99c999d8 (patch) | |
tree | 0b43c7ac2bc63142aa9add3b92a8c2aef53b2296 /src | |
parent | 0dfc112fa42cd73ae869e43893a3378391cd9e08 (diff) | |
download | xmlgraphics-fop-be2193cb5bec0da86a3d2aa047196a2c99c999d8.tar.gz xmlgraphics-fop-be2193cb5bec0da86a3d2aa047196a2c99c999d8.zip |
Bug #25563 (Patch by Finn Bock) toString() implementations added.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197078 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/datatypes/CondLength.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/fop/datatypes/Keep.java | 5 | ||||
-rw-r--r-- | src/java/org/apache/fop/datatypes/LengthPair.java | 6 | ||||
-rw-r--r-- | src/java/org/apache/fop/datatypes/LengthRange.java | 7 | ||||
-rw-r--r-- | src/java/org/apache/fop/datatypes/Space.java | 9 |
5 files changed, 30 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/datatypes/CondLength.java b/src/java/org/apache/fop/datatypes/CondLength.java index 25804cfec..4ae19cdc7 100644 --- a/src/java/org/apache/fop/datatypes/CondLength.java +++ b/src/java/org/apache/fop/datatypes/CondLength.java @@ -119,5 +119,9 @@ public class CondLength implements CompoundDatatype { return this.length.getLength().getValue(); } + public String toString() { + return "CondLength[" + (isDiscard() ? "discard, " : "") + + length.getObject().toString() + "]"; + } } diff --git a/src/java/org/apache/fop/datatypes/Keep.java b/src/java/org/apache/fop/datatypes/Keep.java index 1d9628356..43606c7b9 100644 --- a/src/java/org/apache/fop/datatypes/Keep.java +++ b/src/java/org/apache/fop/datatypes/Keep.java @@ -152,7 +152,10 @@ public class Keep implements CompoundDatatype { * @return String representation */ public String toString() { - return "Keep"; + return "Keep[" + + "withinLine:" + getWithinLine().getObject() + + ", withinColumn:" + getWithinColumn().getObject() + + ", withinPage:" + getWithinPage().getObject() + "]"; } } diff --git a/src/java/org/apache/fop/datatypes/LengthPair.java b/src/java/org/apache/fop/datatypes/LengthPair.java index bbfc735ec..c16941c72 100644 --- a/src/java/org/apache/fop/datatypes/LengthPair.java +++ b/src/java/org/apache/fop/datatypes/LengthPair.java @@ -108,5 +108,11 @@ public class LengthPair implements CompoundDatatype { return this.bpd; } + public String toString() { + return "LengthPair[" + + "ipd:" + getIPD().getObject() + + ", bpd:" + getBPD().getObject() + "]"; + } + } diff --git a/src/java/org/apache/fop/datatypes/LengthRange.java b/src/java/org/apache/fop/datatypes/LengthRange.java index b3db3a3c6..1fca6f28e 100644 --- a/src/java/org/apache/fop/datatypes/LengthRange.java +++ b/src/java/org/apache/fop/datatypes/LengthRange.java @@ -227,5 +227,12 @@ public class LengthRange implements CompoundDatatype { return this.optimum; } + public String toString() { + return "LengthRange[" + + "min:" + getMinimum().getObject() + + ", max:" + getMaximum().getObject() + + ", opt:" + getOptimum().getObject() + "]"; + } + } diff --git a/src/java/org/apache/fop/datatypes/Space.java b/src/java/org/apache/fop/datatypes/Space.java index 90ef2cb8d..b3469c513 100644 --- a/src/java/org/apache/fop/datatypes/Space.java +++ b/src/java/org/apache/fop/datatypes/Space.java @@ -125,5 +125,14 @@ public class Space extends LengthRange { return this.conditionality; } + public String toString() { + return "Space[" + + "min:" + getMinimum().getObject() + + ", max:" + getMaximum().getObject() + + ", opt:" + getOptimum().getObject() + + ", precedence:" + precedence.getObject() + + ", conditionality:" + conditionality.getObject() + "]"; + } + } |