Examples of ID

The underlying database column may be modeled as either text or as a number. If the underlying column is of a numeric type, however, then a Data Access Object will need to pass Id parameters to {@link hirondelle.web4j.database.Db} using {@link #asInteger} or {@link #asLong}.

Design Note :
This class is final, immutable, {@link Serializable}, and {@link Comparable}, in imitation of the other building block classes such as {@link String}, {@link Integer}, and so on.

  • info.archinnov.achilles.annotations.Id
  • io.crate.analyze.Id
  • javax.help.Map.ID
  • javax.persistence.Id
  • marauroa.common.game.RPObject.ID
  • net.fortuna.ical4j.vcard.Property.Id
  • net.jcores.jre.options.ID
    The type of ID requested. @author Ralf Biedert
  • net.sourceforge.jpaxjc.ns.persistence.orm.Id
  • open.dolphin.infomodel.ID
    ID @author Kazushi Minagawa, Digital Globe, Inc.
  • operators.ID
    @author smbourge
  • org.apache.axis.types.Id
    g/TR/xmlschema-2/#ID">XML Schema 3.3.8
  • org.apache.axis2.databinding.types.Id
    org/TR/xmlschema-2/#ID">XML Schema 3.3.8
  • org.apache.jackrabbit.mk.model.Id
    Represents an internal identifier, uniquely identifying a {@link Node} or a {@link Commit}.

    This implementation aims at minimizing the in-memory footprint of an identifier instance. therefore it doesn't cache e.g. the hashCode or the string representation.

    Important Note:

    An {@link Id} is considered immutable. The {@code byte[]}passed to {@link Id#Id(byte[])} must not be reused or modified, the sameapplies for the {@code byte[]} returned by {@link Id#getBytes()}.

  • org.apache.openejb.config.provider.ID
    IDs are not case-sensitive
  • org.apache.openejb.jee.jpa.Id
    3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> </restriction> </complexContent> </complexType>
  • org.apache.openjpa.util.Id
    Datastore identity type. Implementations may choose to use this type, or choose to use their own datastore identity values. @author Abe White
  • org.apache.tapestry.annotations.Id
  • org.apache.tapestry.ioc.annotations.Id
  • org.apache.tapestry5.annotations.Id
    A mixin for a text field that allows for autocompletion of text fields. This is based on Prototype's autocompleter control.

    The mixin renders an (initially invisible) progress indicator after the field (it will also be after the error icon most fields render). The progress indicator is made visible during the request to the server. The mixin then renders a <div> that will be filled in on the client side with dynamically obtained selections.

    Multiple selection on the client is enabled by binding the tokens parameter (however, the mixin doesn't help split multiple selections up on the server, that is still your code's responsibility).

    The container is responsible for providing an event handler for event "providecompletions". The context will be the partial input string sent from the client. The return value should be an array or list of completions, in presentation order. I.e.

     String[] onProvideCompletionsFromMyField(String input) { return . . .; } 
  • org.apache.zookeeper.data.Id
  • org.apache.zookeeper_voltpatches.data.Id
  • org.dmlite.model.id.Id
    Entity id. Id is a user oriented, semantical identifier that is a combination of properties and/or parent neighbors. @version 2006-11-03 @author Dzenan Ridjanovic
  • org.eclipse.ecf.core.identity.ID
    Contract for ECF identity

    ECF IDs are immutable once constructed, and unique within the containing {@link Namespace}.

    ID instances are created via the Namespace.createInstance(...) method. This method is called by the IDFactory.createID(...) methods for the given Namespace. So, for example, to create an ID instance with the name "slewis":

     ID id = IDFactory.getDefault().createID(namespace, "slewis"); 

    @see Namespace

  • org.hibernate.jpamodelgen.xml.jaxb.Id
    3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/> </sequence> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
  • org.hibernate.test.cid.LineItem.Id
  • org.jongo.marshall.jackson.oid.Id
  • org.jruby.common.IRubyWarnings.ID
  • org.locationtech.udig.catalog.ID
    Identifier used to lookup entries in an local IRespository or remote ISearch.

    While an identifier is often defined by URL or URI this class has constructors to help remove any possibility ambiguity. These objects are considered immutable and are very careful to have a fast hashCode function etc...

    @author Jody Garnett @since 1.2
  • org.nutz.dao.entity.annotation.Id
  • org.objectstyle.woenvironment.pb.PBXProject.ObjectsTable.ID
  • org.onebusaway.transit_data_federation.services.service_alerts.ServiceAlerts.Id
  • org.opengis.filter.Id
    FeatureId idCapabilities.hasEID() == true; // no idea ... @author Chris Dillard (SYS Technologies) @author Justin Deoliveira (The Open Planning Project) @source $URL$
  • org.rococoa.ID
    Represents an Objective-C ID. This extends NativeLong for efficiency, but you should really think of it as opaque. Technically, this should be {@link Native#POINTER_SIZE} not {@link Native#LONG_SIZE}, but as they are both 32 on 32-bit and 64 on 64-bit we'll gloss over that. Ideally it would be Pointer, but they have no protected constructors.
  • org.structr.rest.serialization.html.attr.Id
    @author Christian Morgner
  • org.zkoss.test.Id
    @author sam
  • rice.p2p.commonapi.Id
  • shillelagh.Id
  • siena.Id
  • wyfs.lang.Path.ID

  • Examples of marauroa.common.game.RPObject.ID

        assertThat(entity.getMinimumLevel(),is(Integer.valueOf(0)));
        assertThat(entity.getRange(),is(Integer.valueOf(10)));
        assertThat(entity.getRate(),is(Integer.valueOf(1)));
        assertThat(entity.getRegen(),is(Integer.valueOf(100)));
        assertThat(entity.getClass().getName(), is("games.stendhal.server.entity.spell.HealingSpell"));
        entity.setID(new ID(1, "some_zone"))
        RPObject object = new SpellTransformer().transform(entity);
        assertThat(object, is((RPObject)entity));
      }
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

      private static RPObject createPlayer() {
        final RPObject rpo = new RPObject();

        rpo.put("type", "player");
        rpo.put("name", "player");
        rpo.setID(new ID(USER_ID, ZONE_NAME));

        final User pl = new User();
        pl.initialize(rpo);

        for (final String slotName : Constants.CARRYING_SLOTS) {
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

      private static RPObject createItem(final String itemName, final int id, final int amount) {
        final RPObject rpo = new RPObject();
        rpo.put("type", "item");
        rpo.put("name", itemName);
        rpo.put("quantity", amount);
        rpo.setID(new ID(id, ZONE_NAME));

        return rpo;
      }
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        assertFalse(tad.isTalking());
        assertEquals("Bye.", getReply(tad));

        final StackableItem flask = new StackableItem("flask", "", "", null);
        flask.setQuantity(1);
        flask.setID(new ID(2, ZONE_NAME));
        player.getSlot("bag").add(flask);
        assertTrue(player.isEquipped("flask"));
        engineTad.step(player, ConversationPhrases.GREETING_MESSAGES.get(0));
        assertTrue(tad.isTalking());
        assertEquals(
            "Ok, you got the flask! Here take this money to cover your expense. Now, I need you to take it to #ilisa... she'll know what to do next.",
            getReply(tad));
        assertTrue(player.hasQuest(QUEST_SLOT));
        assertEquals("ilisa", player.getQuest(QUEST_SLOT));
        engineTad.step(player, ConversationPhrases.GOODBYE_MESSAGES.get(0));

        final SpeakerNPC ilisa = getNPC("Ilisa");
        final Engine engineIlisa = ilisa.getEngine();
        engineIlisa.step(player, ConversationPhrases.GREETING_MESSAGES.get(0));
        assertEquals(
            "Ah, I see you have that flask. #Tad needs medicine, right? Hmm... I'll need a #herb. Can you help?",
            getReply(ilisa));
        engineIlisa.step(player, "yes");
        assertEquals("North of Semos, near the tree grove, grows a herb called arandula. Here is a picture I drew so you know what to look for.",getReply(ilisa));
        assertEquals("corpse&herbs", player.getQuest(QUEST_SLOT));
        engineIlisa.step(player, "tad");
        assertEquals("He needs a very powerful potion to heal himself. He offers a good reward to anyone who will help him.", getReply(ilisa));
        engineIlisa.step(player, ConversationPhrases.GOODBYE_MESSAGES.get(0));
        assertEquals("Bye.", getReply(ilisa));

        engineTad.step(player, ConversationPhrases.GREETING_MESSAGES.get(0));
        assertTrue(tad.isTalking());

        assertEquals("Tad has already asked and the quest was accepted",
            "*sniff* *sniff* I still feel ill, please hurry with that #favour for me.", getReply(tad));
        engineTad.step(player, ConversationPhrases.GOODBYE_MESSAGES.get(0));
        assertFalse(tad.isTalking());
        assertEquals("Bye.", getReply(tad));

        engineIlisa.step(player, ConversationPhrases.GREETING_MESSAGES.get(0));
        assertEquals("Can you fetch those #herbs for the #medicine?", getReply(ilisa));
        engineIlisa.step(player, ConversationPhrases.GOODBYE_MESSAGES.get(0));
        assertEquals("Bye.", getReply(ilisa));
       
        // doesn't work as it causes an npe and adding it to setUp() doesn't help
        //PlayerTestHelper.equipWithItem(player, "arandula");
        final StackableItem arandula = new StackableItem("arandula", "", "", null);
        arandula.setQuantity(1);
        arandula.setID(new ID(2, ZONE_NAME));
        player.getSlot("bag").add(arandula);
        engineIlisa.step(player, ConversationPhrases.GREETING_MESSAGES.get(0));
        assertEquals(
            "Okay! Thank you. Now I will just mix these... a pinch of this... and a few drops... there! Can you ask #Tad to stop by and collect it? I want to see how he's doing.",
            getReply(ilisa));
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        assertEquals(
            "Welcome to the Semos bakery! We'll #bake fine bread for anyone who helps bring our #flour delivery from the mill.",
            getReply(npc));
        final StackableItem flour = new StackableItem("flour", "", "", null);
        flour.setQuantity(2);
        flour.setID(new ID(2, ZONE_NAME));
        player.getSlot("bag").add(flour);
        assertEquals(2, player.getNumberOfEquipped("flour"));

        en.step(player, "make");
        assertTrue(npc.isTalking());
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        assertEquals(
            "Welcome to the Semos bakery! We'll #bake fine bread for anyone who helps bring our #flour delivery from the mill.",
            getReply(npc));
        final StackableItem flour = new StackableItem("flour", "", "", null);
        flour.setQuantity(4);
        flour.setID(new ID(2, ZONE_NAME));
        player.getSlot("bag").add(flour);
        assertEquals(4, player.getNumberOfEquipped("flour"));

        en.step(player, "make 2 breads");
        assertTrue(npc.isTalking());
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        assertEquals(
            "Welcome to the Semos bakery! We'll #bake fine bread for anyone who helps bring our #flour delivery from the mill.",
            getReply(npc));
        final StackableItem flour = new StackableItem("flour", "", "", null);
        flour.setQuantity(6);
        flour.setID(new ID(2, ZONE_NAME));
        player.getSlot("bag").add(flour);
        assertEquals(6, player.getNumberOfEquipped("flour"));

        en.step(player, "make 3");
        assertTrue(npc.isTalking());
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

      public boolean isAttacking(final IEntity defender) {
        if (defender == null) {
          return false;
        }
       
        final ID defenderID = defender.getID();
        return (isAttacking() && attacking.equals(defenderID));
      }
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        assertEquals("i have not brought anything yet it should be all needed items",
            "#one, #two, and #three", getReply(npc));

        StackableItem item = new StackableItem("one", "", "", null);
        item.setQuantity(10);
        item.setID(new ID(2, "testzone"));
        player.getSlot("bag").add(item);
        en.step(player, "yes");
        assertEquals("item brought", quest.askForItemsAfterPlayerSaidHeHasItems(), getReply(npc));

        en.step(player, "one");
        assertEquals("item brought", quest.respondToItemBrought(), getReply(npc));
        en.step(player, "one");
        assertEquals("item brought", quest.respondToOfferOfNotMissingItem(), getReply(npc));
        npc.remove("text");
        assertEquals(ConversationStates.QUESTION_1, en.getCurrentState());
        en.step(player, quest.getTriggerPhraseToEnumerateMissingItems().get(0));
        final List<String> missing = new LinkedList<String>(quest.getNeededItems());
        missing.remove("one");
        assertEquals("two and three are missing", "#two and #three", getReply(npc));
        en.step(player, "two");
        assertEquals("item brought", quest.respondToOfferOfNotExistingItem("two"), getReply(npc));

        item = new StackableItem("two", "", "", null);
        item.setQuantity(10);
        item.setID(new ID(2, "testzone"));
        player.getSlot("bag").add(item);
        item = new StackableItem("three", "", "", null);
        item.setQuantity(10);
        item.setID(new ID(2, "testzone"));
        player.getSlot("bag").add(item);
        en.step(player, "three");
        assertEquals("item brought", quest.respondToItemBrought(), getReply(npc));
        en.step(player, "two");
        assertEquals("last item brought", quest.respondToLastItemBrought(), getReply(npc));
    View Full Code Here

    Examples of marauroa.common.game.RPObject.ID

        en.step(player, "bye");
        assertFalse(hayunn.isTalking());
        assertEquals("start", player.getQuest("beer_hayunn"));
        final StackableItem beer = new StackableItem("beer", "", "", null);
        beer.setQuantity(1);
        beer.setID(new ID(2, "testzone"));
        player.getSlot("bag").add(beer);
        assertEquals(1, player.getNumberOfEquipped("beer"));
        en.step(player, "hi");
        en.step(player, "yes");
        assertEquals("done", player.getQuest("beer_hayunn"));
    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.