public class ElementMappingRegistry extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<String,ElementMapping.Maker>> |
fobjTable
Table mapping element names to the makers of objects
representing formatting objects.
|
protected Map<String,ElementMapping> |
namespaces
Map of mapped namespaces and their associated ElementMapping instances.
|
Constructor and Description |
---|
ElementMappingRegistry(FopFactory factory)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addElementMapping(ElementMapping mapping)
Add the element mapping.
|
void |
addElementMapping(String mappingClassName)
Add the element mapping with the given class name.
|
ElementMapping.Maker |
findFOMaker(String namespaceURI,
String localName,
Locator locator)
Finds the Maker used to create node objects of a particular type
|
DOMImplementation |
getDOMImplementationForNamespace(String namespaceURI)
Tries to determine the DOMImplementation that is used to handled a particular namespace.
|
ElementMapping |
getElementMapping(String namespaceURI)
Returns an ElementMapping class for a namespace URI if there is one.
|
boolean |
isKnownNamespace(String namespaceURI)
Indicates whether a namespace is known to FOP.
|
protected Map<String,Map<String,ElementMapping.Maker>> fobjTable
protected Map<String,ElementMapping> namespaces
public ElementMappingRegistry(FopFactory factory)
factory
- the Fop Factorypublic void addElementMapping(String mappingClassName) throws IllegalArgumentException
mappingClassName
- the class name representing the element mapping.IllegalArgumentException
- if there was not such element mapping.public void addElementMapping(ElementMapping mapping)
mapping
- the element mapping instancepublic ElementMapping.Maker findFOMaker(String namespaceURI, String localName, Locator locator) throws FOPException
namespaceURI
- URI for the namespace of the elementlocalName
- name of the Elementlocator
- the Locator instance for context informationFOPException
- if a Maker could not be found for a bound namespace.public DOMImplementation getDOMImplementationForNamespace(String namespaceURI)
namespaceURI
- the namespace URIpublic ElementMapping getElementMapping(String namespaceURI)
namespaceURI
- the namespace URIpublic boolean isKnownNamespace(String namespaceURI)
namespaceURI
- the namespace URICopyright © 2025 Apache Software Foundation. All rights reserved.