Package net.sf.qxs.types

Examples of net.sf.qxs.types.UntypedValue


    {
      List<Object> list = new Vector<Object>();
      for (Object o : ((CollectionComponent)component).model.toArray())
        list.add(o);
     
      return new UntypedValue(list);
    }
View Full Code Here


    {
      Set<Object> set = new HashSet<Object>();
      for (Object o : ((CollectionComponent)component).model.toArray())
        set.add(o);
     
      return new UntypedValue(set);
    }
View Full Code Here

  }
 
  private void parseRootElem(Element root, ServerConfig cfg) throws InvalidConfigurationException {
   
    cfg.setInterface(evaluateXPathString("interface", root));
    UntypedValue port = new UntypedValue(evaluateXPathString("port", root));
    if (port.stringValue("").equals(""))
      port = UntypedValue.NULL_VALUE;
    checkInt(port, "port number", 1, 0xffff);
    if (!port.equals(UntypedValue.NULL_VALUE))
      cfg.setPort(port.intValue(ServerConfig.HTTP_PORT_DEFAULT));
   
    String request_log = evaluateXPathString("requestLog/@path", root);
    if (!request_log.isEmpty())
      cfg.setRequestLogPath(request_log);
View Full Code Here

    return Collections.emptyList();
  }
 
  public static void setDescription(String desc, ModuleAttributes atts)
  {
    atts.setValue(PARAM_DESC, new UntypedValue(desc));
  }
View Full Code Here

    {
      Map<String,UntypedValue> values = new HashMap<String,UntypedValue>();
     
      for (Field f : inputs.keySet())
      {
        UntypedValue val = f.getValue(inputs.get(f), cfg, reporter);
        if (val != null)
          values.put(f.key, val);
        else
        {
          inputs.get(f).requestFocusInWindow();
View Full Code Here

    public UntypedValue getValue(JComponent component, Configuration cfg, Messenger reporter)
    {
      String value = ((JTextComponent)component).getText();
 
      if (value != null && !value.equals(""))
        return new UntypedValue(value);
     
      if (is_required)
      {
        reporter.warn(String.format("Required value: %s", label));
        return null;
      }
      else
        return new UntypedValue();
    }
View Full Code Here

    public UntypedValue getValue(JComponent component, Configuration cfg, Messenger reporter)
    {
      String value = ((FileSelectorPanel)component).getPath();
 
      if (value != null && !value.equals(""))
        return new UntypedValue(value);
      else
        return new UntypedValue();
    }
View Full Code Here

    }

    @Override
    public UntypedValue getValue(JComponent component, Configuration cfg, Messenger reporter)
    {
      UntypedValue value = super.getValue(component, cfg, reporter);
      if (value == null || value.isNull())
        return value;

      if (cfg != null && cfg.getPipeline(value.toString()) == null)
      {
        reporter.warn(String.format("%s is not a pipeline."));
        return null;
      }
      else
View Full Code Here

  {
    ModuleAttributes atts = new ModuleAttributes();
    if (sect != null)
    {
      for (Map.Entry<String,String> e : sect.entrySet())
        atts.setValue(e.getKey(), new UntypedValue(e.getValue()));
    }
   
    return atts;
  }
View Full Code Here

      String key = (String)params.nextElement();
      if (key == null)
        break;

      if (mod.getRuntimeParameters().keySet().contains(key))
        mod.setValue(key, new UntypedValue(request.getParameter(key)));
    }
   
    return mod;
  }
View Full Code Here

TOP

Related Classes of net.sf.qxs.types.UntypedValue

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.