Examples of Item


Examples of eu.flatworld.cstrader.data.Item

        while (m.find()) {
            // groups: 1-itemid, 2-item name, 3-quantity, 4-weight or null
            // 5-price 6,7,8-sys,sec,grid 9-place name
            ItemLine itemLine = new ItemLine();
            itemLine.setItem(new Item());
            itemLine.getItem().setName(m.group(2).replace('*', ' ').trim());
            itemLine.setQuantity(Long.parseLong(m.group(3)));
            if (m.group(4) == null) {
                itemLine.setForSale(false);
                itemLine.getItem().setWeight(PricelistsTools.loadWeight(itemLine.getItem().getName()));
View Full Code Here

Examples of game.item.Item

    slotIndex = i;
  }

  @Override
  public void render(Gui gui, int x, int y, int color) {
    Item item = container.getItemInSlot(this.slotIndex);
    if (item != null) {
      GuiRenderer.render(gui, gui.font, x, y, item.getSpriteIndex(),
          item.getSpriteColor(), 0x00, 1);
    }
  }
View Full Code Here

Examples of games.stendhal.server.entity.item.Item

  @Test
  public void testOnActionItemInBag() {
    MockStendlRPWorld.get();
    final UseAction ua = new UseAction();
    final Player player = PlayerTestHelper.createPlayer("bob");
    final Item cheese = SingletonRepository.getEntityManager().getItem("cheese");
    player.equip("bag", cheese);
    final StendhalRPZone zone = new StendhalRPZone("zone");
    zone.add(player);
    final RPAction action = new RPAction();
    action.put(BASEITEM, cheese.getID().getObjectID());
    action.put(BASEOBJECT, player.getID().getObjectID());
    action.put(BASESLOT, "bag");
    assertTrue(player.isEquipped("cheese"));
    ua.onAction(player, action);
    assertFalse(player.isEquipped("cheese"));
View Full Code Here

Examples of generated.Item

import generated.Item;

public class MyHandler extends GeneralizedFieldHandler {

    public Object convertUponGet(Object arg0) {
        Item i = new Item();
        MyItem mi = (MyItem) arg0;
        i.setName(mi.getName());
        return i;
    }
View Full Code Here

Examples of gov.nist.scap.xccdf.document.Item

    Collection<? extends Item> items = benchmark.lookupCluster(idref);

    // begin MITRE
    if (items == null) {
    // end MITRE
      Item item = benchmark.lookupItem(idref);
      if (item == null) {
        throw (new ItemNotFoundException("item '" + idref
            + "' in select for Profile '" + profile.getId() + "'"));
      }
      // Do not check for requires and conflicts here. This operation
View Full Code Here

Examples of gwlpr.database.entities.Item

            if (baseID != null) {
                baseID.getItemCollection().add(item);
                baseID = em.merge(baseID);
            }
            for (Itemstat itemstatCollectionItemstat : item.getItemstatCollection()) {
                Item oldItemOfItemstatCollectionItemstat = itemstatCollectionItemstat.getItem();
                itemstatCollectionItemstat.setItem(item);
                itemstatCollectionItemstat = em.merge(itemstatCollectionItemstat);
                if (oldItemOfItemstatCollectionItemstat != null) {
                    oldItemOfItemstatCollectionItemstat.getItemstatCollection().remove(itemstatCollectionItemstat);
                    oldItemOfItemstatCollectionItemstat = em.merge(oldItemOfItemstatCollectionItemstat);
                }
            }
            for (Storeditem storeditemCollectionStoreditem : item.getStoreditemCollection()) {
                Item oldItemIDOfStoreditemCollectionStoreditem = storeditemCollectionStoreditem.getItemID();
                storeditemCollectionStoreditem.setItemID(item);
                storeditemCollectionStoreditem = em.merge(storeditemCollectionStoreditem);
                if (oldItemIDOfStoreditemCollectionStoreditem != null) {
                    oldItemIDOfStoreditemCollectionStoreditem.getStoreditemCollection().remove(storeditemCollectionStoreditem);
                    oldItemIDOfStoreditemCollectionStoreditem = em.merge(oldItemIDOfStoreditemCollectionStoreditem);
                }
            }
            for (Weapon weaponCollectionWeapon : item.getWeaponCollection()) {
                Item oldOffhandOfWeaponCollectionWeapon = weaponCollectionWeapon.getOffhand();
                weaponCollectionWeapon.setOffhand(item);
                weaponCollectionWeapon = em.merge(weaponCollectionWeapon);
                if (oldOffhandOfWeaponCollectionWeapon != null) {
                    oldOffhandOfWeaponCollectionWeapon.getWeaponCollection().remove(weaponCollectionWeapon);
                    oldOffhandOfWeaponCollectionWeapon = em.merge(oldOffhandOfWeaponCollectionWeapon);
                }
            }
            for (Weapon weaponCollection1Weapon : item.getWeaponCollection1()) {
                Item oldLeadhandOfWeaponCollection1Weapon = weaponCollection1Weapon.getLeadhand();
                weaponCollection1Weapon.setLeadhand(item);
                weaponCollection1Weapon = em.merge(weaponCollection1Weapon);
                if (oldLeadhandOfWeaponCollection1Weapon != null) {
                    oldLeadhandOfWeaponCollection1Weapon.getWeaponCollection1().remove(weaponCollection1Weapon);
                    oldLeadhandOfWeaponCollection1Weapon = em.merge(oldLeadhandOfWeaponCollection1Weapon);
                }
            }
            em.getTransaction().commit();
        } finally {
View Full Code Here

Examples of hudson.model.Item

        }
    }

    public SidACL getACL(ItemGroup g) {
        if (g instanceof Item) {
            Item item = (Item) g;
            return (SidACL)item.getACL();
        }
        return getRootACL();
    }
View Full Code Here

Examples of hudson.model.Queue.Item

            }
        });
        FreeStyleProject project = createFreeStyleProject();
        jenkins.getQueue().schedule(project);

        Item item = jenkins.getQueue().getItem(project);
        for (int i = 0; i < 4 * 60 && !item.isBlocked(); i++) {
            Thread.sleep(250);
            item = jenkins.getQueue().getItem(project);
        }
        assertTrue("Not blocked after 60 seconds", item.isBlocked());
        assertEquals("Expected CauseOfBlockage to be returned", "blocked by canRun", item.getWhy());
    }
View Full Code Here

Examples of info.jtrac.domain.Item

        if (refId != null) {
            final YuiDialog dialog = new YuiDialog("itemWindow");
            add(dialog);                                                       
            AjaxLink link = new AjaxLink("link") {
                public void onClick(AjaxRequestTarget target) {
                    Item item = getJtrac().loadItemByRefId(refId);                   
                    dialog.show(target, refId, new ItemViewPanel(YuiDialog.CONTENT_ID, item, true));
                }
            };
            link.add(new Label("refId", refId));            
            if(isItemViewPage) {
                add(new WebMarkupContainer("link").setVisible(false));
                add(new WebMarkupContainer("message").setVisible(false));
                add(new RelateForm("form").add(link));
            } else {
                add(new Label("message", localize("item_list.searchingForRelated")));
                add(link);
                add(new WebMarkupContainer("form").setVisible(false));
            }          
            add(new Link("cancel") {
                public void onClick() {
                    Item item = getJtrac().loadItemByRefId(refId);
                    JtracSession.get().setItemSearch(null);
                    setResponsePage(ItemViewPage.class, new PageParameters("0=" + item.getRefId()));
                }
            });
        } else {
            setVisible(false);
        }       
View Full Code Here

Examples of info.jtrac.mylyn.domain.Item

    assertNotNull(v.getNumber());
    assertNotNull(v.getTimestamp());
  }
 
  public void testPutItem() throws Exception {
    Item item = new Item();
    item.setSummary("Test Summary");
    item.setDetail("Test Detail");
    item.setLoggedBy("Some Body");
    item.setAssignedTo("Any Body");
    String refId = client.putItem(item);
    assertNotNull(refId);
  }
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.