Examples of ItemType


Examples of org.apache.xmlbeans.samples.enumeration.schemaenum.pricesummary.ItemType

            LineItem item = items[i];

            if (item.getPrice() < 10.00)
            {

                ItemType newItem = priceZero.addNewItem();
                newItem.setTitle(item.getDescription());
                newItem.xsetQuantity(item.xgetQuantity());
                newItem.setAmount(item.getPrice());

            } else if (item.getPrice() >= 10.00 && item.getPrice() < 20.00)
            {

                ItemType newItem = priceTen.addNewItem();
                newItem.setTitle(item.getDescription());
                newItem.xsetQuantity(item.xgetQuantity());
                newItem.setAmount(item.getPrice());

            } else if (item.getPrice() >= 20.00)
            {

                ItemType newItem = priceTwenty.addNewItem();
                newItem.setTitle(item.getDescription());
                newItem.xsetQuantity(item.xgetQuantity());
                newItem.setAmount(item.getPrice());
            }
        }
        return summaryDoc;
    }

Examples of org.blueoxygen.postila.entity.ItemType

            ex.printStackTrace();
        }
        advanced.addPropertyChangeListener(this);
        setSearchPanel(advanced);
        // init for ItemType
        itemsType = new ItemsTypeForm(new ItemType(), sess);
        itemsType.addPropertyChangeListener(this);
        setEntryPanel(itemsType);
        addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent evt) {
                advanced.load();

Examples of org.dmg.pmml._40.ItemType

         
          List<ItemRefType> itemrefs = new ArrayList<ItemRefType>();
          for(Item i:itemset.getItems()) {
            if(!allItems.contains(i)) {           
              allItems.add(i);
              ItemType pmmlItem = _40Factory.eINSTANCE.createItemType();
              pmmlItem.setId(String.valueOf(allItems.indexOf(i)));
              pmmlItem.setValue(i.toString());
              ruleModel.getItem().add(pmmlItem);

            }
          ItemRefType itemref = _40Factory.eINSTANCE.createItemRefType();
          itemref.setItemRef(String.valueOf(allItems.indexOf(i)));

Examples of org.exoplatform.services.jcr.datamodel.ItemType

      Collection<ItemDefinitionData> mandatoryItemDefs =
         session.getWorkspace().getNodeTypesHolder().getManadatoryItemDefs(nData.getPrimaryTypeName(),
            nData.getMixinTypeNames());
      for (ItemDefinitionData itemDefinitionData : mandatoryItemDefs)
      {
         ItemType itemType = itemDefinitionData.isNodeDefinition() ? ItemType.NODE : ItemType.PROPERTY;
         if (getItemData(nData, new QPathEntry(itemDefinitionData.getName(), 0), itemType) == null)
         {
            throw new ConstraintViolationException("Mandatory item " + itemDefinitionData.getName()
               + " not found. Node [" + nData.getQPath().getAsString() + " primary type: "
               + nData.getPrimaryTypeName().getAsString() + "]");

Examples of org.jinq.jpa.test.entities.ItemType

   }
  
   @Test
   public void testEnum()
   {
      ItemType val = ItemType.OTHER;
      List<Pair<Item, ItemType>> items = streams.streamAll(em, Item.class)
            .where(i -> i.getType() == val || i.getType().equals(ItemType.BIG))
            .select(i -> new Pair<>(i, i.getType()))
            .toList();
      items = items.stream().sorted((a, b) -> a.getOne().getName().compareTo(b.getOne().getName())).collect(Collectors.toList());

Examples of org.mizartools.dli.ItemType

      uniqueIdentifier = UniqueIdentifier.getInstance(abstractSignature, field);
    } catch (UniqueIdentifierException e) {
      throw new DliException();
    }
    ArticleId articleId = new ArticleId(uniqueIdentifier.aid);
    ItemType itemType = null;
    switch (uniqueIdentifier.type){
    case mode : itemType = ItemType.mode; break;
    case struct : itemType = ItemType.struct; break;
    case sel : itemType = ItemType.sel; break;
    default : throw new DliException();

Examples of org.pdf4j.saxon.type.ItemType

            RoleLocator role = new RoleLocator(RoleLocator.VARIABLE, variableName, 0
            );
            //role.setSourceLocator(this);
            sequence = TypeChecker.strictTypeCheck(
                                    sequence, sequenceType, role, visitor.getStaticContext());
            ItemType actualItemType = sequence.getItemType(th);
            refineTypeInformation(actualItemType,
                    StaticProperty.EXACTLY_ONE,
                    null,
                    sequence.getSpecialProperties(), visitor, this);
        }

Examples of org.platformlayer.ids.ItemType

    if (Strings.isNullOrEmpty(itemId)) {
      throw new IllegalArgumentException("Cannot resolve path (item id not resolved): " + path);
    }

    FederationKey host = null;
    return new PlatformLayerKey(host, project, new ServiceType(serviceType), new ItemType(itemType),
        new ManagedItemId(itemId));
  }

Examples of org.platformlayer.ids.ItemType

    if (Strings.isNullOrEmpty(hostPolicy.groupId)) {
      sameGroupId = DEFAULT_GROUP;
    } else {
      sameGroupId = hostPolicy.groupId;
    }
    final ItemType sameItemType;
    if (hostPolicy.scoreSameItemType != 0) {
      PlatformLayerKey owner = findOwner(newInstance);
      if (owner == null) {
        throw new OpsException();
      }

Examples of org.platformlayer.ids.ItemType

      serviceType = getServiceTypeFromItemType(client, itemType);
    }

    FederationKey host = null;
    ProjectId project = client.getProject();
    return new PlatformLayerKey(host, project, new ServiceType(serviceType), new ItemType(itemType), null);
  }
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.