Package org.destecs.core.parsers

Examples of org.destecs.core.parsers.SdpParserWrapper


  private static List<SetDesignParametersdesignParametersStructParam> loadSharedDesignParameters(
      String sharedDesignParamData) throws Exception
  {
    List<SetDesignParametersdesignParametersStructParam> shareadDesignParameters = new Vector<SetDesignParametersdesignParametersStructParam>();

    SdpParserWrapper parser = new SdpParserWrapper();
    HashMap<String, Object> result = parser.parse(new File("memory"), sharedDesignParamData);

    for (Object key : result.keySet())
    {
      String name = key.toString();
      List<Integer> size = new Vector<Integer>();
View Full Code Here



  private void setSharedDesignParameter(String sdpName,
      List<Double> value, ILaunchConfigurationWorkingCopy configuration) {
   
    SdpParserWrapper parser = new SdpParserWrapper();

    String data;
    try
    {
      data = configuration.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SHARED_DESIGN_PARAM, "");

      if (data != null)
      {
        HashMap<String, Object> sdps = parser.parse(new File("memory"), data);
        for (Entry<String, Object> entry : sdps.entrySet()) {
          if(stripName(entry.getKey()).equals(sdpName))
          {
            entry.setValue(value);
            break;
View Full Code Here

    return result;
  }


  private List<Double> findBaseSdp(ILaunchConfiguration configuration,String sdpName) {
    SdpParserWrapper parser = new SdpParserWrapper();
   
    String data;
    try
    {
      data = configuration.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SHARED_DESIGN_PARAM, "");

      if (data != null)
      {
        HashMap<String, Object> sdps = parser.parse(new File("memory"), data);
        Object o = null;
        for (Entry<String, Object> entry : sdps.entrySet()) {
          if(stripName(entry.getKey()).equals(sdpName))
          {
            o = entry.getValue();
View Full Code Here

  }

  private void setSharedDesignParameter(String name, Double value,
      ILaunchConfigurationWorkingCopy configuration)
  {
    SdpParserWrapper parser = new SdpParserWrapper();

    String data;
    try
    {
      data = configuration.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SHARED_DESIGN_PARAM, "");

      if (data != null)
      {
        HashMap<String, Object> sdps = parser.parse(new File("memory"), data);
        sdps.put(name, value);
        data = "";
        Iterator<Entry<String, Object>> itr = sdps.entrySet().iterator();
        while (itr.hasNext())
        {
View Full Code Here

  {
    @SuppressWarnings("rawtypes")
    @Override
    protected ParserWrapper getParser()
    {
      return new SdpParserWrapper();
    }
View Full Code Here

    dimensions.clear();
    if (sdps != null)
    {
      sdps.clear();
    }
    SdpParserWrapper parser = new SdpParserWrapper();

    String data;
    try
    {
      data = configuration.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SHARED_DESIGN_PARAM, "");

      if (data != null)
      {
        sdps = parser.parse(new File("memory"), data);

        if (sdps == null)
        {
          sdps = new HashMap<String, Object>();
        }
View Full Code Here

        {
          String data;
          try
          {
            data = baseConfig.getAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_SHARED_DESIGN_PARAM, "");
            SdpParserWrapper parser = new SdpParserWrapper();

            if (!data.isEmpty())
            {
              HashMap<String, Object> result = parser.parse(new File("memory"), data);
              if (result != null)
              {
                sdps.clear();
                sdps.addAll(filterComplexSdps(result.keySet()));
                sdps.addAll(decomposeComplexSdps(result.keySet()));
View Full Code Here

TOP

Related Classes of org.destecs.core.parsers.SdpParserWrapper

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.