Package org.apache.fop.fo
Class ElementMapping
java.lang.Object
org.apache.fop.fo.ElementMapping
- Direct Known Subclasses:
AFPElementMapping
,BatikExtensionElementMapping
,ExtensionElementMapping
,FOElementMapping
,InternalElementMapping
,OldExtensionElementMapping
,PCLElementMapping
,PDFElementMapping
,PSExtensionElementMapping
,RDFElementMapping
,SVGElementMapping
,XMPElementMapping
Abstract base class for Element Mappings (including FO Element Mappings)
which provide the framework of valid elements and attributes for a given
namespace.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
constant for defining the default valueprotected HashMap<String,
ElementMapping.Maker> The HashMap table of formatting objects defined by the ElementMappingprotected String
The namespace for the ElementMapping -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DOMImplementation
Returns the DOMImplementation used by this ElementMapping.Returns the namespace URI for this element mappinggetTable()
Returns a HashMap of maker objects for this element mappingprotected abstract void
Initializes the set of maker objects associated with this ElementMappingboolean
isAttributeProperty
(org.apache.xmlgraphics.util.QName attributeName) Indicates whether a particular attribute of the namespace is a property, i.e.
-
Field Details
-
DEFAULT
constant for defining the default value- See Also:
-
foObjs
The HashMap table of formatting objects defined by the ElementMapping -
namespaceURI
The namespace for the ElementMapping
-
-
Constructor Details
-
ElementMapping
public ElementMapping()
-
-
Method Details
-
getTable
Returns a HashMap of maker objects for this element mapping- Returns:
- Table of Maker objects for this ElementMapping
-
getNamespaceURI
Returns the namespace URI for this element mapping- Returns:
- Namespace URI for this element mapping
-
getDOMImplementation
Returns the DOMImplementation used by this ElementMapping. The value returned may be null for cases where no DOM is used to represent the element tree (XSL-FO, for example). This method is used by the intermediate format to instantiate the right kind of DOM document for foreign objects. For example, SVG handled through Apache Batik has to use a special DOMImplementation.- Returns:
- the DOMImplementation used by this ElementMapping, may be null
-
getDefaultDOMImplementation
- Returns:
- the default DOMImplementation when no specialized DOM is necessary.
-
getStandardPrefix
- Returns:
- the standard namespace prefix for this namespace or null if it is not known.
-
isAttributeProperty
public boolean isAttributeProperty(org.apache.xmlgraphics.util.QName attributeName) Indicates whether a particular attribute of the namespace is a property, i.e. the attribute value should be converted to a property value.- Parameters:
attributeName
- the attribute name- Returns:
- true if the attribute should be converted to a property
-
initialize
protected abstract void initialize()Initializes the set of maker objects associated with this ElementMapping
-