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
public abstract class ElementMapping extends java.lang.ObjectAbstract 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
Nested Classes Modifier and Type Class Description static classElementMapping.MakerBase class for all Makers.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULTconstant for defining the default valueprotected java.util.HashMap<java.lang.String,ElementMapping.Maker>foObjsThe HashMap table of formatting objects defined by the ElementMappingprotected java.lang.StringnamespaceURIThe namespace for the ElementMapping
-
Constructor Summary
Constructors Constructor Description ElementMapping()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static org.w3c.dom.DOMImplementationgetDefaultDOMImplementation()org.w3c.dom.DOMImplementationgetDOMImplementation()Returns the DOMImplementation used by this ElementMapping.java.lang.StringgetNamespaceURI()Returns the namespace URI for this element mappingjava.lang.StringgetStandardPrefix()java.util.HashMap<java.lang.String,ElementMapping.Maker>getTable()Returns a HashMap of maker objects for this element mappingprotected abstract voidinitialize()Initializes the set of maker objects associated with this ElementMappingbooleanisAttributeProperty(org.apache.xmlgraphics.util.QName attributeName)Indicates whether a particular attribute of the namespace is a property, i.e.
-
-
-
Field Detail
-
DEFAULT
public static final java.lang.String DEFAULT
constant for defining the default value- See Also:
- Constant Field Values
-
foObjs
protected java.util.HashMap<java.lang.String,ElementMapping.Maker> foObjs
The HashMap table of formatting objects defined by the ElementMapping
-
namespaceURI
protected java.lang.String namespaceURI
The namespace for the ElementMapping
-
-
Method Detail
-
getTable
public java.util.HashMap<java.lang.String,ElementMapping.Maker> getTable()
Returns a HashMap of maker objects for this element mapping- Returns:
- Table of Maker objects for this ElementMapping
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Returns the namespace URI for this element mapping- Returns:
- Namespace URI for this element mapping
-
getDOMImplementation
public org.w3c.dom.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.- Returns:
- the DOMImplementation used by this ElementMapping, may be null
-
getDefaultDOMImplementation
public static org.w3c.dom.DOMImplementation getDefaultDOMImplementation()
- Returns:
- the default DOMImplementation when no specialized DOM is necessary.
-
getStandardPrefix
public java.lang.String 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
-
-