Package Galaxy.Tree.Tool.Database.DBValue

Examples of Galaxy.Tree.Tool.Database.DBValue.ValueTranslationValue


  @Override
  public Map<String, String> mapFromObject(Object o) {
    // TODO Auto-generated method stub
    Map<String,String> mymap = new TreeMap<String,String>();
    if(o instanceof ValueTranslationValue){
      ValueTranslationValue v = (ValueTranslationValue)o;
      mymap.put("galaxy_value", v.getGalaxyValue());
      mymap.put("remote_value", v.getRemoteValue());
    }
    else if(o instanceof AppendParamValue){
      AppendParamValue a = (AppendParamValue)o;
      mymap.put("name", a.getName());
      mymap.put("missing", a.getMissing());
View Full Code Here


      appendParamValue.setName(attributes.get("name"));
      return appendParamValue;
    }
    else if(attributes.containsKey("galaxy_value") ||
        attributes.containsKey("remote_value")){
      ValueTranslationValue valueTranslationValue =
            new ValueTranslationValue();
      valueTranslationValue.setGalaxyValue(attributes.get("galaxy_value"));
      valueTranslationValue.setRemoteValue(attributes.get("remote_value"));
      return valueTranslationValue;
    }
    else
      return null;
  }
View Full Code Here

TOP

Related Classes of Galaxy.Tree.Tool.Database.DBValue.ValueTranslationValue

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.