Package net.sf.qxs.types

Examples of net.sf.qxs.types.UntypedValue


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


   * @param inherit if <em>true</em>, the parent's value is returned if <em>key</em> is not present in this ModuleAttributes object; if <em>false</em>, null is returned in that case.
   * @return The value associated with <em>key</em>, or null if no value is associated with <em>key</em>.
   */
  public UntypedValue getValue(final String key, final boolean inherit)
  {
    UntypedValue value = atts.get(key);
    if (value != null)
      return value;

    if (parent != null && inherit)
      return parent.getValue(key, true);
    else
      return new UntypedValue();
  }
View Full Code Here

  @Override
  public String getTitle(ModuleAttributes atts)
  {
    tryFetchMeta();
    if (fetched_meta)
      atts.getInterfaceRoot().setValue(CACHE_TITLE, new UntypedValue(title));
   
    return atts.getValue(CACHE_TITLE).stringValue(getDescription(atts));
  }
View Full Code Here

 
  public String getDescription(ModuleAttributes atts)
  {
    tryFetchMeta();
    if (fetched_meta)
      atts.getInterfaceRoot().setValue(CACHE_DESC, new UntypedValue(description));

    return atts.getValue(CACHE_DESC).stringValue(null);
  }
View Full Code Here

 
  private Map<String,String> getMapValue(ModuleAttributes atts, String key, Map<String,String> fetched)
  {
    tryFetchMeta();
    if (fetched_meta)
      atts.getInterfaceRoot().setValue(CACHE_PREFIX+key, new UntypedValue(fetched));
   
    return atts.getValue(CACHE_PREFIX+key).mapValue(Collections.<String,String>emptyMap(), TypeConverter.STRING, TypeConverter.STRING);
  }
View Full Code Here

                  null, opts, atts.getValue(PARAM_LAYER).stringValue(null));
 
      if (s == null || s.length() == 0)
        return false;
     
      atts.setValue(PARAM_LAYER, new UntypedValue(s));
      return true;
    }
View Full Code Here

    return cmd!=null ? cmd : atts.getValue(PARAM_COMMAND).stringValue(null);
  }
 
  public static void setCommand(String path, ModuleAttributes atts)
  {
    atts.setValue(PARAM_COMMAND, new UntypedValue(path));
  }
View Full Code Here

  {
    ModuleAttributes atts = new ModuleAttributes();
    for (Entry<String,String> kv : parseKeyValuePairs(cmd, OPT_ATTRIBUTE[0]).entrySet())
    {
      if (kv.getValue() == null)
        atts.setValue(kv.getKey(), new UntypedValue());
      else
        atts.setValue(kv.getKey(), new UntypedValue(kv.getValue()));
    }
   
    return atts;
  }
View Full Code Here

    this.pipelinename = null;
  }
 
  public static void setPipeline(String name, ModuleAttributes atts)
  {
    atts.setValue(ATT_PIPELINE, new UntypedValue(name));
  }
View Full Code Here

      this.interface_type = interface_type;
    }
   
    public boolean configure(ModuleAttributes atts, Collection<ModuleDefinition> pipeline, Messenger reporter) throws ResourceException
    {
      atts.setValue(ATTR_INTERFACE_TYPE, new UntypedValue(interface_type));
      if (configurator != null)
        return configurator.configure(atts, pipeline, reporter);
      else
        return true;
    }
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.