Package edu.stanford.bmir.protege.web.server.change

Examples of edu.stanford.bmir.protege.web.server.change.FindAndReplaceIRIPrefixChangeGenerator


    protected SetEntityCrudKitSettingsResult execute(SetEntityCrudKitSettingsAction action, OWLAPIProject project, ExecutionContext executionContext) {
        project.setEntityCrudKitSettings(action.getToSettings());
        if(action.getPrefixUpdateStrategy() == IRIPrefixUpdateStrategy.FIND_AND_REPLACE) {
            String fromPrefix = action.getFromSettings().getPrefixSettings().getIRIPrefix();
            String toPrefix = action.getToSettings().getPrefixSettings().getIRIPrefix();
            FindAndReplaceIRIPrefixChangeGenerator changeGenerator = new FindAndReplaceIRIPrefixChangeGenerator(fromPrefix, toPrefix);
            project.applyChanges(executionContext.getUserId(), changeGenerator, new FixedMessageChangeDescriptionGenerator<Void>("Replaced IRI prefix &lt;" + fromPrefix + "&gt; with &lt;" + toPrefix + "&gt;"));
        }
        return new SetEntityCrudKitSettingsResult();
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.change.FindAndReplaceIRIPrefixChangeGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.