aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFObject.java
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2009-09-18 17:10:42 +0000
committerVincent Hennebert <vhennebert@apache.org>2009-09-18 17:10:42 +0000
commit0e5a789b6b0604bb9c6cc9b782c22f490917e9f9 (patch)
tree70af78b83ebd8d83f4576c8b9329113ee34aae0f /src/java/org/apache/fop/pdf/PDFObject.java
parentc5d9b312e01efc7f96a30043d73945594504c7d0 (diff)
parent9b49126cd645f4377d1bb56d5078a8d4a0cd491e (diff)
downloadxmlgraphics-fop-0e5a789b6b0604bb9c6cc9b782c22f490917e9f9.tar.gz
xmlgraphics-fop-0e5a789b6b0604bb9c6cc9b782c22f490917e9f9.zip
Merged changes from Trunk up to revision 816269
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@816718 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFObject.java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFObject.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFObject.java b/src/java/org/apache/fop/pdf/PDFObject.java
index 97e9f4976..21ff82394 100644
--- a/src/java/org/apache/fop/pdf/PDFObject.java
+++ b/src/java/org/apache/fop/pdf/PDFObject.java
@@ -393,4 +393,20 @@ public abstract class PDFObject implements PDFWritable {
return formatDateTime(time, TimeZone.getDefault());
}
+ /**
+ * Check if the other PDFObject has the same content as the current object.
+ * <p>
+ * Note: This function has a contract which is less binding than
+ * {@link #equals(Object)}. Whereas equals would require all values to be
+ * identical, this method is not required to check everything. In the case
+ * of PDFObjects, this means that the overriding function does not have to
+ * check for {@link #getObjectID()}.
+ *
+ * @param o
+ * object to compare to.
+ * @return true if the other object has the same content.
+ */
+ protected boolean contentEquals(PDFObject o) {
+ return this.equals(o);
+ }
}