Package com.webdeninteractive.xbotts.Mapping.compiler

Examples of com.webdeninteractive.xbotts.Mapping.compiler.Linkable


          String argName = transformer.getInputArguments()[i];
          TransformerArgument ta = getTransformer().getTransferArgument(argName);

         
          for(int j=0; j<ta.getHardLinkSources().length; j++){
            Linkable source = ta.getHardLinkSources()[j];

                        getTransformer().getLinkPanel().removeLink(source, ta);

          }
       
        }

        for(int i=0; i<transformer.getOutputArguments().length; i++){
          String argName = transformer.getOutputArguments()[i];
          TransformerArgument ta = getTransformer().getTransferArgument(argName);
         
          for(int j=0; j<ta.getHardLinkTargets().length; j++){
            Linkable target = ta.getHardLinkTargets()[j];

                        getTransformer().getLinkPanel().removeLink(ta, target);
          }
        }
       
View Full Code Here


  @Override
  public void afterAdded() {
    SchemaTreeModel stm = (SchemaTreeModel) (getLinkPanel().getTargetTree().getModel());

    Linkable dummyNode = (Linkable) stm.getNodesIndexedByName().get("dummy1");
   
    for(int i=0; i<getOutputArguments().length; i++){
      TransformerArgument outputTA = getTransferArgument(getOutputArguments()[i]);
     
      getLinkPanel().addLink(outputTA, dummyNode);
View Full Code Here

        JMenuItem menuItem = new JMenuItem("Unlink");
        menuItem.addActionListener(new ActionListener(){

      public void actionPerformed(ActionEvent e) {
        if(getHardLinkSources().length>0){
          Linkable source = getHardLinkSources()[0];
          getTransformer().getArgumentSourceMap().remove(getName());
          getTransformer().getLinkPanel().removeLink(source, TransformerArgument.this);
        }else if(getHardLinkTargets().length>0){
          Linkable target = getHardLinkTargets()[0];
          getTransformer().getLinkPanel().removeLink(TransformerArgument.this, target);         
        }
      }
         
        });
View Full Code Here

          if(t!=null){
           
            try {
              DataFlavor[] flavors = t.getTransferDataFlavors( );
              if (flavors[0].equals(Linkable.LINKABLE_FLAVOR)) {
                Linkable src = (Linkable) t.getTransferData( Linkable.LINKABLE_FLAVOR );
                transformer.getLinkPanel().addLink(src, this);
              }
            } catch(Exception ufe) {
            }
          }
View Full Code Here

          if(name.startsWith("@")){//strip attribute token ()
              name=name.substring((name.indexOf("@")+1), name.length( ));
          }
           */
          Iterator iter = children.iterator( );
          Linkable child = null;
          if(name.indexOf("[")==-1){
              while(iter.hasNext( )){
                  child = (Linkable) iter.next( );
                  if(child.getName( ).equals(name)){
                      return child;
                  }
              }
              return null;
          }else{
              int index = Integer.parseInt(name.substring(name.indexOf("[")+1, name.indexOf("]")));
              String n = name.substring(0, name.indexOf("["));
              int current=0;
              while(iter.hasNext( )){
                  Linkable l =(Linkable) iter.next( );
                  if(l.getName( ).equals(n)){
                      if(current==index) return l;
                      current++;
                  }
              }
          }
View Full Code Here

TOP

Related Classes of com.webdeninteractive.xbotts.Mapping.compiler.Linkable

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.