Package Galaxy.Tree.Tool.Requirements

Examples of Galaxy.Tree.Tool.Requirements.Requirement


    super(Requirement.class);
  }
  @Override
  public Map<String, String> mapFromObject(Object o) {
    // TODO Auto-generated method stub
    Requirement c = (Requirement) o;
    Map<String, String> myMapping;
    myMapping = new HashMap<String, String>();
    myMapping.put("type", c.getType());
    myMapping.put(NAME_TAG, "requirement");
    myMapping.put(VALUE_TAG, c.getValue());
    return myMapping;
  }
View Full Code Here


  @Override
  public Object mapToObject(Map<String, String> attributes) {
    String contents;
    String type = null;
    Requirement req;
   
    contents = attributes.get(VALUE_TAG);
    if(attributes.containsKey("type"))
      type=attributes.get("type");
   
    req = new Requirement();
    req.setType(type);
    req.setValue(contents);
   
    return req;
  }
View Full Code Here

TOP

Related Classes of Galaxy.Tree.Tool.Requirements.Requirement

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.