org.apache.fop.fo
Class ElementMapping
java.lang.Object
org.apache.fop.fo.ElementMapping
public abstract class ElementMapping
extends java.lang.Object
Abstract base class for Element Mappings (including FO Element Mappings)
which provide the framework of valid elements and attibutes for a given
namespace.
static String | DEFAULT - constant for defining the default value
|
protected HashMap | foObjs - The HashMap table of formatting objects defined by the ElementMapping
|
protected String | namespaceURI - The namespace for the ElementMapping
|
DEFAULT
public static final String DEFAULT
constant for defining the default value
foObjs
protected HashMap foObjs
The HashMap table of formatting objects defined by the ElementMapping
namespaceURI
protected String namespaceURI
The namespace for the ElementMapping
getDOMImplementation
public DOMImplementation 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.
- the DOMImplementation used by this ElementMapping, may be null
getDefaultDOMImplementation
public static DOMImplementation getDefaultDOMImplementation()
- the default DOMImplementation when no specialized DOM is necessary.
getNamespaceURI
public String getNamespaceURI()
Returns the namespace URI for this element mapping
- Namespace URI for this element mapping
getStandardPrefix
public String getStandardPrefix()
- the standard namespace prefix for this namespace or null if it is not known.
getTable
public HashMap getTable()
Returns a HashMap of maker objects for this element mapping
- Table of Maker objects for this ElementMapping
initialize
protected abstract void initialize()
Initializes the set of maker objects associated with this ElementMapping
isAttributeProperty
public boolean isAttributeProperty(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.
attributeName
- the attribute name
- true if the attribute should be converted to a property
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.