|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fo.ElementMappingRegistry
public class ElementMappingRegistry
This class keeps track of all configured ElementMapping implementations which are responsible for properly handling all kinds of different XML namespaces.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,ElementMapping.Maker>> |
fobjTable
Table mapping element names to the makers of objects representing formatting objects. |
protected java.util.Map<java.lang.String,ElementMapping> |
namespaces
Map of mapped namespaces and their associated ElementMapping instances. |
| Constructor Summary | |
|---|---|
ElementMappingRegistry(FopFactory factory)
Main constructor. |
|
| Method Summary | |
|---|---|
void |
addElementMapping(ElementMapping mapping)
Add the element mapping. |
void |
addElementMapping(java.lang.String mappingClassName)
Add the element mapping with the given class name. |
ElementMapping.Maker |
findFOMaker(java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Locator locator)
Finds the Maker used to create node objects of a particular type |
org.w3c.dom.DOMImplementation |
getDOMImplementationForNamespace(java.lang.String namespaceURI)
Tries to determine the DOMImplementation that is used to handled a particular namespace. |
ElementMapping |
getElementMapping(java.lang.String namespaceURI)
Returns an ElementMapping class for a namespace URI if there is one. |
boolean |
isKnownNamespace(java.lang.String namespaceURI)
Indicates whether a namespace is known to FOP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,ElementMapping.Maker>> fobjTable
protected java.util.Map<java.lang.String,ElementMapping> namespaces
| Constructor Detail |
|---|
public ElementMappingRegistry(FopFactory factory)
factory - the Fop Factory| Method Detail |
|---|
public void addElementMapping(java.lang.String mappingClassName)
throws java.lang.IllegalArgumentException
mappingClassName - the class name representing the element mapping.
java.lang.IllegalArgumentException - if there was not such element mapping.public void addElementMapping(ElementMapping mapping)
mapping - the element mapping instance
public ElementMapping.Maker findFOMaker(java.lang.String namespaceURI,
java.lang.String localName,
org.xml.sax.Locator locator)
throws FOPException
namespaceURI - URI for the namespace of the elementlocalName - name of the Elementlocator - the Locator instance for context information
FOPException - if a Maker could not be found for a bound namespace.public org.w3c.dom.DOMImplementation getDOMImplementationForNamespace(java.lang.String namespaceURI)
namespaceURI - the namespace URI
public ElementMapping getElementMapping(java.lang.String namespaceURI)
namespaceURI - the namespace URI
public boolean isKnownNamespace(java.lang.String namespaceURI)
namespaceURI - the namespace URI
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||