Package com.rits.cloning

Examples of com.rits.cloning.Cloner


  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    Worksheet wk = workspace.getWorksheet(worksheetId);
    SuperSelection selection = getSuperSelection(wk);
    String encoding = wk.getEncoding();
    // Clone the worksheet just before the invocation
    Cloner cloner = new Cloner();
    this.worksheetBeforeInvocation = cloner.deepClone(wk);
   
    OntologyManager ontMgr = workspace.getOntologyManager();
    String alignmentId = AlignmentManager.Instance().constructAlignmentId(workspace.getId(), worksheetId);
    Alignment alignment = AlignmentManager.Instance().getAlignment(alignmentId);
    if (alignment == null) {
View Full Code Here


   
    UpdateContainer c = new UpdateContainer();
    Worksheet wk = workspace.getWorksheet(worksheetId);
    SuperSelection selection = getSuperSelection(wk);
    // Clone the worksheet just before the invocation
    Cloner cloner = new Cloner();
    this.worksheetBeforeInvocation = cloner.deepClone(wk);

    AlignmentManager mgr = AlignmentManager.Instance();
    String alignmentId = mgr.constructAlignmentId(workspace.getId(), worksheetId);
    Alignment al = mgr.getAlignment(alignmentId);
   
View Full Code Here

    this.modelIds = patternIds;
  }

    public LabeledLink clone() {
     
      Cloner cloner = new Cloner();
      return cloner.deepClone(this);
    }
View Full Code Here

      isForced = value;
    }
   
    public Node clone() {

      Cloner cloner = new Cloner();
      return cloner.deepClone(this);

//      switch (this.type) {
//      case None: return new SimpleNode(this.getId(), this.getLabel());
//      case ColumnNode: return new ColumnNode(this.getId(), ((ColumnNode)this).getHNodeId(), ((ColumnNode)this).getColumnName());
//      case LiteralNode: return new LiteralNode(this.getId(), ((LiteralNode)this).getValue(), ((LiteralNode)this).getDatatype());
View Full Code Here

    super(id, type);
  }
 
    public CompactLink clone() {
     
      Cloner cloner = new Cloner();
      return cloner.deepClone(this);
    }
View Full Code Here

  public Set<ColumnNode> getSourceColumnNodes() {
    return sourceColumnNodes;
  }

  public Alignment getAlignmentClone() {
    Cloner cloner = new Cloner();
//    cloner.setDumpClonedClasses(true);
    cloner.dontClone(OntologyManager.class);
    cloner.dontCloneInstanceOf(OntologyManager.class);
    cloner.dontClone(DirectedWeightedMultigraph.class);
    cloner.dontCloneInstanceOf(DirectedWeightedMultigraph.class);
    return cloner.deepClone(this);
  }
View Full Code Here

    xmlWriter = StaxUtils.createXMLStreamWriter(buffer,
        getEncoding(message));
  }
 
  private void loadSoapBodyToBuffer(Message message){
    Cloner cloner = new Cloner();
    MessageContentsList original = MessageContentsList.getContentsList(message);
    MessageContentsList clone = cloner.deepClone(original);
    message.setContent(List.class, clone);
    handleMessage(message);
    message.setContent(List.class, original);
  }
View Full Code Here

        Patch p = DiffUtils.diff(first, second);
        return p.getDeltas().size();
    }

    public static HarEntry copyHarEntry(HarEntry entry) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        Cloner cloner = new Cloner();
        return cloner.deepClone(entry);
    }
View Full Code Here

TOP

Related Classes of com.rits.cloning.Cloner

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.