Examples of addInstance()


Examples of org.dspace.app.xmlui.wing.element.Composite.addInstance()

                                DCDate dcDate = new DCDate(dcValue.value);

                                year.addInstance().setValue(String.valueOf(dcDate.getYear()));
                                month.addInstance().setOptionSelected(dcDate.getMonth());
                                day.addInstance().setValue(String.valueOf(dcDate.getDay()));
                                fullDate.addInstance().setValue(dcDate.toString());
                        }
                }
                else if (dcValues.length == 1)
                {
                        DCDate dcDate = new DCDate(dcValues[0].value);
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Select.addInstance()

                        for (DCValue dcValue : dcValues)
                        {
                                DCDate dcDate = new DCDate(dcValue.value);

                                year.addInstance().setValue(String.valueOf(dcDate.getYear()));
                                month.addInstance().setOptionSelected(dcDate.getMonth());
                                day.addInstance().setValue(String.valueOf(dcDate.getDay()));
                                fullDate.addInstance().setValue(dcDate.toString());
                        }
                }
                else if (dcValues.length == 1)
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Text.addInstance()

    extensions.setHelp(T_extensions_help);
    extensions.enableAddOperation();
    extensions.enableDeleteOperation();
    for (String extensionValue : extensionValues)
    {
      extensions.addInstance().setValue(extensionValue);
    }
   
    Item actions = form.addItem();
    actions.addButton("submit_save").setValue(T_submit_save);
    actions.addButton("submit_cancel").setValue(T_submit_cancel);
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.TextArea.addInstance()

                // Setup the field's values
                if (dcInput.isRepeatable() || dcValues.length > 1)
                {
                        for (DCValue dcValue : dcValues)
                        {
                                Instance ti = textArea.addInstance();
                                ti.setValue(dcValue.value);
                                if (isAuth)
                                {
                                    if (dcValue.authority == null || dcValue.authority.equals(""))
                                        ti.setAuthorityValue("", "blank");
View Full Code Here

Examples of org.metaworks.GridApplication.addInstance()

      for(Enumeration enumeration = settings.keys(); enumeration.hasMoreElements(); ){
        String k = (String)enumeration.nextElement();
        Instance rec = settingsTable.createInstance();
        rec.setFieldValue("property", k);
        rec.setFieldValue("value", settings.get(k));
        app.addInstance(rec);       
      }
    }catch(Exception e){
      e.printStackTrace();
    }   
  }
View Full Code Here

Examples of org.photovault.imginfo.PhotoInfo.addInstance()

        if ( matchingPhotos != null && matchingPhotos.length > 0 ) {
            // If yes then get the PhotoInfo and add this file as an instance with
            // the same type as the one with same hash. If only PhotoInfo with no
            // instances add as original for that
            photo = matchingPhotos[0];
            photo.addInstance( instance );
            currentEvent.setResult( ExtVolIndexerEvent.RESULT_NEW_INSTANCE );
            newInstanceCount++;
        } else {
            photo = PhotoInfo.create();
            photo.addInstance( instance );
View Full Code Here

Examples of org.testng.IClass.addInstance()

    for(Class c : m_instanceMap.keySet()) {
      List<Object> instances= m_instanceMap.get(c);
      for(Object instance : instances) {
        IClass ic= getIClass(c);
        if(null != ic) {
          ic.addInstance(instance);
        }
      }
    }
  }
View Full Code Here

Examples of org.testng.IClass.addInstance()

          Object[] enclosingInstances;
          if (null != enclosingIClass) {
            enclosingInstances = enclosingIClass.getInstances(false);
            if ((null == enclosingInstances) || (enclosingInstances.length == 0)) {
              Object o = objectFactory.newInstance(ec.getConstructor(parameterTypes));
              enclosingIClass.addInstance(o);
              enclosingInstances = new Object[] { o };
            }
          }
          else {
            enclosingInstances = new Object[] { ec.newInstance() };
View Full Code Here

Examples of unbbayes.prs.mebn.entity.ObjectEntity.addInstance()

    // check whether the value is already recorded as a possible value of numberType. If so, reuse it
    ObjectEntityInstance state = numberType.getInstanceByName(String.valueOf(value));
    if (state == null) {
      // this is a new value. Insert it
      try {
        state = numberType.addInstance(String.valueOf(value));
        continuousResidentNode.getMFrag().getMultiEntityBayesianNetwork().getObjectEntityContainer().addEntityInstance(state);
      } catch (TypeException e) {
        throw new IllegalArgumentException("Cannnot use " + value + " as a possible value of " + continuousResidentNode,e);
      } catch (EntityInstanceAlreadyExistsException e) {
        e.printStackTrace();
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.