Examples of FinalArrayList


Examples of com.sun.istack.FinalArrayList

/*  543 */         return arg;
/*  544 */     return null;
/*      */   }
/*      */
/*      */   private static <T> List<T> makeSet(T[] args) {
/*  548 */     List l = new FinalArrayList();
/*  549 */     for (Object arg : args) {
/*  550 */       if (arg == null) continue; l.add(arg);
/*  551 */     }return l;
/*      */   }
View Full Code Here

Examples of com.sun.istack.FinalArrayList

/*     */   }
/*     */
/*     */   public List<? extends TypeRefImpl<TypeT, ClassDeclT>> getTypes()
/*     */   {
/* 103 */     if (this.types == null) {
/* 104 */       this.types = new FinalArrayList();
/* 105 */       XmlElement[] ann = null;
/*     */
/* 107 */       XmlElement xe = (XmlElement)this.seed.readAnnotation(XmlElement.class);
/* 108 */       XmlElements xes = (XmlElements)this.seed.readAnnotation(XmlElements.class);
/*     */
View Full Code Here

Examples of com.sun.istack.FinalArrayList

/* 208 */       if (!this.superClazz.hasElementOnlyContentModel()) {
/* 209 */         hasElementOnlyContentModel(false);
/*     */       }
/*     */     }
/*     */
/* 213 */     List attProps = new FinalArrayList();
/* 214 */     List uriProps = new FinalArrayList();
/* 215 */     for (ClassBeanInfoImpl bi = this; bi != null; bi = bi.superClazz) {
/* 216 */       for (int i = bi.properties.length - 1; i >= 0; i--) {
/* 217 */         Property p = bi.properties[i];
/* 218 */         if ((p instanceof AttributeProperty))
/* 219 */           attProps.add((AttributeProperty)p);
/* 220 */         if (p.hasSerializeURIAction())
/* 221 */           uriProps.add(p);
/*     */       }
/*     */     }
/* 224 */     if (grammar.c14nSupport) {
/* 225 */       Collections.sort(attProps);
/*     */     }
/* 227 */     if (attProps.isEmpty())
/* 228 */       this.attributeProperties = EMPTY_PROPERTIES;
/*     */     else {
/* 230 */       this.attributeProperties = ((AttributeProperty[])attProps.toArray(new AttributeProperty[attProps.size()]));
/*     */     }
/* 232 */     if (uriProps.isEmpty())
/* 233 */       this.uriProperties = EMPTY_PROPERTIES;
/*     */     else
/* 235 */       this.uriProperties = ((Property[])uriProps.toArray(new Property[uriProps.size()]));
/*     */   }
View Full Code Here

Examples of com.sun.istack.FinalArrayList

/* 429 */     }super.link();
/*     */   }
/*     */
/*     */   private void addSubstitutionMember(ElementInfoImpl<T, C, F, M> child) {
/* 433 */     if (this.substitutionMembers == null)
/* 434 */       this.substitutionMembers = new FinalArrayList();
/* 435 */     this.substitutionMembers.add(child);
/*     */   }
View Full Code Here

Examples of com.sun.istack.FinalArrayList

/*     */   }
/*     */
/*     */   public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, Object> properties)
/*     */     throws JAXBException
/*     */   {
/* 148 */     FinalArrayList classes = new FinalArrayList();
/* 149 */     StringTokenizer tokens = new StringTokenizer(contextPath, ":");
/*     */
/* 156 */     while (tokens.hasMoreTokens())
/*     */     {
/*     */       boolean foundJaxbIndex;
/* 157 */       boolean foundObjectFactory = foundJaxbIndex = 0;
/* 158 */       String pkg = tokens.nextToken();
/*     */       try
/*     */       {
/* 163 */         Class o = classLoader.loadClass(pkg + ".ObjectFactory");
/* 164 */         classes.add(o);
/* 165 */         foundObjectFactory = true;
/*     */       }
/*     */       catch (ClassNotFoundException e) {
/*     */       }
/*     */       List indexedClasses;
/*     */       try {
/* 172 */         indexedClasses = loadIndexedClasses(pkg, classLoader);
/*     */       }
/*     */       catch (IOException e) {
/* 175 */         throw new JAXBException(e);
/*     */       }
/* 177 */       if (indexedClasses != null) {
/* 178 */         classes.addAll(indexedClasses);
/* 179 */         foundJaxbIndex = true;
/*     */       }
/*     */
/* 182 */       if ((!foundObjectFactory) && (!foundJaxbIndex)) {
/* 183 */         throw new JAXBException(Messages.BROKEN_CONTEXTPATH.format(new Object[] { pkg }));
/*     */       }
/*     */
/*     */     }
/*     */
/* 188 */     return createContext((Class[])classes.toArray(new Class[classes.size()]), properties);
/*     */   }
View Full Code Here

Examples of com.sun.istack.FinalArrayList

/*     */     }
/*     */
/* 208 */     BufferedReader in = new BufferedReader(new InputStreamReader(resourceAsStream, "UTF-8"));
/*     */     try
/*     */     {
/* 211 */       FinalArrayList classes = new FinalArrayList();
/* 212 */       String className = in.readLine();
/* 213 */       while (className != null) {
/* 214 */         className = className.trim();
/* 215 */         if ((className.startsWith("#")) || (className.length() == 0)) {
/* 216 */           className = in.readLine();
/* 217 */           continue;
/*     */         }
/*     */
/* 220 */         if (className.endsWith(".class")) {
/* 221 */           throw new JAXBException(Messages.ILLEGAL_ENTRY.format(new Object[] { className }));
/*     */         }
/*     */         try
/*     */         {
/* 225 */           classes.add(classLoader.loadClass(pkg + '.' + className));
/*     */         } catch (ClassNotFoundException e) {
/* 227 */           throw new JAXBException(Messages.ERROR_LOADING_CLASS.format(new Object[] { className, resource }), e);
/*     */         }
/*     */
/* 230 */         className = in.readLine();
View Full Code Here

Examples of com.sun.xml.internal.messaging.saaj.util.FinalArrayList

     *
     * @param  part  The MimeBodyPart to be appended
     */
    public synchronized void addBodyPart(MimeBodyPart part) {
        if (parts == null)
            parts = new FinalArrayList();

        parts.add(part);
        part.setParent(this);
    }
View Full Code Here

Examples of com.sun.xml.internal.messaging.saaj.util.FinalArrayList

     * @param  part  The MimeBodyPart to be inserted
     * @param  index Location where to insert the part
     */
    public synchronized void addBodyPart(MimeBodyPart part, int index) {
        if (parts == null)
            parts = new FinalArrayList();

        parts.add(index,part);
        part.setParent(this);
    }
View Full Code Here

Examples of com.sun.xml.internal.messaging.saaj.util.FinalArrayList

        if (s == null)
            return null;

        // Tokenize the header to obtain the Language-tags (skip comments)
        HeaderTokenizer h = new HeaderTokenizer(s, HeaderTokenizer.MIME);
        FinalArrayList v = new FinalArrayList();

        HeaderTokenizer.Token tk;
        int tkType;

        while (true) {
            tk = h.next(); // get a language-tag
            tkType = tk.getType();
            if (tkType == HeaderTokenizer.Token.EOF)
            break; // done
            else if (tkType == HeaderTokenizer.Token.ATOM) v.add(tk.getValue());
            else // invalid token, skip it.
            continue;
        }

        if (v.size() == 0)
            return null;

        return (String[])v.toArray(new String[v.size()]);
    }
View Full Code Here

Examples of com.sun.xml.internal.messaging.saaj.util.FinalArrayList

     * @param   name header name
     * @return          array of header values, or null if none
     */
    public String[] getHeader(String name) {
        // XXX - should we just step through in index order?
        FinalArrayList v = new FinalArrayList(); // accumulate return values

        int len = headers.size();
        for( int i=0; i<len; i++ ) {
            hdr h = (hdr) headers.get(i);
            if (name.equalsIgnoreCase(h.name)) {
                v.add(h.getValue());
            }
        }
        if (v.size() == 0)
            return (null);
        // convert Vector to an array for return
        return (String[]) v.toArray(new String[v.size()]);
    }
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.