Package com.assaydepot.result

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


     
    }
   
    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

TOP

Related Classes of com.assaydepot.result.Ware

Copyright © 2018 www.massapicom. 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.