Examples of Identifier


Examples of net.java.games.input.Component.Identifier

            log = button.getIdentifier().getName();
        }
        int ID = (val == -1f || val == 1f) ? KeyEvent.KEY_PRESSED : KeyEvent.KEY_RELEASED;
        if (button.getIdentifier() instanceof net.java.games.input.Component.Identifier.Axis) {
            String direction = "";
            Identifier axisX = Player._gamepadCodeMap.get(Player.key.valueOf(player + "_backwards"));
            Identifier axisY = Player._gamepadCodeMap.get(Player.key.valueOf(player + "_up"));
            if (axisY instanceof Identifier && axisX instanceof Identifier) {
                if (axisX.getName().equals(button.getIdentifier().getName())) {
                    if (Player.id.ONE.equals(player)) {
                        direction = (val == -1f) ? "backwards" : ((val == 1f) ? "forwards" : ((lastPollX == -1f) ? "backwards" : ((lastPollX == 1f) ? "forwards" : "")));
                    } else if (Player.id.TWO.equals(player)) {
                        direction = (val == 1f) ? "backwards" : ((val == -1f) ? "forwards" : ((lastPollX == 1f) ? "backwards" : ((lastPollX == -1f) ? "forwards" : "")));
                    }
                    lastPollX = val;
                } else if (axisY.getName().equals(button.getIdentifier().getName())) {
                    direction = (val == 1f) ? "down" : ((val == -1f) ? "up" : ((lastPollY == 1f) ? "down" : ((lastPollY == -1f) ? "up" : "")));
                    lastPollY = val;
                }
                if (!direction.equals("")) {
                    keyboardKey = Player.key.valueOf(player + "_" + direction);
                    if (JXAenvUtils._debug) {
                        log = " Player  " + player + " gamepad " + keyboardKey + ((ID == KeyEvent.KEY_PRESSED) ? "pressed" : "released");
                    }
                }
            }
        } else {
            synchronized (Player._gamepadCodeMap) {
                    for (Player.key key : Player._gamepadCodeMap.keySet()) {
                            if (key.player.equals(player)) {
                                    Identifier name = Player._gamepadCodeMap.get(key);
                                    if (button.getIdentifier().getName().equals(name.getName())) {
                                            keyboardKey = key;
                                            break;
                                    }
                            }
                    }
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.selector.expression.Identifier

              throw new InvalidSelectorException("Header property "+lName+" cannot be used in a message selector");
          }
        }
       
        readNextToken();
        return new Identifier(lName);
    }
View Full Code Here

Examples of nl.siegmann.epublib.domain.Identifier

      String schemeName = identifierElement.getAttributeNS(NAMESPACE_OPF, DCAttributes.scheme);
      String identifierValue = DOMUtil.getTextChildrenContent(identifierElement);
      if (StringUtil.isBlank(identifierValue)) {
        continue;
      }
      Identifier identifier = new Identifier(schemeName, identifierValue);
      if(identifierElement.getAttribute("id").equals(bookIdId) ) {
        identifier.setBookId(true);
      }
      result.add(identifier);
    }
    return result;
  }
View Full Code Here

Examples of org.any_openeai_enterprise.moa.objects.resources.v1_0.Identifier

    I2sRepositoryException {
    // If a social security number is provided, retrieve the
    // InstitutionalIdentity using that identifier.
    InstitutionalIdentity instIdent = new InstitutionalIdentity();
    if (uPerson.getSocialSecurityNumber() != null) {
      Identifier id = new Identifier();
      try {
        id.setType("SocialSecurityNumber");
        id.setValue(uPerson.getSocialSecurityNumber());
      }
      catch (EnterpriseFieldException efe) {
        // An error occurred setting field values on the identifier object.
        // Log it and throw an exception.
        String errMsg = "An error occurred setting field values on the " +
View Full Code Here

Examples of org.apache.cxf.ws.rm.Identifier

     * @return ResendCandidate
     */   
    protected ResendCandidate cacheUnacknowledged(Message message) {
        RMProperties rmps = RMContextUtils.retrieveRMProperties(message, true);
        SequenceType st = rmps.getSequence();
        Identifier sid = st.getIdentifier();
        String key = sid.getValue();
       
        ResendCandidate candidate = null;
       
        synchronized (this) {
            List<ResendCandidate> sequenceCandidates = getSequenceCandidates(key);
View Full Code Here

Examples of org.apache.cxf.ws.rm.v200502.Identifier

        maps.setReplyTo(RMUtils.createReference(DECOUPLED_URL));
       
        message.put(JAXWSAConstants.ADDRESSING_PROPERTIES_INBOUND, maps);

        TerminateSequenceType ts = new TerminateSequenceType();
        Identifier sid = new Identifier();
        sid.setValue(sidstr);
        ts.setIdentifier(sid);
        Object tst = ProtocolVariation.RM10WSA200408.getWSRMNamespace().equals(protocol.getWSRMNamespace())
            ? ts : ProtocolVariation.RM10WSA200408.getCodec().convertReceivedTerminateSequence(ts);
        MessageContentsList contents = new MessageContentsList();
        contents.add(tst);
View Full Code Here

Examples of org.apache.cxf.ws.rm.v200702.Identifier

    public void testGetExistingSequence() throws NoSuchMethodException, SequenceFault, RMException {
        Method m = RMManager.class
           .getDeclaredMethod("getSource", new Class[] {Message.class});
        manager = control.createMock(RMManager.class, new Method[] {m});
        Message message = control.createMock(Message.class);
        Identifier inSid = control.createMock(Identifier.class);
       
        Source source = control.createMock(Source.class);
        EasyMock.expect(manager.getSource(message)).andReturn(source);
        SourceSequence sseq = control.createMock(SourceSequence.class);
        EasyMock.expect(source.getCurrent(inSid)).andReturn(sseq);
View Full Code Here

Examples of org.apache.isis.applib.Identifier

            }
            final PublishedAction.PayloadFactory payloadFactory = publishedActionFacet.value();
           
            final RootOid adapterOid = (RootOid) currentInvocation.getTarget().getOid();
            final String oidStr = getOidMarshaller().marshal(adapterOid);
            final Identifier actionIdentifier = action.getIdentifier();
            final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();
           
            final Command command = currentInvocation.getCommand();
            final String targetClass = command.getTargetClass();
            final String targetAction = command.getTargetAction();
            final Bookmark target = command.getTarget();
View Full Code Here

Examples of org.apache.ode.ql.tree.nodes.Identifier

            ASTOrderType astType = (ASTOrderType)extractChildNode(node, 1);
            type = OrderByType.valueOf(astType.getValue().toUpperCase());
        } else {
            throw new IllegalArgumentException();
        }
        Identifier id = createIdentifier(node, 0);
        return new OrderByElement(id, type);
    }
View Full Code Here

Examples of org.apache.sandesha.ws.rm.Identifier

            hasOffer = true;
            offerAccepted = acceptOrRejectOffer(offer);
            if (offerAccepted) {
                String responseSeqId = null;
                if (offer != null) {
                    Identifier id = offer.getIdentifier();
                    if (id != null)
                        responseSeqId = id.getIdentifier();
                }
                String incomingSeqId = seqId;
                if (responseSeqId != null) {
                    storageManager.addOutgoingSequence(incomingSeqId);
                    storageManager.setTemporaryOutSequence(incomingSeqId, responseSeqId);
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.