com.ibm.di.fc.emf
Class UpdateSchema
java.lang.Object
com.ibm.di.fc.emf.UpdateSchema
public class UpdateSchema
- extends Object
Provides a discover schema functionality for the EMF XMLToSDO and SDOToXML Function Components.
|
Constructor Summary |
UpdateSchema(String xsdFile,
Map uriToPrefixMap,
boolean alwaysPrefix,
boolean isSDOToXML,
ResourceHash resHash)
Initialize the UpdateSchema instance. |
|
Method Summary |
void |
updateSchema(FunctionConfig config)
Adds items to the function configuration corresponding to the XML elements and attributes defined in the XML
Schema file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateSchema
public UpdateSchema(String xsdFile,
Map uriToPrefixMap,
boolean alwaysPrefix,
boolean isSDOToXML,
ResourceHash resHash)
- Initialize the UpdateSchema instance.
- Parameters:
xsdFile - The XML Schema file location.uriToPrefixMap - The namespace prefix to namespace URI map.alwaysPrefix - If true all XML elements are
namespace prefixed.isSDOToXML - If true specifies that the object will
execute to discover schema functionality for the EMF
XMLToSDO Function Component. If false
discover function for EMF SDOToXML Function Component
will be executed.
updateSchema
public void updateSchema(FunctionConfig config)
throws Exception
- Adds items to the function configuration corresponding to the XML elements and attributes defined in the XML
Schema file.
- Parameters:
config - the function configuration object.
- Throws:
Exception - if the XML Schema file passed to the constructor during object creation is not found or is an invalid
XML Schema file.