Examples of Item


Examples of lupos.datastructures.items.Item

    @Override
    protected void addPrecedingSuggestion(
        final SuggestionPanel subjectPanel,
        final SuggestionPanel predicatePanel) {
      // get items...
      final Item subjectItem = subjectPanel.getSelectedElement();
      final Item predicateItem = predicatePanel.getSelectedElement();

      final String oldquery = getCurrentBrowserQuery();
      statusBar.setText("set refined query...");
      updateAll(oldquery.substring(0, oldquery.length() - 1)
          + subjectItem + " " + predicateItem + " " + this.op + ".}");
View Full Code Here

Examples of microsoft.exchange.webservices.data.Item

  @Override
  public void updateDueDate(final TaskDto task) {
    try {
      final ItemId itemId = new ItemId(task.getExchangeId());
      final Item email = Item.bind(service, itemId, createEmailPropertySet());
      if (task.getDueDate() == null) {
        email.removeExtendedProperty(PR_TASK_DUE_DATE);
      } else {
        email.setExtendedProperty(PR_TASK_DUE_DATE, task.getDueDate());
      }
      email.update(ConflictResolutionMode.AlwaysOverwrite);
    } catch (final Exception e) {
      LOG.error("Unable to update email due date in Exchange", e);
    }
  }
View Full Code Here

Examples of models.Item

            while ((output = reader.readLine()) != null) {
                contentString.append(output);
            }

            JsonNode node = Json.parse(contentString.toString());
            Item item = new Item();

            if (node.size() > 0) {
                item = Item.parseItemFromJSON(node);
            }
View Full Code Here

Examples of net.asfun.jangod.util.ListOrderedMap.Item

      //replace the block identify with block content
      ListOrderedMap blockList = (ListOrderedMap) fetchRuntimeScope(BLOCK_LIST, 1);
      Iterator<Item> mi = blockList.iterator();
      int index;
      String replace;
      Item item;
      while( mi.hasNext() ) {
        item = mi.next();
        replace = SEMI_BLOCK + item.getKey();
        while ( (index = sb.indexOf(replace)) > 0 ) {
          sb.delete(index, index + replace.length());
          sb.insert(index, item.getValue());
        }
      }
      return sb.toString();
    }
    return buff.toString();
View Full Code Here

Examples of net.canarymod.api.inventory.Item

        }
        int amount = 1;
        if (args[args.length - 2].matches("\\d+")) {
            amount = Integer.parseInt(args[args.length - 2]);
        }
        Item item = Canary.factory().getItemFactory().newItem(args[1]);
        if (item == null) {
            caller.notice(Translator.translateAndFormat("give invalid itemtype", args[1]));
            return;
        }
        item.setAmount(amount);
        Player target = Canary.getServer().matchPlayer(args[args.length - 1]);
        if (target == null) {
            caller.notice(Translator.translateAndFormat("unknown player", args[args.length - 1]));
            return;
        }
        target.giveItem(item);
        target.message(Colors.YELLOW + Translator.translateAndFormat("give received", item.getType().getDisplayName()));
        caller.notice(Translator.translateAndFormat("give success other", target.getName()));

    }
View Full Code Here

Examples of net.dromard.common.rss.feed.Item

        channel.setAuthor(getElementValue(element, "author"));
       
        NodeList items = element.getElementsByTagName("item");
        for (int i = 0; i < items.getLength(); i++) {
          Element itemElmt = ((Element) items.item(i));
          Item item = new Item();
          item.setAuthor(getElementValue(itemElmt, "author"));
          item.setCategory(getElementValue(itemElmt, "category"));
          item.setDescription(getElementValue(itemElmt, "description"));
          item.setLink(getElementValue(itemElmt, "link"));
          item.setGuid(getElementValue(itemElmt, "guid"));
          item.setPublished(getElementValue(itemElmt, "pubDate"));
          item.setTitle(getElementValue(itemElmt, "title"));
          NodeList enclosureNode = itemElmt.getElementsByTagName(Enclosure.ENCLOSURE);
          if (enclosureNode.getLength() == 1) {
            Enclosure enclosure = new Enclosure();
            Element enclosureElmt = ((Element) enclosureNode.item(0));
            String length = enclosureElmt.getAttribute(Enclosure.LENGTH);
            if (length.length() > 0) {
              try {
                enclosure.setLength(Integer.parseInt(length));
              } catch (NumberFormatException e) {
              }
            }
            enclosure.setType(enclosureElmt.getAttribute(Enclosure.TYPE));
            enclosure.setUrl(enclosureElmt.getAttribute(Enclosure.URL));
            item.setEnclosure(enclosure);
          }
          channel.addItem(item);
        }

        rss.setChannel(channel);
View Full Code Here

Examples of net.hkionline.rss.Item

            * This event happens when the parser hits the closing tag of an RSS-feed element.
            * We are interested at item-tags. When they close we want to save the information of the child elements to a new item-object and to the feed itself
            */
           if (event.asEndElement().getName().getLocalPart() == (_item)) {

             Item item = new Item();
            
            
             item.setTitle(title);
             item.setDescription(description);
             item.setLink(link);
             item.setAuthor(author);
             item.setCategory(category);
             item.setEnclosure(enclosure);
             item.setGuid(guid);
             item.setPubDate(pubDate);
             item.setSource(source);
                         
             feed.getItems().add(item);
            
             // We have now saved a new item  to our feed model so we can continue to the next item
             event = eventReader.nextEvent();
View Full Code Here

Examples of net.lightstone.model.Item

    int y = buffer.readInt();
    int z = buffer.readInt();
    int rotation = buffer.readUnsignedByte();
    int pitch = buffer.readUnsignedByte();
    int roll = buffer.readUnsignedByte();
    return new SpawnItemMessage(id, new Item(item, count, damage), x, y, z, rotation, pitch, roll);
  }
View Full Code Here

Examples of net.minecraft.item.Item

        Constants.NBT.TAG_COMPOUND);

    for (int i = 0; i < itemsMapping.tagCount(); ++i) {
      NBTTagCompound sub = itemsMapping.getCompoundTagAt(i);
      String name = sub.getString("name");
      Item item = (Item) Item.itemRegistry.getObject(name);
      registerItem (item);
    }

    NBTTagList entitiesMapping = nbt.getTagList("entitiesMapping",
        Constants.NBT.TAG_COMPOUND);
View Full Code Here

Examples of net.minecraft.server.Item

   * @param itemType of the item
   * @param def to return for invalid items
   * @return max stacking size
   */
  public static int getMaxSize(Material itemType, int def) {
    Item item = CommonNMS.getItem(itemType);
    return item == null ? def : item.getMaxStackSize();
  }
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.