use of org.whole.lang.xsd.codebase.MappingActions in project whole by wholeplatform.
the class LegacyOperationsDeployer method deploy.
public void deploy(ReflectionFactory platform) {
// TODO move to MappingStrategyRegistry?
MappingStrategyRegistry.instance().putMappingStrategy(new CommonsMappingStrategy());
InterpreterOperation.interpret(new SchemaActions().create());
platform.addOperationFactory(XsdLanguageKit.URI, PrettyPrinterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
return new XsdPrettyPrinterVisitor();
}
});
// TODO rewrite using queries/actions in SchemaActions
// platform.addOperationFactory(XsdLanguageKit.ID, ArtifactsGeneratorOperation.ID,
// new IVisitorFactory() {
// public IVisitor create(IOperation operation, int stage) {
// return new Xsd2ModelsArtifactsGeneratorVisitor((ArtifactsGeneratorOperation) operation);
// }
// });
InterpreterOperation.interpret(new MappingActions().create());
// FIXME requires WorkflowsInterpreter see WorkflowsInterpreterDeployer
XsdRegistry.initialize();
platform.addPersistenceKit("org.whole.lang.xsd.XsdSourceEditor", XsdPersistenceKit.instance());
platform.addPersistenceKit("org.whole.lang.xsd.XsiSourceEditor", XsiPersistenceKit.instance());
InterpreterOperation.interpret(new SchemaModelsActions().create());
}
Aggregations