001    /*
002     * Copyright (c) 2009 The openGion Project.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     *     http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013     * either express or implied. See the License for the specific language
014     * governing permissions and limitations under the License.
015     */
016    package org.opengion.hayabusa.servlet.multipart;
017    
018    /**
019     * ファイルア??ロード時のマルチパート???パ?ト部品です?
020     *
021     * パ?ト部品?共通親クラスになります?
022     *
023     * @og.group そ?他機?
024     *
025     * @version  4.0
026     * @author   Kazuhiko Hasegawa
027     * @since    JDK5.0,
028     */
029    public class Part {
030            private final String name;
031    
032            /**
033             * 名前を指定して、構築するコンストラクター
034             *
035             * @param       name    名前
036             */
037            Part( final String name ) {
038                    this.name = name;
039            }
040    
041            /**
042             * 名前を返します?
043             *
044             * @return      名前
045             */
046            public String getName() {
047                    return name;
048            }
049    
050            /**
051             * ファイルかど?
052             *
053             * @return      (常に false)
054             */
055            public boolean isFile() {
056                    return false;
057            }
058    
059            /**
060             * パラメーターかど?
061             *
062             * @return      (常に false)
063             */
064            public boolean isParam() {
065                    return false;
066            }
067    }