Examples of Part


Examples of DisplayProject.TMSchema.Part

     * @return a <code>Color</code> or null if key is not found
     *    in the current style
     */
    synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
        String key = skin.toString() + "." + prop.name();
        Part part = skin.part;
        Color color = colorMap.get(key);
        if (color == null) {
            color = ThemeReader.getColor(part.getControlName(null), part.getValue(),
                                            State.getValue(part, skin.state),
                                            prop.getValue());
            if (color != null) {
                color = new ColorUIResource(color);
                colorMap.put(key, color);
View Full Code Here

Examples of com.baasbox.service.query.PartsLexer.Part

 
 
  public JsonNode json(JsonNode bodyJson) {
    Collections.reverse(this.parts);
    ObjectNode on = Json.newObject();
    Part last = null;
    for(Part p: parts){
      if(last==null){
        on.put(p.getName(), bodyJson);
        last = p;
      }else{
View Full Code Here

Examples of com.basho.riak.client.http.util.Multipart.Part

        } catch (IOException e) {
            throw new RuntimeException(e);
        }

        Map<String, String> headers = Multipart.parseHeaders(headerBlock);
        return new Part(headers, currentPartStream.branch());
    }
View Full Code Here

Examples of com.basho.riak.client.util.Multipart.Part

        } catch (IOException e) {
            throw new RuntimeException(e);
        }

        Map<String, String> headers = Multipart.parseHeaders(headerBlock);
        return new Part(headers, currentPartStream.branch());
    }
View Full Code Here

Examples of com.eviware.soapui.config.PartsConfig.Part

          List<MIMEContent> contentParts = WsdlUtils.getExtensiblityElements( parts.get( c )
              .getExtensibilityElements(), MIMEContent.class );

          for( MIMEContent content : contentParts )
          {
            Part part = partMap.get( content.getPart() );
            if( part != null )
            {
              if( !part.getContentTypeList().contains( content.getType() ) )
                part.addContentType( content.getType() );
            }
            else
            {
              if( !getConfig().isSetResponseParts() )
                getConfig().addNewResponseParts();

              Part responsePart = getConfig().getResponseParts().addNewPart();
              responsePart.addContentType( content.getType() );
              responsePart.setName( content.getPart() );

              partMap.put( responsePart.getName(), responsePart );
            }
          }
        }
      }
    }

    if( bindingInput != null )
    {
      MIMEMultipartRelated multipartInput = WsdlUtils.getExtensiblityElement(
          bindingInput.getExtensibilityElements(), MIMEMultipartRelated.class );

      getConfig().setSendsAttachments( multipartInput != null );
      if( multipartInput != null )
      {
        List<MIMEPart> parts = multipartInput.getMIMEParts();
        Map<String, Part> partMap = new HashMap<String, Part>();

        for( int c = 0; c < parts.size(); c++ )
        {
          List<MIMEContent> contentParts = WsdlUtils.getExtensiblityElements( parts.get( c )
              .getExtensibilityElements(), MIMEContent.class );

          for( MIMEContent content : contentParts )
          {
            Part part = partMap.get( content.getPart() );
            if( part != null )
            {
              if( !part.getContentTypeList().contains( content.getType() ) )
                part.addContentType( content.getType() );
            }
            else
            {
              if( !getConfig().isSetRequestParts() )
                getConfig().addNewRequestParts();

              Part requestPart = getConfig().getRequestParts().addNewPart();
              requestPart.addContentType( content.getType() );
              requestPart.setName( content.getPart() );

              partMap.put( requestPart.getName(), requestPart );
            }
          }
        }
      }
    }
View Full Code Here

Examples of com.ibm.commons.xml.xpath.part.Part

            }
            namespaceContext = resolveNamespaceContext(node,namespaceContext);
           
            // evaluate all parts and create any that are missing if
            // auto create has been set to true
            Part currentPart = null;
            int currentPos = 0;
            while (getPartCount() > currentPos) {
                currentPart = getPart(currentPos);
                currentPos++;
                prevObject = curObject;
                curObject = evaluatePart(curObject, currentPart, namespaceContext);

                if (curObject == null) {
                    if (autoCreate) {
                        curObject = createPart(prevObject, currentPart, namespaceContext);
                    }
                    else {
                        throw new XPathException(null,"Evaluation error for " // $NLS-AbstractSimpleExpression.Evaluationerrorfor.1-1$
                                + currentPart.toString() + " of the XPATH:" // $NLS-AbstractSimpleExpression.oftheXPATH-1$
                                + getExpression());
                    }
                }
                if (!isValid(curObject)) {
                    throw new XPathException(null,
View Full Code Here

Examples of com.ibm.icu.text.MessagePattern.Part

                        Object[] args, Map<String, Object> argsMap,
                        AppendableWrapper dest, FieldPosition fp) {
        String msgString=msgPattern.getPatternString();
        int prevIndex=msgPattern.getPart(msgStart).getLimit();
        for(int i=msgStart+1;; ++i) {
            Part part=msgPattern.getPart(i);
            Part.Type type=part.getType();
            int index=part.getIndex();
            dest.append(msgString, prevIndex, index);
            if(type==Part.Type.MSG_LIMIT) {
                return;
            }
            prevIndex=part.getLimit();
            if(type==Part.Type.REPLACE_NUMBER) {
                if (stockNumberFormatter == null) {
                    stockNumberFormatter = NumberFormat.getInstance(ulocale);
                }
                dest.formatAndAppend(stockNumberFormatter, pluralNumber);
                continue;
            }
            if(type!=Part.Type.ARG_START) {
                continue;
            }
            int argLimit=msgPattern.getLimitPartIndex(i);
            ArgType argType=part.getArgType();
            part=msgPattern.getPart(++i);
            Object arg;
            String noArg=null;
            Object argId=null;
            if(args!=null) {
                int argNumber=part.getValue()// ARG_NUMBER
                if (dest.attributes != null) {
                    // We only need argId if we add it into the attributes.
                    argId = Integer.valueOf(argNumber);
                }
                if(0<=argNumber && argNumber<args.length) {
                    arg=args[argNumber];
                } else {
                    arg=null;
                    noArg="{"+argNumber+"}";
                }
            } else {
                String key;
                if(part.getType()==MessagePattern.Part.Type.ARG_NAME) {
                    key=msgPattern.getSubstring(part);
                } else /* ARG_NUMBER */ {
                    key=Integer.toString(part.getValue());
                }
                argId = key;
                if(argsMap!=null && argsMap.containsKey(key)) {
                    arg=argsMap.get(key);
                } else {
View Full Code Here

Examples of com.jidesoft.plaf.windows.TMSchema.Part

     *
     * @return a <code>Color</code> or null if key is not found in the current style
     */
    public synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
        String key = skin.toString() + "." + prop.name();
        Part part = skin.part;
        Color color = colorMap.get(key);
        if (color == null) {
            color = ThemeReader.getColor(part.getControlName(null), part.getValue(),
                    State.getValue(part, skin.state),
                    prop.getValue());
            if (color != null) {
                color = new ColorUIResource(color);
                colorMap.put(key, color);
View Full Code Here

Examples of com.ning.http.multipart.Part

        for (String key : parameters.keySet()) {
            parts.add(new StringPart(key, parameters.get(key)));
        }

        for (String key : files.keySet()) {
            Part filePart;
            try {
                filePart = new FilePart(key, files.get(key));
            } catch (FileNotFoundException e) {
                throw new RuntimeException(e);
            }
View Full Code Here

Examples of com.oreilly.servlet.multipart.Part

        }
        parameters.put(paramName, newValues);
      }
    }

    Part part;
    while ((part = parser.readNextPart()) != null) {
      String name = part.getName();
      if (part.isParam()) {
        // It's a parameter part, add it to the vector of values
        ParamPart paramPart = (ParamPart) part;
        String value = paramPart.getStringValue();
        Vector existingValues = (Vector)parameters.get(name);
        if (existingValues == null) {
          existingValues = new Vector();
          parameters.put(name, existingValues);
        }
        existingValues.addElement(value);
      }
      else if (part.isFile()) {
        // It's a file part
        FilePart filePart = (FilePart) part;
        String fileName = filePart.getFileName();
        if (fileName != null) {
          filePart.setRenamePolicy(policy)// null policy is OK
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.