/* ----------------------------------------------------------------- */
        ///
        /// Convert
        ///
        /// <summary>
        /// Converts from the specified object to the new instance of
        /// the ArchiveOptionSetter class.
        /// </summary>
        ///
        /* ----------------------------------------------------------------- */
        public static ArchiveOptionSetter Convert(this ArchiveOption src, Format format)
        {
            if (src == null)
            {
                return(null);
            }
            switch (format)
            {
            case Format.Zip:      return(new ZipOptionSetter(src));

            case Format.SevenZip: return(new SevenZipOptionSetter(src));

            case Format.Sfx:      return(new SevenZipOptionSetter(src));

            case Format.Tar:      return(null);

            default:              return(new ArchiveOptionSetter(src));
            }
        }
 /* ----------------------------------------------------------------- */
 ///
 /// ZipOptionSetter
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="option">オプション</param>
 ///
 /* ----------------------------------------------------------------- */
 public ZipOptionSetter(ArchiveOption option) : base(option)
 {
 }
 /* ----------------------------------------------------------------- */
 ///
 /// ArchiveOptionSetter
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="option">オプション</param>
 ///
 /* ----------------------------------------------------------------- */
 public ArchiveOptionSetter(ArchiveOption option)
 {
     Option = option;
 }