aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties/CommonAccessibility.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-20 11:50:04 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-20 11:50:04 +0000
commitaecd6c8c0890ac8008a9938b20c4e7a7d5c3cb5a (patch)
tree6c305a3ed40529ff983e4ba08d77d35296e5a8e0 /src/java/org/apache/fop/fo/properties/CommonAccessibility.java
parent3920b33fcc3928069bcf4c79cae789c0843462a7 (diff)
downloadxmlgraphics-fop-aecd6c8c0890ac8008a9938b20c4e7a7d5c3cb5a.tar.gz
xmlgraphics-fop-aecd6c8c0890ac8008a9938b20c4e7a7d5c3cb5a.zip
Third phase of performance improvement.
- Follow the spec for property types and names. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/properties/CommonAccessibility.java')
-rw-r--r--src/java/org/apache/fop/fo/properties/CommonAccessibility.java26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonAccessibility.java b/src/java/org/apache/fop/fo/properties/CommonAccessibility.java
index e3ad66e43..333099b9f 100644
--- a/src/java/org/apache/fop/fo/properties/CommonAccessibility.java
+++ b/src/java/org/apache/fop/fo/properties/CommonAccessibility.java
@@ -18,16 +18,40 @@
package org.apache.fop.fo.properties;
+import org.apache.fop.fo.Constants;
+import org.apache.fop.fo.PropertyList;
+
/**
* Store all common accessibility properties.
* See Sec 7.4 of the XSL-FO Standard.
* Public "structure" allows direct member access.
*/
public class CommonAccessibility {
+ /**
+ * The "source-doc" property.
+ */
public String sourceDoc = null;
+
+ /**
+ * The "role" property.
+ */
public String role = null;
- public CommonAccessibility() {
+ /**
+ * Create a CommonAbsolutePosition object.
+ * @param pList The PropertyList with propery values.
+ */
+ public CommonAccessibility(PropertyList pList) {
+ sourceDoc = pList.get(Constants.PR_SOURCE_DOCUMENT).getString();
+ if ("none".equals(sourceDoc)) {
+ sourceDoc = null;
+ }
+ role = pList.get(Constants.PR_ROLE).getString();
+ if ("none".equals(role)) {
+ role = null;
+ }
+
}
+
}