Code example for Vector

Methods: addAll

0
Vector  argsVec = listToVector(args);
         
        try { 
            // The method key and ExpressionContext are set to null. 
            return m_handler.callFunction(m_funcName, argsVec, null, null);
        } 
        catch (TransformerException e)
        { 
            throw new XPathFunctionException(e);
        } 
    } 
     
    /** 
     * Convert a java.util.List to a java.util.Vector.  
     * No conversion is done if the List is already a Vector. 
     */ 
    private static Vector listToVector(List args)
    { 
        if (args == null)
            return null; 
        else if (args instanceof Vector)
            return (Vector)args;
        else 
        { 
            Vector result = new Vector();
            result.addAll(args);
            return result;
        }         
    } 
}