Package org.openiaml.model.inference

Examples of org.openiaml.model.inference.EcoreInferenceHandler


*/
public class EcoreInferenceHandlerFactory implements ICreateElementsFactory {

  @Override
  public ICreateElements createHandler(EObject model) {
    return new EcoreInferenceHandler(model.eResource());
  }
View Full Code Here


  protected CommandResult doExecuteWithResult(
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(container.eResource());
    try {
      created = eih.createElement(container, elementType, containerFeature);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult(created);
   
View Full Code Here

  protected CommandResult doExecuteWithResult(
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      eih.addReference(element, reference, value);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult();
   
View Full Code Here

  protected CommandResult doExecuteWithResult(
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      eih.deleteElement(object, container, containerFeature);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult();
   
View Full Code Here

   
    this.emfInferenceHandler.setMonitor(monitor);
    this.emfInferenceHandler.setInfo(info);
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      eih.setValue(element, reference, value);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult();
   
View Full Code Here

  protected CommandResult doExecuteWithResult(
      IProgressMonitor monitor, IAdaptable info)
      throws ExecutionException {
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      created = eih.createRelationship(container, elementType, source, target, containerFeature, sourceFeature, targetFeature);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult(created);
   
View Full Code Here

      return errorStatus(e);
    }
    monitor.worked(10);
   
    // load the handler to remove elements
    EcoreInferenceHandler handler = new EcoreInferenceHandler(loadedModel.eResource());
   
    // actually remove the edges
    IStatus status = doRemovePhantomEdges(loadedModel, handler, new SubProgressMonitor(monitor, 50));
    if (!status.isOK()) {
      return status;
View Full Code Here

TOP

Related Classes of org.openiaml.model.inference.EcoreInferenceHandler

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.