Examples of ValueList


Examples of com.centraview.valuelist.ValueList

    listParameters.setFilter(filter);
    listParameters.setColumns(columns);

    // Get the list!
    ValueListHome valueListHome = (ValueListHome)CVUtility.getHomeObject("com.centraview.valuelist.ValueListHome", "ValueList");
    ValueList valueList = null;
    try {
      valueList = valueListHome.create();
    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
      buttonList.add(new Button("Select", "select", "lu_selectList('Tasks');", false));
View Full Code Here

Examples of com.centraview.valuelist.ValueList

    HttpSession session = request.getSession(true);
    UserObject user = (UserObject)session.getAttribute("userobject"); //get the user object
    int individualId = user.getIndividualID();
    ListPreference listPreference = user.getListPreference("USER");
    ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPreference, request, ValueListConstants.USER_LIST_TYPE, ValueListConstants.userViewMap, true);
    ValueList valueList = null;
    try {
      valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("New", "newUser", "c_goTo('/administration/new_user.do');", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
View Full Code Here

Examples of com.intersys.globals.ValueList

        }
    }

    private void writeDocument(NoSchemaDocument doc, ValueList valueList, ValueList scratch, boolean isReference) {
        if (isReference) {
            ValueList tList = connection.createList();
            tList.append(doc.getName());
            tList.append(doc.getDBID());
            valueList.append(tList);
            return;
        }
        scratch.clear();
        write(doc,scratch);
View Full Code Here

Examples of net.mlw.vlh.ValueList

  public ValueList getValueList(String name, ValueListInfo info) {
    int numberPerPage = 0;
    Object tplReturn = null;
    Session tplSession = null;
    List list = null;
    ValueList returnValueList = null;
    Vector<String> params = null;
    String tmpStr = null;

    try {
      if (LOGGER.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.pig.builtin.VALUELIST

        m.put("open", "apache");
        m.put("1", "hadoop");
        m.put("source", "apache");
        Tuple input = TupleFactory.getInstance().newTuple(m);

        VALUELIST valueList = new VALUELIST();
        DataBag result = valueList.exec(input);
        //Bag must contain all values, not just unique ones
        assertEquals(result.size(), 3);
        Iterator<Tuple> i = result.iterator();
        List resultList = new ArrayList();
        while(i.hasNext()) {
View Full Code Here

Examples of org.collectd.api.ValueList

   *                plugin instance will be used.
   */
  public void query (MBeanServerConnection conn, ObjectName objName, /* {{{ */
      PluginData pd)
  {
    ValueList vl;
    List<DataSource> dsrc;
    List<Object> values;
    List<String> instanceList;
    String instancePrefix;

    if (this._ds == null)
    {
      this._ds = Collectd.getDS (this._ds_name);
      if (this._ds == null)
      {
        Collectd.logError ("GenericJMXConfValue: Unknown type: "
            + this._ds_name);
        return;
      }
    }

    dsrc = this._ds.getDataSources ();
    if (dsrc.size () != this._attributes.size ())
    {
      Collectd.logError ("GenericJMXConfValue.query: The data set "
          + this._ds_name + " has " + this._ds.getDataSources ().size ()
          + " data sources, but there were " + this._attributes.size ()
          + " attributes configured. This doesn't match!");
      this._ds = null;
      return;
    }

    vl = new ValueList (pd);
    vl.setType (this._ds_name);

    /*
     * Build the instnace prefix from the fixed string prefix and the
     * properties of the objName.
     */
 
View Full Code Here

Examples of org.jboss.xb.binding.group.ValueList

   private void endRepeatableParticle(ParticleBinding particle)
   {
      //System.out.println(" end repeatable (" + stack.size() + "): " + particle.getTerm());

      StackItem item = stack.peek();
      ValueList valueList = item.repeatableParticleValue;
      if(valueList != null)
      {
         item.repeatableParticleValue = null;
         if(valueList.size() == 0)
         {
            return;
         }
           
         if(particle.getTerm().isWildcard())
         {
            ParticleHandler handler = ((WildcardBinding)particle.getTerm()).getWildcardHandler();
            if(handler == null)
            {
               handler = defParticleHandler;
            }

            // that's not good. some elements can be handled as "unresolved" and some as "resolved"
            QName qName = valueList.getValue(0).qName;
            Collection col = new ArrayList();
            for(int i = 0; i < valueList.size(); ++i)
            {
               col.add(valueList.getValue(i).value);
            }
            StackItem parentItem = stack.peek(1);
            handler.setParent(parentItem.o, col, qName, particle, parentItem.particle);
         }
         else
         {
            valueList.getHandler().newInstance(particle, valueList);
         }
      }
   }
View Full Code Here

Examples of org.overturetool.vdmj.values.ValueList

          try
          {
            EventThread eThread = new EventThread(Thread.currentThread());
            BasicSchedulableThread.add(eThread);
            CPUResource.vCPU.register(eThread, 1000);
            eventOp.eval(coSimLocation, new ValueList(), mainContext);
            eThread.setState(RunState.COMPLETE);
            BasicSchedulableThread.remove(eThread);
            evaluated = true;
          } catch (ValueException e)
          {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.