Examples of Body


Examples of org.eclipse.handly.model.impl.Body

    HashMap<IHandle, Body> _hashMap_1 = new HashMap<IHandle, Body>(ErlModelCache.DEFAULT_CHILDREN_SIZE);
    this.childrenCache = _hashMap_1;
  }
 
  public Body get(final IHandle handle) {
    Body _xifexpression = null;
    if ((handle instanceof IErlModel)) {
      _xifexpression = this.modelBody;
    } else {
      Body _xifexpression_1 = null;
      if ((handle instanceof IErlProject)) {
        _xifexpression_1 = this.projectCache.get(handle);
      } else {
        if ((handle instanceof IErlSource)) {
          return this.fileCache.get(handle);
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

    }
    return _xifexpression;
  }
 
  public Body peek(final IHandle handle) {
    Body _xifexpression = null;
    if ((handle instanceof IErlModel)) {
      _xifexpression = this.modelBody;
    } else {
      Body _xifexpression_1 = null;
      if ((handle instanceof IErlProject)) {
        _xifexpression_1 = this.projectCache.get(handle);
      } else {
        if ((handle instanceof IErlSource)) {
          return this.fileCache.peek(handle);
View Full Code Here

Examples of org.eclipse.handly.model.impl.Body

    return _switchResult;
  }
 
  public IResource[] getNonErlResources() {
    try {
      Body _body = this.getBody();
      return ((IResource[])Conversions.unwrapArray(((ErlProjectBody) _body).getNonErlResources(this), IResource.class));
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

Examples of org.jboss.identity.federation.org.xmlsoap.schemas.soap.envelope.Body

            JAXBElement<?> jaxbElement = (JAXBElement<?>) unmarshalledObject;
            Object element = jaxbElement.getValue();
            if(element instanceof Envelope)
            {
               envelope = (Envelope)element;
               Body soapBody = envelope.getBody();
               Object samlRequest = soapBody.getAny().get(0);
               if(samlRequest instanceof JAXBElement)
               {
                  jaxbRequestType = (JAXBElement<RequestAbstractType>)samlRequest;
                  jaxbRequestType = (JAXBElement<RequestAbstractType>)samlRequest;
                  xacmlRequest = (XACMLAuthzDecisionQueryType) jaxbRequestType.getValue();
View Full Code Here

Examples of org.jboss.soa.esb.message.Body

    _replyToOriginator = config.getBooleanAttribute(Constants.REPLY_TO_ORIGINATOR_TAG, false) ;
  }
 
  public void setJBPMContextParameters(Message message)
  {
    Body body = message.getBody();

        if (null!=_keyPath)
            body.add(Constants.KEYPATH, _keyPath);

        if (null!=_actor)
      body.add(Constants.ACTOR_ID  ,_actor);

        if (null!=_processName)
      body.add(Constants.PROCESS_DEFINITION_NAME  ,_processName);

        if (null!=_processId)
      body.add(Constants.PROCESS_DEFINITION_ID  ,_processId);

        if (null!=_transitionName)
      body.add(Constants.TRANSITION_NAME, _transitionName);

        Map<String,Object> variableMap = _mapper.mapFromEsbMessageToJBpmMap(message,_esbToBpm);

        if (null!=variableMap)
            body.add(Constants.VARIABLE_VALUES, variableMap);

        if (_replyToOriginator) {
            final Call call = message.getHeader().getCall() ;
            setEPR(body, Constants.REPLY_TO, getEPR(call.getReplyTo())) ;
            setEPR(body, Constants.FAULT_TO, getEPR(call.getFaultTo())) ;
View Full Code Here

Examples of org.jbox2d.dynamics.Body

 
  @Override
  public void update(){
   
    if(!contactShapes.isEmpty()){
      Body body;
      Vec2 imp;
      for(Physical ps:contactShapes){
        if(!ps.isDestroyed()){
          body=ps.getBody();
          imp=body.getLinearVelocity().clone();
         
          imp.mulLocal(IMPULSE_MAGNITUDE);
          body.applyLinearImpulse(imp, body.getWorldCenter());
        }
      }
      contactShapes.clear();
     
    }
View Full Code Here

Examples of org.mime4j.message.Body

        /*
         * Add the node encapsulating the entity Header.
         */
        node.add(createNode(entity.getHeader()));
       
        Body body = entity.getBody();
       
        if (body instanceof Multipart) {
            /*
             * The body of the entity is a Multipart.
             */
 
View Full Code Here

Examples of org.newdawn.fizzy.Body

  }

  @Override
  public void collided(CollisionEvent event) {
    this.radius = currentPlayer.getCurrentBeaver().getCurrentWeapon().getBlastRadius();
    Body currentBeaverBody = currentPlayer.getCurrentBeaver().getBody();
    Beaver[] p1Team = p1.getTeam();
    Beaver[] p2Team = p2.getTeam();
    if (event.contains(bullet)) {
     
      WorldManifold worldManifold = new WorldManifold();
      event.getContact().jboxContact.getWorldManifold(worldManifold);

      drawCircle = true;
      collisionX = worldManifold.points[0].x;
      collisionY = worldManifold.points[0].y;
     
      float bulletX = bullet.getX();
      float bulletY = bullet.getY();
      //mark the bullet to be killed on the next update cycle
      killBullet = true;
      //mark the turn to be ended
      endTurn = 2000;

      //How much damage to do?
      for(int i = 0;i<Constants.BEAVERS_PER_TEAM;i++){
        double x1 = p1Team[i].getBody().getX();
        double y1 = p1Team[i].getBody().getY();
        double x2 = p2Team[i].getBody().getX();
        double y2 = p2Team[i].getBody().getY();
        double distanceB1 = distance(x1,y1,bulletX,bulletY);
        double distanceB2 = distance(x2,y2,bulletX,bulletY);
        if(distanceB1 < this.radius ){
          int damage = calculateDMG(distanceB1);
          p1Team[i].reduceHP(damage);
        }
        if(distanceB2 < this.radius){
          int damage = calculateDMG(distanceB1);
          p2Team[i].reduceHP(damage);
        }
      }
     
     
    }
    //if a body hits the boundary and it's a bullet, remove it.
    //it a beaver hits it, kill the beaver.
    if (event.contains(boundary)) {
      Body otherBody;
      if (event.getBodyA().equals(boundary)) otherBody = event.getBodyB();
      else otherBody = event.getBodyA();
      for(int i=0;i<Constants.BEAVERS_PER_TEAM;i++){
        if(p1Team[i].getBody()==otherBody){
          p1Team[i].reduceHP(1000);
          endTurn = 2000;
          //break;
        }
        if(p2Team[i].getBody()==otherBody){
          p2Team[i].reduceHP(1000);
          endTurn = 2000;
          //break;
        }
      }
      if (otherBody.equals(bullet)) {
        killBullet = true;
        endTurn = 2000;
     
    }
    //if the current beaver collects a health pack or ammo
View Full Code Here

Examples of org.openhab.binding.netatmo.internal.messages.MeasurementResponse.Body

    final List<Body> bodyList = response.getBody();

    assertNotNull(bodyList);
    assertEquals(1, bodyList.size());

    final Body body = bodyList.get(0);
    final List<List<BigDecimal>> valuesList = body.getValues();

    assertNotNull(valuesList);
    assertEquals(1, valuesList.size());

    final List<BigDecimal> values = valuesList.get(0);
View Full Code Here

Examples of org.opensaml.ws.soap.soap11.Body

    @SuppressWarnings("unchecked")
    protected Envelope buildSOAPMessage(SAMLMessageContext samlMsgCtx, SAMLObject samlMessage) {
        Envelope envelope = null;
        if (samlMsgCtx.getOutboundMessage() != null && samlMsgCtx.getOutboundMessage() instanceof Envelope) {
            envelope = (Envelope) samlMsgCtx.getOutboundMessage();
            Body body = envelope.getBody();
            if (body == null) {
                XMLObjectBuilderFactory builderFactory = Configuration.getBuilderFactory();
                SOAPObjectBuilder<Body> bodyBuilder = (SOAPObjectBuilder<Body>) builderFactory
                        .getBuilder(Body.DEFAULT_ELEMENT_NAME);
                body = bodyBuilder.buildObject();
                envelope.setBody(body);
            } else if (!body.getUnknownXMLObjects().isEmpty()) {
                log.warn("Supplied SOAP Envelope Body was not empty. Existing contents will be removed.");
                body.getUnknownXMLObjects().clear();
            }
            body.getUnknownXMLObjects().add(samlMessage);
        } else {
            envelope = buildSOAPMessage(samlMessage);
            samlMsgCtx.setOutboundMessage(envelope);
        }
        return envelope;
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.