Examples of Ware


Examples of com.assaydepot.result.Ware

     
    }
   
    JsonNode rootNode = doParseURL( urlBuilder.toString() );
    JsonNode wNode = rootNode.path( "ware" );
    Ware ware = new Ware();
   
    ware.setId( wNode.path( "id" ).getTextValue() );
    ware.setSlug( wNode.path( "slug" ).getTextValue() );
    ware.setName( wNode.path( "name" ).getTextValue() );
    ware.setPrice( wNode.path( "price" ).getDoubleValue() );
    ware.setTurnAroundTime( doStringMap( wNode.path( "turn_around_time" )));
    ware.setType( wNode.path( "type" ).getTextValue() );
    ware.setSnippet( wNode.path("snippet").getTextValue() );
    ware.setKeywords( doArray( wNode.path( "keywords" )));
    ware.setPromoDescription( wNode.path( "promo_description" ).getTextValue() );
    ware.setContactEmails( doArray( wNode.path( "contact_emails" )));
    ware.setResponsibleEmails( doArray( wNode.path( "responsible_emails" )));
    ware.setPermission( wNode.path( "permission" ).getTextValue() );
    ware.setFirstPublishedAt( wNode.path( "first_published_at" ).asText());
    ware.setProteinType( wNode.path( "protein_type" ).getTextValue());
    ware.setClonality( wNode.path( "clonality" ).getTextValue() );
    ware.setClonality( wNode.path( "cell_source" ).getTextValue() );
    ware.setSpecies( wNode.path( "species" ).getTextValue() );
    ware.setTissue( wNode.path( "tissue" ).getTextValue() );
    ware.setAmount( wNode.path( "amount" ).getTextValue() );
    ware.setProteinTag( wNode.path( "protein_tag" ).getTextValue() );
    ware.setAntigenSpecies( wNode.path( "antigen_species" ).getTextValue() );
    ware.setProductApplications( doArray( wNode.path( "product_applications" )));
    ware.setIgType( wNode.path( "ig_type" ).getTextValue() );
    ware.setPurificationMethod( wNode.path( "purification_method" ).getTextValue() );
    ware.setPeptideType( wNode.path( "peptide_type" ).getTextValue() );
    ware.setCasNumber( wNode.path( "cas_number" ).asText() );
    ware.setUnspsc( wNode.path( "unspsc" ).getTextValue() );
    ware.setSupplierPartId( wNode.path( "supplier_part_id" ).asText() );   
    ware.setCreatedAt( wNode.path( "created_at" ).asText() );
    ware.setUpdatedAt( wNode.path( "updated_at" ).asText() );
    ware.setUrls( doStringMap( wNode.path( "urls") ));
   
    return ware;
  }
View Full Code Here

Examples of com.assaydepot.result.Ware

     
    }
   
    JsonNode rootNode = doParseURL( urlBuilder.toString() );
    JsonNode wNode = rootNode.path( "ware" );
    Ware ware = new Ware();
   
    ware.setId( wNode.path( "id" ).getTextValue() );
    ware.setSlug( wNode.path( "slug" ).getTextValue() );
    ware.setName( wNode.path( "name" ).getTextValue() );
    ware.setPrice( wNode.path( "price" ).getDoubleValue() );
    ware.setTurnAroundTime( doStringMap( wNode.path( "turn_around_time" )));
    ware.setType( wNode.path( "type" ).getTextValue() );
    ware.setSnippet( wNode.path("snippet").getTextValue() );
    ware.setKeywords( doArray( wNode.path( "keywords" )));
    ware.setPromoDescription( wNode.path( "promo_description" ).getTextValue() );
    ware.setContactEmails( doArray( wNode.path( "contact_emails" )));
    ware.setResponsibleEmails( doArray( wNode.path( "responsible_emails" )));
    ware.setPermission( wNode.path( "permission" ).getTextValue() );
    ware.setFirstPublishedAt( wNode.path( "first_published_at" ).asText());
    ware.setProteinType( wNode.path( "protein_type" ).getTextValue());
    ware.setClonality( wNode.path( "clonality" ).getTextValue() );
    ware.setClonality( wNode.path( "cell_source" ).getTextValue() );
    ware.setSpecies( wNode.path( "species" ).getTextValue() );
    ware.setTissue( wNode.path( "tissue" ).getTextValue() );
    ware.setAmount( wNode.path( "amount" ).getTextValue() );
    ware.setProteinTag( wNode.path( "protein_tag" ).getTextValue() );
    ware.setAntigenSpecies( wNode.path( "antigen_species" ).getTextValue() );
    ware.setProductApplications( doArray( wNode.path( "product_applications" )));
    ware.setIgType( wNode.path( "ig_type" ).getTextValue() );
    ware.setPurificationMethod( wNode.path( "purification_method" ).getTextValue() );
    ware.setPeptideType( wNode.path( "peptide_type" ).getTextValue() );
    ware.setCasNumber( wNode.path( "cas_number" ).asText() );
    ware.setUnspsc( wNode.path( "unspsc" ).getTextValue() );
    ware.setSupplierPartId( wNode.path( "supplier_part_id" ).asText() );   
    ware.setCreatedAt( wNode.path( "created_at" ).asText() );
    ware.setUpdatedAt( wNode.path( "updated_at" ).asText() );
    ware.setUrls( doStringMap( wNode.path( "urls") ));
   
    return ware;
  }
View Full Code Here

Examples of de.ailis.xadrian.data.Ware

                    Integer.parseInt(element.attributeValue("maxPrice"));
                final int volume =
                    Integer.parseInt(element.attributeValue("volume"));
                final Container container =
                    Container.valueOf(element.attributeValue("container"));
                final Ware ware =
                    new Ware(this.game, id, minPrice, avgPrice, maxPrice,
                        volume, container);
                this.wares.add(ware);
                this.wareMap.put(id, ware);
            }
        }
View Full Code Here

Examples of de.ailis.xadrian.data.Ware

                    .attributeValue("price"));
                final int volume = Integer.parseInt(element
                    .attributeValue("volume"));

                final Element productElement = element.element("product");
                final Ware productWare = wareFactory.getWare(productElement
                    .attributeValue("ware"));
                final int productQuantity = Integer.parseInt(productElement
                    .attributeValue("quantity"));
                final Product product = new Product(productWare,
                    productQuantity);

                final List<?> resItems = element.elements("resource");
                final Product[] resources = new Product[resItems.size()];
                final Capacity[] storage = new Capacity[resItems.size() + 1];
                storage[0] = new Capacity(product.getWare(), Integer
                    .parseInt(productElement.attributeValue("storage")));
                int i = 0;
                for (final Object resItem : resItems)
                {
                    final Element resElement = (Element) resItem;
                    final Ware resWare = wareFactory.getWare(resElement
                        .attributeValue("ware"));
                    final int resQuantity = Integer.parseInt(resElement
                        .attributeValue("quantity"));
                    final int resStorage = Integer.parseInt(resElement
                        .attributeValue("storage"));
View Full Code Here

Examples of de.ailis.xadrian.data.Ware

                    .attributeValue("x"));
                final int astY = Integer.parseInt(asteroidElement
                    .attributeValue("y"));
                final int astZ = Integer.parseInt(asteroidElement
                    .attributeValue("z"));
                final Ware ware = this.game.getWareFactory().getWare(
                    asteroidElement
                        .attributeValue("ware"));
                final Asteroid asteroid = new Asteroid(asteroidId,
                    ware, yield, astX, astY, astZ);
                asteroids[i] = asteroid;
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.