|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.apl.jxc.mapper.XMLMapper
public class XMLMapper
Performs a mapping (transformation) of some XML from one schema to another.
| Constructor Summary | |
|---|---|
XMLMapper()
Constructs a new XMLMapper. |
|
| Method Summary | |
|---|---|
void |
addMapping(AbstractXMLMapping mapping)
Adds a mapping to the mapper. |
void |
addMappings(java.util.Iterator<AbstractXMLMapping> iterator)
Clears any previously added mappings and adds any mappings found in the iterator. |
void |
addMappingsFromSavedMapping(java.io.File savedMapping)
Clears any previously added mappings and adds any mappings found in the saved XML mapping file. |
org.w3c.dom.Document |
apply(org.w3c.dom.Document xml)
Applies the mapping to an XML Document |
org.w3c.dom.Document |
apply(java.io.File xmlFile)
Applies the mapping to an XML File. |
org.w3c.dom.Document |
apply(java.lang.String xml)
Applies the mapping to an XML String |
void |
clearMappings()
Clears any previously added mappings. |
java.lang.String |
getGeneratedXSL()
Returns the XSL source code generated for this mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLMapper()
| Method Detail |
|---|
public void clearMappings()
public void addMapping(AbstractXMLMapping mapping)
mapping - the mapper to be added
public void addMappingsFromSavedMapping(java.io.File savedMapping)
throws XMLMapperException
savedMapping - File containing a saved XML mapping definition
XMLMapperException - when an exception occurs applying the saved mappingpublic void addMappings(java.util.Iterator<AbstractXMLMapping> iterator)
iterator - the mapping iterator
XMLMapperException - when an exception occurs applying the mappings
public org.w3c.dom.Document apply(java.lang.String xml)
throws XMLMapperException
xml - XML String to be mapped
XMLMapperException - when an exception occurs mapping the XML
public org.w3c.dom.Document apply(java.io.File xmlFile)
throws XMLMapperException
xmlFile - XML File to be mapped
XMLMapperException - when an exception occurs mapping the XML
public org.w3c.dom.Document apply(org.w3c.dom.Document xml)
throws XMLMapperException
xml - XML Document to be mapped
XMLMapperException - when an exception occurs mapping the XMLpublic java.lang.String getGeneratedXSL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||