Package Galaxy.Tree.Tool.Command

Examples of Galaxy.Tree.Tool.Command.Command


    super(Command.class);
  }
  @Override
  public Map<String, String> mapFromObject(Object o) {
    // TODO Auto-generated method stub
    Command c = (Command) o;
    Map<String, String> myMapping;
    myMapping = new HashMap<String, String>();
    myMapping.put(NAME_TAG, "command");
    if(c.getCommand() != null)
      myMapping.put(VALUE_TAG, c.getCommand());
    if(c.getInterpereter()!= null)
      myMapping.put("interpreter", c.getInterpereter());
    return myMapping;
  }
View Full Code Here


    return myMapping;
  }

  @Override
  public Object mapToObject(Map<String, String> attributes) {
    Command command;
   
    String comm;
    List<String> tokens = new ArrayList();
    final String interp;
    comm = attributes.get(VALUE_TAG);
    interp = attributes.get("interpreter");
   
   
    command = new Command(interp, comm);
    return command;
  }
View Full Code Here

TOP

Related Classes of Galaxy.Tree.Tool.Command.Command

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.