Package org.apache.fop.fo.properties
Class CommonAccessibility
- java.lang.Object
-
- org.apache.fop.fo.properties.CommonAccessibility
-
public final class CommonAccessibility extends java.lang.Object
The "role" and "source-document" properties, see Section 7.5 of the XSL-FO 1.1 Recommendation.
-
-
Field Summary
Fields Modifier and Type Field Description private static CommonAccessibility
DEFAULT_INSTANCE
private java.lang.String
role
private java.lang.String
sourceDocument
-
Constructor Summary
Constructors Modifier Constructor Description private
CommonAccessibility(java.lang.String sourceDocument, java.lang.String role)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommonAccessibility
getInstance(PropertyList propertyList)
Returns an instance that matches the values (if any) in the given property list.java.lang.String
getRole()
Returns the value of the role property.java.lang.String
getSourceDocument()
Returns the value of the source-document property.
-
-
-
Field Detail
-
DEFAULT_INSTANCE
private static final CommonAccessibility DEFAULT_INSTANCE
-
sourceDocument
private final java.lang.String sourceDocument
-
role
private final java.lang.String role
-
-
Method Detail
-
getInstance
public static CommonAccessibility getInstance(PropertyList propertyList) throws PropertyException
Returns an instance that matches the values (if any) in the given property list.- Parameters:
propertyList
- a list from which to retrieve the accessibility properties- Returns:
- the corresponding instance
- Throws:
PropertyException
- if a problem occurs while retrieving the properties
-
getSourceDocument
public java.lang.String getSourceDocument()
Returns the value of the source-document property.- Returns:
- the source document, or null if the property was set to "none"
-
getRole
public java.lang.String getRole()
Returns the value of the role property.- Returns:
- the role, or null if the property was set to "none"
-
-