Examples of AttachmentType


Examples of com.esotericsoftware.spine.attachments.AttachmentType

  private Attachment readAttachment (DataInput input, Skin skin, String attachmentName) throws IOException {
    String name = input.readString();
    if (name == null) name = attachmentName;

    AttachmentType type = AttachmentType.values()[input.readByte()];
    Attachment attachment = attachmentLoader.newAttachment(skin, type, name);

    if (attachment instanceof RegionSequenceAttachment) {
      RegionSequenceAttachment regionSequenceAttachment = (RegionSequenceAttachment)attachment;
      regionSequenceAttachment.setFrameTime(1 / input.readFloat());
View Full Code Here

Examples of com.esotericsoftware.spine.attachments.AttachmentType

  }

  private Attachment readAttachment (Skin skin, String name, JsonValue map) {
    name = map.getString("name", name);

    AttachmentType type = AttachmentType.valueOf(map.getString("type", AttachmentType.region.name()));
    Attachment attachment = attachmentLoader.newAttachment(skin, type, name);

    if (attachment instanceof RegionSequenceAttachment) {
      RegionSequenceAttachment regionSequenceAttachment = (RegionSequenceAttachment)attachment;
View Full Code Here

Examples of com.eviware.soapui.model.iface.Attachment.AttachmentType

    this.prettyPrint = prettyPrint;
    MimeMultipart mp = new MimeMultipart( dataSource );
    message = new MimeMessage( AttachmentUtils.JAVAMAIL_SESSION );
    message.setContent( mp );

    AttachmentType attachmentType = AttachmentType.MIME;

    for( int c = 0; c < mp.getCount(); c++ )
    {
      BodyPart bodyPart = mp.getBodyPart( c );
View Full Code Here

Examples of com.eviware.soapui.model.iface.Attachment.AttachmentType

        this.prettyPrint = prettyPrint;
        MimeMultipart mp = new MimeMultipart(dataSource);
        message = new MimeMessage(AttachmentUtils.JAVAMAIL_SESSION);
        message.setContent(mp);

        AttachmentType attachmentType = AttachmentType.MIME;

        for (int c = 0; c < mp.getCount(); c++) {
            BodyPart bodyPart = mp.getBodyPart(c);

            String contentType = bodyPart.getContentType().toUpperCase();
View Full Code Here

Examples of com.flansmod.common.guns.AttachmentType

    //If we have no animation variables, use defaults
    if(animations == null)
      animations = GunAnimations.defaults;
   
    //Get all the attachments that we may need to render
    AttachmentType scopeAttachment = type.getScope(item);
    AttachmentType barrelAttachment = type.getBarrel(item);
    AttachmentType stockAttachment = type.getStock(item);
    AttachmentType gripAttachment = type.getGrip(item);
   
    ItemStack[] bulletStacks = new ItemStack[type.numAmmoItemsInGun];
    boolean empty = true;
    for(int i = 0; i < type.numAmmoItemsInGun; i++)
    {
View Full Code Here

Examples of com.flansmod.common.guns.AttachmentType

            NBTTagCompound tags = new NBTTagCompound();
            NBTTagCompound attachmentTags = new NBTTagCompound();
            int genericID = 0;
            for(int i = 0; i < itemNames.length - 1; i++)
            {
              AttachmentType attachment = AttachmentType.getAttachment(itemNames[i + 1]);
              if(attachment != null)
              {
                String tagName = null;
                switch(attachment.type)
                {
View Full Code Here

Examples of com.flansmod.common.guns.AttachmentType

        EntityPlayer player = (EntityPlayer)obj;
        ItemStack currentHeldItem = player.getCurrentEquippedItem();
        if(currentHeldItem != null && currentHeldItem.getItem() instanceof ItemGun)
        {
          GunType type = ((ItemGun)currentHeldItem.getItem()).type;
          AttachmentType grip = type.getGrip(currentHeldItem);
          if(grip != null && grip.flashlight)
          {
            for(int i = 0; i < 2; i++)
            {
              MovingObjectPosition ray = player.rayTrace(grip.flashlightRange / 2F * (i + 1), 1F);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.AttachmentType

                      ((value == null)? "null":value.getClass().getName()));
            log.debug("ParameterDescription = " + pd.toString());
        }
        AttachmentDescription attachmentDesc = pd.getAttachmentDescription();
       
        AttachmentType attachmentType = attachmentDesc.getAttachmentType();
        if (attachmentType == AttachmentType.SWA) {
            // Create an Attachment object with the signature value
            Attachment attachment = new Attachment(value,
                                                   formalType,
                                                   attachmentDesc,
View Full Code Here

Examples of org.apache.axis2.jaxws.description.AttachmentType

                    }
                    index++;
                }
            } else {
                // The parameter is an attachment
                AttachmentType type = pde.getParam().
                   getAttachmentDescription().getAttachmentType();
                if (type == AttachmentType.SWA) {
                    // All we need to do is set the data handler on the message. 
                    // For SWA attachments, the message does not reference the attachment.
                    message.addDataHandler(attachment.getDataHandler(),
View Full Code Here

Examples of org.apache.axis2.jaxws.description.AttachmentType

                      ((value == null)? "null":value.getClass().getName()));
            log.debug("ParameterDescription = " + pd.toString());
        }
        AttachmentDescription attachmentDesc = pd.getAttachmentDescription();
       
        AttachmentType attachmentType = attachmentDesc.getAttachmentType();
        if (attachmentType == AttachmentType.SWA) {
            // Create an Attachment object with the signature value
            Attachment attachment = new Attachment(value,
                                                   formalType,
                                                   attachmentDesc)
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.